public class ItemBackpack extends ItemWithGui implements IColoredItem
| Constructor and Description |
|---|
ItemBackpack(IBackpackDefinition definition,
EnumBackpackType type) |
| Modifier and Type | Method and Description |
|---|---|
void |
addInformation(net.minecraft.item.ItemStack itemstack,
net.minecraft.world.World world,
java.util.List<java.lang.String> list,
net.minecraft.client.util.ITooltipFlag flag) |
int |
getBackpackSize() |
int |
getColorFromItemstack(net.minecraft.item.ItemStack itemstack,
int j) |
net.minecraft.inventory.Container |
getContainer(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.item.ItemStack heldItem,
int data) |
IBackpackDefinition |
getDefinition() |
net.minecraft.client.gui.inventory.GuiContainer |
getGui(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.item.ItemStack heldItem,
int data) |
java.lang.String |
getItemStackDisplayName(net.minecraft.item.ItemStack itemstack) |
static BackpackMode |
getMode(net.minecraft.item.ItemStack backpack) |
boolean |
getShareTag() |
net.minecraft.util.ActionResult<net.minecraft.item.ItemStack> |
onItemRightClick(net.minecraft.world.World worldIn,
net.minecraft.entity.player.EntityPlayer playerIn,
net.minecraft.util.EnumHand handIn) |
net.minecraft.util.EnumActionResult |
onItemUse(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumHand hand,
net.minecraft.util.EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
net.minecraft.util.EnumActionResult |
onItemUseFirst(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing side,
float hitX,
float hitY,
float hitZ,
net.minecraft.util.EnumHand hand) |
protected void |
openGui(net.minecraft.entity.player.EntityPlayer entityplayer) |
void |
registerModel(net.minecraft.item.Item item,
IModelManager manager) |
boolean |
shouldCauseReequipAnimation(net.minecraft.item.ItemStack oldStack,
net.minecraft.item.ItemStack newStack,
boolean slotChanged) |
static void |
tryStowing(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.item.ItemStack backpackStack,
net.minecraft.item.ItemStack stack) |
onDroppedByPlayergetItemStack, getItemStack, getWildcardaddPropertyOverride, canApplyAtEnchantingTable, canContinueUsing, canDestroyBlockInCreative, canDisableShield, canHarvestBlock, canHarvestBlock, canItemEditBlocks, createEntity, doesSneakBypassUse, getAnimationParameters, getArmorModel, getArmorTexture, getAttributeModifiers, getByNameOrId, getContainerItem, getContainerItem, getCreativeTab, getCreativeTabs, getCreatorModId, getDamage, getDefaultInstance, getDestroySpeed, getDurabilityForDisplay, getEntityLifespan, getEquipmentSlot, getFontRenderer, getForgeRarity, getHarvestLevel, getHasSubtypes, getHighlightTip, getHorseArmorTexture, getHorseArmorType, getIdFromItem, getIsRepairable, getItemAttributeModifiers, getItemBurnTime, getItemById, getItemEnchantability, getItemEnchantability, getItemFromBlock, getItemStackLimit, getItemStackLimit, getItemUseAction, getMaxDamage, getMaxDamage, getMaxItemUseDuration, getMetadata, getMetadata, getNBTShareTag, getPropertyGetter, getRarity, getRGBDurabilityForDisplay, getSmeltingExperience, getSubItems, getTileEntityItemStackRenderer, getToolClasses, getTranslationKey, getTranslationKey, getUnlocalizedNameInefficiently, getXpRepairRatio, hasContainerItem, hasContainerItem, hasCustomEntity, hasCustomProperties, hasEffect, hitEntity, initCapabilities, isBeaconPayment, isBookEnchantable, isDamageable, isDamaged, isEnchantable, isFull3D, isInCreativeTab, isMap, isRepairable, isShield, isValidArmor, itemInteractionForEntity, onArmorTick, onBlockDestroyed, onBlockStartBreak, onCreated, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onItemUseFinish, onLeftClickEntity, onPlayerStoppedUsing, onUpdate, onUsingTick, rayTrace, readNBTShareTag, registerItemBlock, registerItems, renderHelmetOverlay, setContainerItem, setCreativeTab, setDamage, setFull3D, setHarvestLevel, setHasSubtypes, setMaxDamage, setMaxStackSize, setNoRepair, setTileEntityItemStackRenderer, setTranslationKey, shouldCauseBlockBreakReset, shouldRotateAroundWhenRendering, showDurabilityBar, updateItemStackNBTpublic ItemBackpack(IBackpackDefinition definition, EnumBackpackType type)
public IBackpackDefinition getDefinition()
public boolean getShareTag()
getShareTag in class net.minecraft.item.Itemprotected void openGui(net.minecraft.entity.player.EntityPlayer entityplayer)
openGui in class ItemWithGuipublic net.minecraft.util.ActionResult<net.minecraft.item.ItemStack> onItemRightClick(net.minecraft.world.World worldIn,
net.minecraft.entity.player.EntityPlayer playerIn,
net.minecraft.util.EnumHand handIn)
onItemRightClick in class ItemWithGuipublic net.minecraft.util.EnumActionResult onItemUse(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumHand hand,
net.minecraft.util.EnumFacing facing,
float hitX,
float hitY,
float hitZ)
onItemUse in class net.minecraft.item.Itempublic net.minecraft.util.EnumActionResult onItemUseFirst(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing side,
float hitX,
float hitY,
float hitZ,
net.minecraft.util.EnumHand hand)
onItemUseFirst in class net.minecraft.item.Itempublic static void tryStowing(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.item.ItemStack backpackStack,
net.minecraft.item.ItemStack stack)
public int getBackpackSize()
public void addInformation(net.minecraft.item.ItemStack itemstack,
@Nullable
net.minecraft.world.World world,
java.util.List<java.lang.String> list,
net.minecraft.client.util.ITooltipFlag flag)
addInformation in class ItemForestrypublic java.lang.String getItemStackDisplayName(net.minecraft.item.ItemStack itemstack)
getItemStackDisplayName in class net.minecraft.item.Itempublic void registerModel(net.minecraft.item.Item item,
IModelManager manager)
registerModel in interface IItemModelRegisterregisterModel in class ItemForestrypublic int getColorFromItemstack(net.minecraft.item.ItemStack itemstack,
int j)
getColorFromItemstack in interface IColoredItempublic static BackpackMode getMode(net.minecraft.item.ItemStack backpack)
public boolean shouldCauseReequipAnimation(net.minecraft.item.ItemStack oldStack,
net.minecraft.item.ItemStack newStack,
boolean slotChanged)
shouldCauseReequipAnimation in class net.minecraft.item.Item@Nullable
public net.minecraft.client.gui.inventory.GuiContainer getGui(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.item.ItemStack heldItem,
int data)
getGui in interface IGuiHandlerItem@Nullable
public net.minecraft.inventory.Container getContainer(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.item.ItemStack heldItem,
int data)
getContainer in interface IGuiHandlerItem