public class ItemRobot extends ItemBuildCraft implements IEnergyContainerItem
icons| Constructor and Description |
|---|
ItemRobot() |
| Modifier and Type | Method and Description |
|---|---|
void |
addInformation(net.minecraft.item.ItemStack stack,
net.minecraft.entity.player.EntityPlayer player,
java.util.List list,
boolean advanced) |
EntityRobot |
createRobot(net.minecraft.item.ItemStack stack,
net.minecraft.world.World world) |
static net.minecraft.item.ItemStack |
createRobotStack(RedstoneBoardRobotNBT board,
int energy) |
int |
extractEnergy(net.minecraft.item.ItemStack container,
int maxExtract,
boolean simulate)
Removes energy from a container item.
|
static int |
getEnergy(net.minecraft.item.ItemStack stack) |
int |
getEnergyStored(net.minecraft.item.ItemStack container)
Get the amount of energy currently stored in the container item.
|
int |
getMaxEnergyStored(net.minecraft.item.ItemStack container)
Get the max amount of energy that can be stored in the container item.
|
static RedstoneBoardRobotNBT |
getRobotNBT(net.minecraft.item.ItemStack stack) |
void |
getSubItems(net.minecraft.item.Item item,
net.minecraft.creativetab.CreativeTabs par2CreativeTabs,
java.util.List itemList) |
net.minecraft.util.ResourceLocation |
getTextureRobot(net.minecraft.item.ItemStack stack) |
boolean |
onItemUse(net.minecraft.item.ItemStack currentItem,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.world.World world,
int x,
int y,
int z,
int side,
float hitX,
float hitY,
float hitZ) |
int |
receiveEnergy(net.minecraft.item.ItemStack container,
int maxReceive,
boolean simulate)
Adds energy to a container item.
|
void |
registerIcons(net.minecraft.client.renderer.texture.IIconRegister par1IconRegister) |
doesSneakBypassUse, getIconFromDamage, getIconNames, setPassSneakClick, setUnlocalizedNamecanHarvestBlock, canItemEditBlocks, createEntity, doesContainerItemLeaveCraftingGrid, func_150893_a, func_150897_b, getArmorModel, getArmorTexture, getAttributeModifiers, getChestGenBase, getColorFromItemStack, getContainerItem, getContainerItem, getCreativeTab, getCreativeTabs, getDamage, getDigSpeed, getDisplayDamage, getDurabilityForDisplay, getEntityLifespan, getFontRenderer, getHarvestLevel, getHasSubtypes, getIcon, getIcon, getIconFromDamageForRenderPass, getIconIndex, getIconString, getIdFromItem, getIsRepairable, getItemAttributeModifiers, getItemById, getItemEnchantability, getItemEnchantability, getItemFromBlock, getItemStackDisplayName, getItemStackLimit, getItemStackLimit, getItemUseAction, getMaxDamage, getMaxDamage, getMaxItemUseDuration, getMetadata, getMovingObjectPositionFromPlayer, getPotionEffect, getRarity, getRenderPasses, getShareTag, getSmeltingExperience, getSpriteNumber, getToolClasses, getUnlocalizedName, getUnlocalizedName, getUnlocalizedNameInefficiently, hasContainerItem, hasContainerItem, hasCustomEntity, hasEffect, hasEffect, hitEntity, isBeaconPayment, isBookEnchantable, isDamageable, isDamaged, isFull3D, isItemTool, isMap, isPotionIngredient, isRepairable, isValidArmor, itemInteractionForEntity, onArmorTick, onBlockDestroyed, onBlockStartBreak, onCreated, onDroppedByPlayer, onEaten, onEntityItemUpdate, onEntitySwing, onItemRightClick, onItemUseFirst, onLeftClickEntity, onPlayerStoppedUsing, onUpdate, onUsingTick, registerItems, renderHelmetOverlay, requiresMultipleRenderPasses, setContainerItem, setCreativeTab, setDamage, setFull3D, setHarvestLevel, setHasSubtypes, setMaxDamage, setMaxStackSize, setNoRepair, setPotionEffect, setTextureName, shouldRotateAroundWhenRendering, showDurabilityBarpublic EntityRobot createRobot(net.minecraft.item.ItemStack stack, net.minecraft.world.World world)
public static RedstoneBoardRobotNBT getRobotNBT(net.minecraft.item.ItemStack stack)
public static int getEnergy(net.minecraft.item.ItemStack stack)
public net.minecraft.util.ResourceLocation getTextureRobot(net.minecraft.item.ItemStack stack)
public void addInformation(net.minecraft.item.ItemStack stack,
net.minecraft.entity.player.EntityPlayer player,
java.util.List list,
boolean advanced)
addInformation in class net.minecraft.item.Itempublic void registerIcons(net.minecraft.client.renderer.texture.IIconRegister par1IconRegister)
registerIcons in class ItemBuildCraftpublic static net.minecraft.item.ItemStack createRobotStack(RedstoneBoardRobotNBT board, int energy)
public void getSubItems(net.minecraft.item.Item item,
net.minecraft.creativetab.CreativeTabs par2CreativeTabs,
java.util.List itemList)
getSubItems in class net.minecraft.item.Itempublic int receiveEnergy(net.minecraft.item.ItemStack container,
int maxReceive,
boolean simulate)
IEnergyContainerItemreceiveEnergy in interface IEnergyContainerItemcontainer - ItemStack to be charged.maxReceive - Maximum amount of energy to be sent into the item.simulate - If TRUE, the charge will only be simulated.public int extractEnergy(net.minecraft.item.ItemStack container,
int maxExtract,
boolean simulate)
IEnergyContainerItemextractEnergy in interface IEnergyContainerItemcontainer - ItemStack to be discharged.maxExtract - Maximum amount of energy to be extracted from the item.simulate - If TRUE, the discharge will only be simulated.public int getEnergyStored(net.minecraft.item.ItemStack container)
IEnergyContainerItemgetEnergyStored in interface IEnergyContainerItempublic int getMaxEnergyStored(net.minecraft.item.ItemStack container)
IEnergyContainerItemgetMaxEnergyStored in interface IEnergyContainerItempublic boolean onItemUse(net.minecraft.item.ItemStack currentItem,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.world.World world,
int x,
int y,
int z,
int side,
float hitX,
float hitY,
float hitZ)
onItemUse in class net.minecraft.item.Item