Modifier and Type | Field and Description |
---|---|
private ItemStack |
DisplayInfo.icon |
Modifier and Type | Method and Description |
---|---|
private static ItemStack |
DisplayInfo.deserializeIcon(com.google.gson.JsonObject object) |
ItemStack |
DisplayInfo.getIcon() |
Constructor and Description |
---|
DisplayInfo(ItemStack icon,
ITextComponent title,
ITextComponent description,
ResourceLocation background,
FrameType frame,
boolean showToast,
boolean announceToChat,
boolean hidden) |
Modifier and Type | Method and Description |
---|---|
boolean |
VillagerTradeTrigger.Instance.test(EntityPlayerMP player,
EntityVillager villager,
ItemStack item) |
boolean |
PlacedBlockTrigger.Instance.test(IBlockState state,
BlockPos pos,
WorldServer world,
ItemStack item) |
boolean |
ConsumeItemTrigger.Instance.test(ItemStack item) |
boolean |
ItemPredicate.test(ItemStack item) |
boolean |
NBTPredicate.test(ItemStack item) |
boolean |
UsedTotemTrigger.Instance.test(ItemStack item) |
boolean |
ItemDurabilityTrigger.Instance.test(ItemStack item,
int p_193197_2_) |
boolean |
EnchantedItemTrigger.Instance.test(ItemStack item,
int levelsIn) |
void |
PlacedBlockTrigger.trigger(EntityPlayerMP player,
BlockPos pos,
ItemStack item) |
void |
VillagerTradeTrigger.trigger(EntityPlayerMP player,
EntityVillager villager,
ItemStack item) |
void |
VillagerTradeTrigger.Listeners.trigger(EntityPlayerMP player,
EntityVillager villager,
ItemStack item) |
void |
ConsumeItemTrigger.trigger(EntityPlayerMP player,
ItemStack item) |
void |
UsedTotemTrigger.trigger(EntityPlayerMP player,
ItemStack item) |
void |
ItemDurabilityTrigger.trigger(EntityPlayerMP player,
ItemStack itemIn,
int newDurability) |
void |
EnchantedItemTrigger.trigger(EntityPlayerMP player,
ItemStack item,
int levelsSpent) |
void |
PlacedBlockTrigger.Listeners.trigger(IBlockState state,
BlockPos pos,
WorldServer world,
ItemStack item) |
void |
ConsumeItemTrigger.Listeners.trigger(ItemStack item) |
void |
UsedTotemTrigger.Listeners.trigger(ItemStack item) |
void |
ItemDurabilityTrigger.Listeners.trigger(ItemStack item,
int newDurability) |
void |
EnchantedItemTrigger.Listeners.trigger(ItemStack item,
int levelsIn) |
Modifier and Type | Field and Description |
---|---|
private ItemStack |
BlockJukebox.TileEntityJukebox.record |
Modifier and Type | Field and Description |
---|---|
protected static java.lang.ThreadLocal<NonNullList<ItemStack>> |
Block.capturedDrops |
Modifier and Type | Method and Description |
---|---|
static ItemStack |
BlockShulkerBox.getColoredItemStack(EnumDyeColor colorIn) |
ItemStack |
BlockReed.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
BlockRedstoneLight.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
BlockNetherWart.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
BlockDaylightDetector.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
BlockCake.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
BlockBanner.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
BlockRedstoneOre.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
BlockOre.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
BlockGrassPath.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
BlockTripWire.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
BlockStoneSlab.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
BlockShulkerBox.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
BlockWoodSlab.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
BlockPistonExtension.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
BlockCocoa.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
BlockCrops.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
BlockRedstoneWire.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
BlockDoublePlant.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
BlockSkull.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
BlockFlowerPot.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
BlockStoneSlabNew.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
BlockRedstoneRepeater.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
BlockRedstoneTorch.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
BlockSilverfish.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
BlockPurpurSlab.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
BlockRedstoneComparator.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
BlockDoor.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
BlockPortal.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
BlockHugeMushroom.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
Block.getItem(World worldIn,
BlockPos pos,
IBlockState state)
Deprecated.
|
ItemStack |
BlockMobSpawner.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
BlockSign.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
BlockCauldron.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
BlockStem.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
BlockFurnace.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
BlockFrostedIce.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
BlockBrewingStand.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
BlockEndPortal.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
BlockBed.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
BlockNewLeaf.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
BlockTallGrass.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
BlockEndGateway.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
BlockPistonMoving.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
BlockDirt.getItem(World worldIn,
BlockPos pos,
IBlockState state) |
ItemStack |
Block.getPickBlock(IBlockState state,
RayTraceResult target,
World world,
BlockPos pos,
EntityPlayer player)
Called when a user uses the creative pick block button on this block
|
ItemStack |
BlockJukebox.TileEntityJukebox.getRecord() |
protected ItemStack |
BlockRedstoneLight.getSilkTouchDrop(IBlockState state) |
protected ItemStack |
BlockRedstoneOre.getSilkTouchDrop(IBlockState state) |
protected ItemStack |
BlockQuartz.getSilkTouchDrop(IBlockState state) |
protected ItemStack |
BlockChorusFlower.getSilkTouchDrop(IBlockState state) |
protected ItemStack |
BlockRotatedPillar.getSilkTouchDrop(IBlockState state) |
protected ItemStack |
BlockOldLeaf.getSilkTouchDrop(IBlockState state) |
protected ItemStack |
BlockSilverfish.getSilkTouchDrop(IBlockState state) |
protected ItemStack |
BlockOldLog.getSilkTouchDrop(IBlockState state) |
protected ItemStack |
Block.getSilkTouchDrop(IBlockState state) |
protected ItemStack |
BlockNewLeaf.getSilkTouchDrop(IBlockState state) |
protected ItemStack |
BlockNewLog.getSilkTouchDrop(IBlockState state) |
private ItemStack |
BlockBanner.getTileDataItemStack(World worldIn,
BlockPos pos) |
Modifier and Type | Method and Description |
---|---|
protected NonNullList<ItemStack> |
Block.captureDrops(boolean start) |
java.util.List<ItemStack> |
Block.getDrops(IBlockAccess world,
BlockPos pos,
IBlockState state,
int fortune)
|
java.util.List<ItemStack> |
BlockDeadBush.onSheared(ItemStack item,
IBlockAccess world,
BlockPos pos,
int fortune) |
java.util.List<ItemStack> |
BlockDoublePlant.onSheared(ItemStack item,
IBlockAccess world,
BlockPos pos,
int fortune) |
NonNullList<ItemStack> |
BlockOldLeaf.onSheared(ItemStack item,
IBlockAccess world,
BlockPos pos,
int fortune) |
java.util.List<ItemStack> |
BlockWeb.onSheared(ItemStack item,
IBlockAccess world,
BlockPos pos,
int fortune) |
java.util.List<ItemStack> |
BlockVine.onSheared(ItemStack item,
IBlockAccess world,
BlockPos pos,
int fortune) |
NonNullList<ItemStack> |
BlockNewLeaf.onSheared(ItemStack item,
IBlockAccess world,
BlockPos pos,
int fortune) |
NonNullList<ItemStack> |
BlockTallGrass.onSheared(ItemStack item,
IBlockAccess world,
BlockPos pos,
int fortune) |
Modifier and Type | Method and Description |
---|---|
void |
BlockShulkerBox.addInformation(ItemStack stack,
World player,
java.util.List<java.lang.String> tooltip,
ITooltipFlag advanced) |
void |
Block.addInformation(ItemStack stack,
World player,
java.util.List<java.lang.String> tooltip,
ITooltipFlag advanced) |
private boolean |
BlockFlowerPot.canBePotted(ItemStack stack) |
boolean |
BlockSkull.canDispenserPlace(World worldIn,
BlockPos pos,
ItemStack stack) |
protected IBehaviorDispenseItem |
BlockDispenser.getBehavior(ItemStack stack) |
protected IBehaviorDispenseItem |
BlockDropper.getBehavior(ItemStack stack) |
java.lang.Comparable<?> |
BlockStoneSlab.getTypeForItem(ItemStack stack) |
java.lang.Comparable<?> |
BlockWoodSlab.getTypeForItem(ItemStack stack) |
java.lang.Comparable<?> |
BlockStoneSlabNew.getTypeForItem(ItemStack stack) |
java.lang.Comparable<?> |
BlockPurpurSlab.getTypeForItem(ItemStack stack) |
abstract java.lang.Comparable<?> |
BlockSlab.getTypeForItem(ItemStack stack) |
void |
BlockBanner.harvestBlock(World worldIn,
EntityPlayer player,
BlockPos pos,
IBlockState state,
TileEntity te,
ItemStack stack) |
void |
BlockChorusFlower.harvestBlock(World worldIn,
EntityPlayer player,
BlockPos pos,
IBlockState state,
TileEntity te,
ItemStack stack) |
void |
BlockDeadBush.harvestBlock(World worldIn,
EntityPlayer player,
BlockPos pos,
IBlockState state,
TileEntity te,
ItemStack stack) |
void |
BlockDoublePlant.harvestBlock(World worldIn,
EntityPlayer player,
BlockPos pos,
IBlockState state,
TileEntity te,
ItemStack stack) |
void |
BlockFlowerPot.harvestBlock(World world,
EntityPlayer player,
BlockPos pos,
IBlockState state,
TileEntity te,
ItemStack tool) |
void |
BlockIce.harvestBlock(World worldIn,
EntityPlayer player,
BlockPos pos,
IBlockState state,
TileEntity te,
ItemStack stack) |
void |
BlockOldLeaf.harvestBlock(World worldIn,
EntityPlayer player,
BlockPos pos,
IBlockState state,
TileEntity te,
ItemStack stack) |
void |
BlockWeb.harvestBlock(World worldIn,
EntityPlayer player,
BlockPos pos,
IBlockState state,
TileEntity te,
ItemStack stack) |
void |
BlockContainer.harvestBlock(World worldIn,
EntityPlayer player,
BlockPos pos,
IBlockState state,
TileEntity te,
ItemStack stack) |
void |
Block.harvestBlock(World worldIn,
EntityPlayer player,
BlockPos pos,
IBlockState state,
TileEntity te,
ItemStack stack) |
void |
BlockVine.harvestBlock(World worldIn,
EntityPlayer player,
BlockPos pos,
IBlockState state,
TileEntity te,
ItemStack stack) |
void |
BlockSnow.harvestBlock(World worldIn,
EntityPlayer player,
BlockPos pos,
IBlockState state,
TileEntity te,
ItemStack stack) |
void |
BlockBed.harvestBlock(World worldIn,
EntityPlayer player,
BlockPos pos,
IBlockState state,
TileEntity te,
ItemStack stack) |
void |
BlockNewLeaf.harvestBlock(World worldIn,
EntityPlayer player,
BlockPos pos,
IBlockState state,
TileEntity te,
ItemStack stack) |
void |
BlockTallGrass.harvestBlock(World worldIn,
EntityPlayer player,
BlockPos pos,
IBlockState state,
TileEntity te,
ItemStack stack) |
void |
BlockJukebox.insertRecord(World worldIn,
BlockPos pos,
IBlockState state,
ItemStack recordStack) |
boolean |
BlockLeaves.isShearable(ItemStack item,
IBlockAccess world,
BlockPos pos) |
boolean |
BlockDeadBush.isShearable(ItemStack item,
IBlockAccess world,
BlockPos pos) |
boolean |
BlockDoublePlant.isShearable(ItemStack item,
IBlockAccess world,
BlockPos pos) |
boolean |
BlockWeb.isShearable(ItemStack item,
IBlockAccess world,
BlockPos pos) |
boolean |
BlockVine.isShearable(ItemStack item,
IBlockAccess world,
BlockPos pos) |
boolean |
BlockTallGrass.isShearable(ItemStack item,
IBlockAccess world,
BlockPos pos) |
void |
BlockCommandBlock.onBlockPlacedBy(World worldIn,
BlockPos pos,
IBlockState state,
EntityLivingBase placer,
ItemStack stack) |
void |
BlockChest.onBlockPlacedBy(World worldIn,
BlockPos pos,
IBlockState state,
EntityLivingBase placer,
ItemStack stack) |
void |
BlockDispenser.onBlockPlacedBy(World worldIn,
BlockPos pos,
IBlockState state,
EntityLivingBase placer,
ItemStack stack) |
void |
BlockShulkerBox.onBlockPlacedBy(World worldIn,
BlockPos pos,
IBlockState state,
EntityLivingBase placer,
ItemStack stack) |
void |
BlockCocoa.onBlockPlacedBy(World worldIn,
BlockPos pos,
IBlockState state,
EntityLivingBase placer,
ItemStack stack) |
void |
BlockHopper.onBlockPlacedBy(World worldIn,
BlockPos pos,
IBlockState state,
EntityLivingBase placer,
ItemStack stack) |
void |
BlockDoublePlant.onBlockPlacedBy(World worldIn,
BlockPos pos,
IBlockState state,
EntityLivingBase placer,
ItemStack stack) |
void |
BlockTripWireHook.onBlockPlacedBy(World worldIn,
BlockPos pos,
IBlockState state,
EntityLivingBase placer,
ItemStack stack) |
void |
BlockPistonBase.onBlockPlacedBy(World worldIn,
BlockPos pos,
IBlockState state,
EntityLivingBase placer,
ItemStack stack) |
void |
BlockRedstoneDiode.onBlockPlacedBy(World worldIn,
BlockPos pos,
IBlockState state,
EntityLivingBase placer,
ItemStack stack) |
void |
BlockEnderChest.onBlockPlacedBy(World worldIn,
BlockPos pos,
IBlockState state,
EntityLivingBase placer,
ItemStack stack) |
void |
Block.onBlockPlacedBy(World worldIn,
BlockPos pos,
IBlockState state,
EntityLivingBase placer,
ItemStack stack) |
void |
BlockBeacon.onBlockPlacedBy(World worldIn,
BlockPos pos,
IBlockState state,
EntityLivingBase placer,
ItemStack stack) |
void |
BlockFurnace.onBlockPlacedBy(World worldIn,
BlockPos pos,
IBlockState state,
EntityLivingBase placer,
ItemStack stack) |
void |
BlockBrewingStand.onBlockPlacedBy(World worldIn,
BlockPos pos,
IBlockState state,
EntityLivingBase placer,
ItemStack stack) |
void |
BlockStructure.onBlockPlacedBy(World worldIn,
BlockPos pos,
IBlockState state,
EntityLivingBase placer,
ItemStack stack) |
void |
BlockEnchantmentTable.onBlockPlacedBy(World worldIn,
BlockPos pos,
IBlockState state,
EntityLivingBase placer,
ItemStack stack) |
java.util.List<ItemStack> |
BlockDeadBush.onSheared(ItemStack item,
IBlockAccess world,
BlockPos pos,
int fortune) |
java.util.List<ItemStack> |
BlockDoublePlant.onSheared(ItemStack item,
IBlockAccess world,
BlockPos pos,
int fortune) |
NonNullList<ItemStack> |
BlockOldLeaf.onSheared(ItemStack item,
IBlockAccess world,
BlockPos pos,
int fortune) |
java.util.List<ItemStack> |
BlockWeb.onSheared(ItemStack item,
IBlockAccess world,
BlockPos pos,
int fortune) |
java.util.List<ItemStack> |
BlockVine.onSheared(ItemStack item,
IBlockAccess world,
BlockPos pos,
int fortune) |
NonNullList<ItemStack> |
BlockNewLeaf.onSheared(ItemStack item,
IBlockAccess world,
BlockPos pos,
int fortune) |
NonNullList<ItemStack> |
BlockTallGrass.onSheared(ItemStack item,
IBlockAccess world,
BlockPos pos,
int fortune) |
void |
BlockJukebox.TileEntityJukebox.setRecord(ItemStack recordStack) |
static void |
Block.spawnAsEntity(World worldIn,
BlockPos pos,
ItemStack stack) |
Modifier and Type | Method and Description |
---|---|
void |
BlockNetherWart.getDrops(NonNullList<ItemStack> drops,
IBlockAccess world,
BlockPos pos,
IBlockState state,
int fortune) |
void |
BlockLeaves.getDrops(NonNullList<ItemStack> drops,
IBlockAccess world,
BlockPos pos,
IBlockState state,
int fortune) |
void |
BlockBanner.getDrops(NonNullList<ItemStack> drops,
IBlockAccess world,
BlockPos pos,
IBlockState state,
int fortune) |
void |
BlockPotato.getDrops(NonNullList<ItemStack> drops,
IBlockAccess world,
BlockPos pos,
IBlockState state,
int fortune) |
void |
BlockCocoa.getDrops(NonNullList<ItemStack> drops,
IBlockAccess world,
BlockPos pos,
IBlockState state,
int fortune) |
void |
BlockCrops.getDrops(NonNullList<ItemStack> drops,
IBlockAccess world,
BlockPos pos,
IBlockState state,
int fortune) |
void |
BlockSkull.getDrops(NonNullList<ItemStack> drops,
IBlockAccess worldIn,
BlockPos pos,
IBlockState state,
int fortune) |
void |
BlockFlowerPot.getDrops(NonNullList<ItemStack> drops,
IBlockAccess world,
BlockPos pos,
IBlockState state,
int fortune) |
void |
Block.getDrops(NonNullList<ItemStack> drops,
IBlockAccess world,
BlockPos pos,
IBlockState state,
int fortune)
This gets a complete list of items dropped from this block.
|
void |
BlockStem.getDrops(NonNullList<ItemStack> drops,
IBlockAccess world,
BlockPos pos,
IBlockState state,
int fortune) |
void |
BlockTallGrass.getDrops(NonNullList<ItemStack> drops,
IBlockAccess world,
BlockPos pos,
IBlockState state,
int fortune) |
void |
BlockPistonMoving.getDrops(NonNullList<ItemStack> drops,
IBlockAccess world,
BlockPos pos,
IBlockState state,
int fortune) |
void |
BlockStoneBrick.getSubBlocks(CreativeTabs itemIn,
NonNullList<ItemStack> items) |
void |
BlockStone.getSubBlocks(CreativeTabs itemIn,
NonNullList<ItemStack> items) |
void |
BlockDaylightDetector.getSubBlocks(CreativeTabs itemIn,
NonNullList<ItemStack> items) |
void |
BlockPlanks.getSubBlocks(CreativeTabs itemIn,
NonNullList<ItemStack> items) |
void |
BlockRedSandstone.getSubBlocks(CreativeTabs itemIn,
NonNullList<ItemStack> items) |
void |
BlockStoneSlab.getSubBlocks(CreativeTabs itemIn,
NonNullList<ItemStack> items) |
void |
BlockCarpet.getSubBlocks(CreativeTabs itemIn,
NonNullList<ItemStack> items) |
void |
BlockQuartz.getSubBlocks(CreativeTabs itemIn,
NonNullList<ItemStack> items) |
void |
BlockWoodSlab.getSubBlocks(CreativeTabs itemIn,
NonNullList<ItemStack> items) |
void |
BlockAnvil.getSubBlocks(CreativeTabs itemIn,
NonNullList<ItemStack> items) |
void |
BlockSand.getSubBlocks(CreativeTabs itemIn,
NonNullList<ItemStack> items) |
void |
BlockPrismarine.getSubBlocks(CreativeTabs itemIn,
NonNullList<ItemStack> items) |
void |
BlockConcretePowder.getSubBlocks(CreativeTabs itemIn,
NonNullList<ItemStack> items) |
void |
BlockDoublePlant.getSubBlocks(CreativeTabs itemIn,
NonNullList<ItemStack> items) |
void |
BlockStainedGlassPane.getSubBlocks(CreativeTabs itemIn,
NonNullList<ItemStack> items) |
void |
BlockStoneSlabNew.getSubBlocks(CreativeTabs itemIn,
NonNullList<ItemStack> items) |
void |
BlockSandStone.getSubBlocks(CreativeTabs itemIn,
NonNullList<ItemStack> items) |
void |
BlockSapling.getSubBlocks(CreativeTabs itemIn,
NonNullList<ItemStack> items) |
void |
BlockOldLeaf.getSubBlocks(CreativeTabs itemIn,
NonNullList<ItemStack> items) |
void |
BlockSilverfish.getSubBlocks(CreativeTabs itemIn,
NonNullList<ItemStack> items) |
void |
BlockOldLog.getSubBlocks(CreativeTabs itemIn,
NonNullList<ItemStack> items) |
void |
BlockFlower.getSubBlocks(CreativeTabs itemIn,
NonNullList<ItemStack> items) |
void |
Block.getSubBlocks(CreativeTabs itemIn,
NonNullList<ItemStack> items) |
void |
BlockColored.getSubBlocks(CreativeTabs itemIn,
NonNullList<ItemStack> items) |
void |
BlockSponge.getSubBlocks(CreativeTabs itemIn,
NonNullList<ItemStack> items) |
void |
BlockStainedGlass.getSubBlocks(CreativeTabs itemIn,
NonNullList<ItemStack> items) |
void |
BlockNewLeaf.getSubBlocks(CreativeTabs itemIn,
NonNullList<ItemStack> items) |
void |
BlockWall.getSubBlocks(CreativeTabs itemIn,
NonNullList<ItemStack> items) |
void |
BlockTallGrass.getSubBlocks(CreativeTabs itemIn,
NonNullList<ItemStack> items) |
void |
BlockNewLog.getSubBlocks(CreativeTabs itemIn,
NonNullList<ItemStack> items) |
void |
BlockDirt.getSubBlocks(CreativeTabs itemIn,
NonNullList<ItemStack> items) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
Minecraft.storeTEInStack(ItemStack stack,
TileEntity te) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
Minecraft.storeTEInStack(ItemStack stack,
TileEntity te) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
EntityPlayerSP.dropItemAndGetStack(EntityItem p_184816_1_) |
Modifier and Type | Method and Description |
---|---|
void |
EntityPlayerSP.openBook(ItemStack stack,
EnumHand hand) |
Modifier and Type | Field and Description |
---|---|
private ItemStack |
GuiScreenBook.book |
protected ItemStack |
GuiIngame.highlightingItemStack |
private ItemStack |
GuiEnchantment.last |
Modifier and Type | Method and Description |
---|---|
private void |
GuiCreateFlatWorld.Details.drawItem(int x,
int z,
ItemStack itemToDraw) |
java.util.List<java.lang.String> |
GuiScreen.getItemToolTip(ItemStack p_191927_1_) |
protected void |
GuiIngame.renderHotbarItem(int p_184044_1_,
int p_184044_2_,
float p_184044_3_,
EntityPlayer player,
ItemStack stack) |
void |
GuiScreenRealmsProxy.renderToolTip(ItemStack stack,
int x,
int y) |
protected void |
GuiScreen.renderToolTip(ItemStack stack,
int x,
int y) |
void |
GuiRepair.sendSlotContents(Container containerToSend,
int slotInd,
ItemStack stack) |
Modifier and Type | Method and Description |
---|---|
void |
GuiRepair.sendAllContents(Container containerToSend,
NonNullList<ItemStack> itemsList) |
Constructor and Description |
---|
GuiScreenBook(EntityPlayer player,
ItemStack book,
boolean isUnsigned) |
Modifier and Type | Field and Description |
---|---|
private ItemStack |
GuiAdvancementTab.icon |
Modifier and Type | Method and Description |
---|---|
void |
AdvancementTabType.drawIcon(int p_192652_1_,
int p_192652_2_,
int p_192652_3_,
RenderItem renderItemIn,
ItemStack stack) |
Modifier and Type | Field and Description |
---|---|
private ItemStack |
GuiContainer.draggedStack |
private ItemStack |
GuiContainer.returningStack |
private ItemStack |
GuiContainer.shiftClickedSlot |
Modifier and Type | Field and Description |
---|---|
NonNullList<ItemStack> |
GuiContainerCreative.ContainerCreative.itemList |
Modifier and Type | Method and Description |
---|---|
ItemStack |
GuiContainerCreative.CreativeSlot.decrStackSize(int amount) |
ItemStack |
GuiContainerCreative.CreativeSlot.getStack() |
ItemStack |
GuiContainerCreative.CreativeSlot.onTake(EntityPlayer thePlayer,
ItemStack stack) |
ItemStack |
GuiContainerCreative.ContainerCreative.transferStackInSlot(EntityPlayer playerIn,
int index) |
Modifier and Type | Method and Description |
---|---|
boolean |
GuiContainerCreative.ContainerCreative.canMergeSlot(ItemStack stack,
Slot slotIn) |
private void |
GuiContainer.drawItemStack(ItemStack stack,
int x,
int y,
java.lang.String altText) |
int |
GuiContainerCreative.CreativeSlot.getItemStackLimit(ItemStack stack) |
boolean |
GuiContainerCreative.CreativeSlot.isItemValid(ItemStack stack) |
ItemStack |
GuiContainerCreative.CreativeSlot.onTake(EntityPlayer thePlayer,
ItemStack stack) |
void |
GuiContainerCreative.CreativeSlot.putStack(ItemStack stack) |
protected void |
GuiContainerCreative.renderToolTip(ItemStack stack,
int x,
int y) |
void |
CreativeCrafting.sendSlotContents(Container containerToSend,
int slotInd,
ItemStack stack) |
Modifier and Type | Method and Description |
---|---|
void |
CreativeCrafting.sendAllContents(Container containerToSend,
NonNullList<ItemStack> itemsList) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
GhostRecipe.GhostIngredient.getItem() |
Modifier and Type | Field and Description |
---|---|
private java.util.List<ItemStack> |
RecipeToast.recipesOutputs |
Modifier and Type | Method and Description |
---|---|
void |
RecipeToast.addRecipeOutput(ItemStack output) |
Constructor and Description |
---|
RecipeToast(ItemStack p_i47489_1_) |
Modifier and Type | Field and Description |
---|---|
private ItemStack |
PlayerControllerMP.currentItemHittingBlock |
Modifier and Type | Method and Description |
---|---|
ItemStack |
PlayerControllerMP.windowClick(int windowId,
int slotId,
int mouseButton,
ClickType type,
EntityPlayer player) |
Modifier and Type | Method and Description |
---|---|
void |
PlayerControllerMP.sendPacketDropItem(ItemStack itemStackIn) |
void |
PlayerControllerMP.sendSlotPacket(ItemStack itemStackIn,
int slotId) |
Modifier and Type | Field and Description |
---|---|
private ItemStack |
EntityRenderer.itemActivationItem |
private ItemStack |
ItemRenderer.itemStackMainHand |
private ItemStack |
ItemRenderer.itemStackOffHand |
Modifier and Type | Method and Description |
---|---|
void |
EntityRenderer.displayItemActivation(ItemStack stack) |
IBakedModel |
ItemModelMesher.getItemModel(ItemStack stack) |
IBakedModel |
RenderItem.getItemModelWithOverrides(ItemStack stack,
World worldIn,
EntityLivingBase entitylivingbaseIn) |
protected int |
ItemModelMesher.getMetadata(ItemStack stack) |
ModelResourceLocation |
ItemMeshDefinition.getModelLocation(ItemStack stack) |
void |
ItemRenderer.renderItem(EntityLivingBase entityIn,
ItemStack heldStack,
ItemCameraTransforms.TransformType transform) |
void |
RenderItem.renderItem(ItemStack stack,
EntityLivingBase entitylivingbaseIn,
ItemCameraTransforms.TransformType transform,
boolean leftHanded) |
void |
RenderItem.renderItem(ItemStack stack,
IBakedModel model) |
void |
RenderItem.renderItem(ItemStack stack,
ItemCameraTransforms.TransformType cameraTransformType) |
void |
RenderItem.renderItemAndEffectIntoGUI(EntityLivingBase p_184391_1_,
ItemStack p_184391_2_,
int p_184391_3_,
int p_184391_4_) |
void |
RenderItem.renderItemAndEffectIntoGUI(ItemStack stack,
int xPosition,
int yPosition) |
void |
ItemRenderer.renderItemInFirstPerson(AbstractClientPlayer player,
float p_187457_2_,
float p_187457_3_,
EnumHand hand,
float p_187457_5_,
ItemStack stack,
float p_187457_7_) |
void |
RenderItem.renderItemIntoGUI(ItemStack stack,
int x,
int y) |
protected void |
RenderItem.renderItemModel(ItemStack stack,
IBakedModel bakedmodel,
ItemCameraTransforms.TransformType transform,
boolean leftHanded) |
protected void |
RenderItem.renderItemModelIntoGUI(ItemStack stack,
int x,
int y,
IBakedModel bakedmodel) |
void |
RenderItem.renderItemOverlayIntoGUI(FontRenderer fr,
ItemStack stack,
int xPosition,
int yPosition,
java.lang.String text) |
void |
RenderItem.renderItemOverlays(FontRenderer fr,
ItemStack stack,
int xPosition,
int yPosition) |
void |
ItemRenderer.renderItemSide(EntityLivingBase entitylivingbaseIn,
ItemStack heldStack,
ItemCameraTransforms.TransformType transform,
boolean leftHanded) |
private void |
ItemRenderer.renderMapFirstPerson(ItemStack stack) |
private void |
ItemRenderer.renderMapFirstPersonSide(float p_187465_1_,
EnumHandSide hand,
float p_187465_3_,
ItemStack stack) |
private void |
RenderItem.renderModel(IBakedModel model,
int color,
ItemStack stack) |
private void |
RenderItem.renderModel(IBakedModel model,
ItemStack stack) |
void |
RenderItem.renderQuads(BufferBuilder renderer,
java.util.List<BakedQuad> quads,
int color,
ItemStack stack) |
boolean |
RenderItem.shouldRenderItemIn3D(ItemStack stack) |
private void |
ItemRenderer.transformEatFirstPerson(float p_187454_1_,
EnumHandSide hand,
ItemStack stack) |
Modifier and Type | Method and Description |
---|---|
ResourceLocation |
ItemOverrideList.applyOverride(ItemStack stack,
World worldIn,
EntityLivingBase entityIn)
Deprecated.
|
IBakedModel |
ItemOverrideList.handleItemState(IBakedModel originalModel,
ItemStack stack,
World world,
EntityLivingBase entity) |
(package private) boolean |
ItemOverride.matchesItemStack(ItemStack stack,
World worldIn,
EntityLivingBase livingEntity) |
Modifier and Type | Method and Description |
---|---|
int |
ItemColors.colorMultiplier(ItemStack stack,
int tintIndex) |
int |
IItemColor.colorMultiplier(ItemStack stack,
int tintIndex) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
RenderPotion.getStackToRender(EntityPotion entityIn) |
ItemStack |
RenderSnowball.getStackToRender(T entityIn) |
Modifier and Type | Method and Description |
---|---|
protected int |
RenderEntityItem.getModelCount(ItemStack stack) |
Modifier and Type | Method and Description |
---|---|
protected ModelBiped |
LayerBipedArmor.getArmorModelHook(EntityLivingBase entity,
ItemStack itemStack,
EntityEquipmentSlot slot,
ModelBiped model) |
protected T |
LayerArmorBase.getArmorModelHook(EntityLivingBase entity,
ItemStack itemStack,
EntityEquipmentSlot slot,
T model)
Hook to allow item-sensitive armor model.
|
ResourceLocation |
LayerArmorBase.getArmorResource(Entity entity,
ItemStack stack,
EntityEquipmentSlot slot,
java.lang.String type)
More generic ForgeHook version of the above function, it allows for Items to have more control over what texture they provide.
|
private void |
LayerHeldItem.renderHeldItem(EntityLivingBase p_188358_1_,
ItemStack p_188358_2_,
ItemCameraTransforms.TransformType p_188358_3_,
EnumHandSide handSide) |
Modifier and Type | Method and Description |
---|---|
void |
TileEntityItemStackRenderer.renderByItem(ItemStack itemStackIn) |
void |
TileEntityItemStackRenderer.renderByItem(ItemStack p_192838_1_,
float partialTicks) |
Modifier and Type | Method and Description |
---|---|
default void |
ITutorialStep.handleSetSlot(ItemStack stack) |
void |
PunchTreeStep.handleSetSlot(ItemStack stack) |
void |
FindTreeStep.handleSetSlot(ItemStack stack) |
void |
CraftPlanksStep.handleSetSlot(ItemStack stack) |
void |
Tutorial.handleSetSlot(ItemStack stack) |
Modifier and Type | Field and Description |
---|---|
static SearchTreeManager.Key<ItemStack> |
SearchTreeManager.ITEMS |
Modifier and Type | Method and Description |
---|---|
static ItemStack |
RecipeItemHelper.unpack(int p_194115_0_) |
Modifier and Type | Method and Description |
---|---|
void |
RecipeItemHelper.accountStack(ItemStack stack) |
void |
RecipeItemHelper.accountStack(ItemStack stack,
int forceCount) |
private static CreativeTabs |
RecipeBookClient.getItemStackTab(ItemStack p_194084_0_) |
static int |
RecipeItemHelper.pack(ItemStack stack) |
Modifier and Type | Field and Description |
---|---|
private ItemStack |
CreativeTabs.iconItemStack |
Modifier and Type | Method and Description |
---|---|
ItemStack |
CreativeTabs.getIconItemStack() |
abstract ItemStack |
CreativeTabs.getTabIconItem() |
Modifier and Type | Method and Description |
---|---|
void |
CreativeTabs.displayAllRelevantItems(NonNullList<ItemStack> p_78018_1_) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
BehaviorDefaultDispenseItem.dispense(IBlockSource source,
ItemStack stack) |
ItemStack |
IBehaviorDispenseItem.dispense(IBlockSource source,
ItemStack stack) |
protected ItemStack |
BehaviorDefaultDispenseItem.dispenseStack(IBlockSource source,
ItemStack stack) |
ItemStack |
BehaviorProjectileDispense.dispenseStack(IBlockSource source,
ItemStack stack) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
BehaviorDefaultDispenseItem.dispense(IBlockSource source,
ItemStack stack) |
ItemStack |
IBehaviorDispenseItem.dispense(IBlockSource source,
ItemStack stack) |
protected ItemStack |
BehaviorDefaultDispenseItem.dispenseStack(IBlockSource source,
ItemStack stack) |
ItemStack |
BehaviorProjectileDispense.dispenseStack(IBlockSource source,
ItemStack stack) |
static void |
BehaviorDefaultDispenseItem.doDispense(World worldIn,
ItemStack stack,
int speed,
EnumFacing facing,
IPosition position) |
protected abstract IProjectile |
BehaviorProjectileDispense.getProjectileEntity(World worldIn,
IPosition position,
ItemStack stackIn) |
Modifier and Type | Method and Description |
---|---|
static ItemStack |
EnchantmentHelper.addRandomEnchantment(java.util.Random random,
ItemStack stack,
int level,
boolean allowTreasure) |
static ItemStack |
EnchantmentHelper.getEnchantedItem(Enchantment p_92099_0_,
EntityLivingBase p_92099_1_) |
Modifier and Type | Method and Description |
---|---|
java.util.List<ItemStack> |
Enchantment.getEntityEquipment(EntityLivingBase entityIn) |
Modifier and Type | Method and Description |
---|---|
static ItemStack |
EnchantmentHelper.addRandomEnchantment(java.util.Random random,
ItemStack stack,
int level,
boolean allowTreasure) |
private static void |
EnchantmentHelper.applyEnchantmentModifier(EnchantmentHelper.IModifier modifier,
ItemStack stack) |
static java.util.List<EnchantmentData> |
EnchantmentHelper.buildEnchantmentList(java.util.Random randomIn,
ItemStack itemStackIn,
int level,
boolean allowTreasure) |
static int |
EnchantmentHelper.calcItemStackEnchantability(java.util.Random rand,
int enchantNum,
int power,
ItemStack stack) |
boolean |
EnchantmentDigging.canApply(ItemStack stack) |
boolean |
Enchantment.canApply(ItemStack stack) |
boolean |
EnchantmentDamage.canApply(ItemStack stack) |
boolean |
EnchantmentDurability.canApply(ItemStack stack) |
boolean |
EnchantmentThorns.canApply(ItemStack stack) |
boolean |
Enchantment.canApplyAtEnchantingTable(ItemStack stack)
This applies specifically to applying at the enchanting table.
|
private void |
EnchantmentThorns.damageArmor(ItemStack stack,
int amount,
EntityLivingBase entity) |
static java.util.List<EnchantmentData> |
EnchantmentHelper.getEnchantmentDatas(int p_185291_0_,
ItemStack p_185291_1_,
boolean allowTreasure) |
static int |
EnchantmentHelper.getEnchantmentLevel(Enchantment enchID,
ItemStack stack) |
static java.util.Map<Enchantment,java.lang.Integer> |
EnchantmentHelper.getEnchantments(ItemStack stack) |
static int |
EnchantmentHelper.getFishingLuckBonus(ItemStack p_191529_0_) |
static int |
EnchantmentHelper.getFishingSpeedBonus(ItemStack p_191528_0_) |
static float |
EnchantmentHelper.getModifierForCreature(ItemStack stack,
EnumCreatureAttribute creatureAttribute) |
static boolean |
EnchantmentHelper.hasBindingCurse(ItemStack p_190938_0_) |
static boolean |
EnchantmentHelper.hasVanishingCurse(ItemStack p_190939_0_) |
static boolean |
EnchantmentDurability.negateDamage(ItemStack stack,
int level,
java.util.Random rand) |
static void |
EnchantmentHelper.setEnchantments(java.util.Map<Enchantment,java.lang.Integer> enchMap,
ItemStack stack) |
Modifier and Type | Method and Description |
---|---|
private static void |
EnchantmentHelper.applyEnchantmentModifierArray(EnchantmentHelper.IModifier modifier,
java.lang.Iterable<ItemStack> stacks) |
static int |
EnchantmentHelper.getEnchantmentModifierDamage(java.lang.Iterable<ItemStack> stacks,
DamageSource source) |
Modifier and Type | Field and Description |
---|---|
protected ItemStack |
EntityLivingBase.activeItemStack |
Modifier and Type | Field and Description |
---|---|
private NonNullList<ItemStack> |
EntityLivingBase.armorArray |
private static java.util.List<ItemStack> |
Entity.EMPTY_EQUIPMENT |
private NonNullList<ItemStack> |
EntityLivingBase.handInventory |
private NonNullList<ItemStack> |
EntityLiving.inventoryArmor |
private NonNullList<ItemStack> |
EntityLiving.inventoryHands |
Modifier and Type | Method and Description |
---|---|
ItemStack |
EntityLivingBase.getActiveItemStack() |
ItemStack |
EntityLivingBase.getHeldItem(EnumHand hand) |
ItemStack |
EntityLivingBase.getHeldItemMainhand() |
ItemStack |
EntityLivingBase.getHeldItemOffhand() |
ItemStack |
EntityLiving.getItemStackFromSlot(EntityEquipmentSlot slotIn) |
abstract ItemStack |
EntityLivingBase.getItemStackFromSlot(EntityEquipmentSlot slotIn) |
ItemStack |
Entity.getPickedResult(RayTraceResult target)
Called when a user uses the creative pick block button on this entity.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<ItemStack> |
Entity.getArmorInventoryList() |
java.lang.Iterable<ItemStack> |
EntityLiving.getArmorInventoryList() |
abstract java.lang.Iterable<ItemStack> |
EntityLivingBase.getArmorInventoryList() |
java.lang.Iterable<ItemStack> |
Entity.getEquipmentAndArmor() |
java.lang.Iterable<ItemStack> |
Entity.getHeldEquipment() |
java.lang.Iterable<ItemStack> |
EntityLiving.getHeldEquipment() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
EntityLiving.canEquipItem(ItemStack stack) |
void |
EntityLivingBase.curePotionEffects(ItemStack curativeItem)
Removes all potion effects that have curativeItem as a curative item for its effect
|
EntityItem |
EntityHanging.entityDropItem(ItemStack stack,
float offsetY) |
EntityItem |
Entity.entityDropItem(ItemStack stack,
float offsetY) |
static EntityEquipmentSlot |
EntityLiving.getSlotForItemStack(ItemStack stack) |
protected boolean |
EntityAgeable.holdingSpawnEggOfClass(ItemStack stack,
java.lang.Class<? extends Entity> entityClass) |
static boolean |
EntityLiving.isItemStackInSlot(EntityEquipmentSlot slotIn,
ItemStack stack) |
protected void |
EntityLivingBase.playEquipSound(ItemStack stack) |
void |
EntityLivingBase.renderBrokenItemStack(ItemStack stack) |
boolean |
Entity.replaceItemInInventory(int inventorySlot,
ItemStack itemStackIn) |
boolean |
EntityLiving.replaceItemInInventory(int inventorySlot,
ItemStack itemStackIn) |
void |
EntityLivingBase.setHeldItem(EnumHand hand,
ItemStack stack) |
void |
Entity.setItemStackToSlot(EntityEquipmentSlot slotIn,
ItemStack stack) |
void |
EntityLiving.setItemStackToSlot(EntityEquipmentSlot slotIn,
ItemStack stack) |
abstract void |
EntityLivingBase.setItemStackToSlot(EntityEquipmentSlot slotIn,
ItemStack stack) |
protected void |
EntityLivingBase.updateItemUse(ItemStack stack,
int eatingParticleCount) |
void |
IMerchant.verifySellingItem(ItemStack stack) |
void |
NpcMerchant.verifySellingItem(ItemStack stack) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
EntityAITempt.isTempting(ItemStack stack) |
Modifier and Type | Field and Description |
---|---|
private NonNullList<ItemStack> |
EntityArmorStand.armorItems |
private static DataParameter<ItemStack> |
EntityFireworkRocket.FIREWORK_ITEM |
private NonNullList<ItemStack> |
EntityArmorStand.handItems |
private static DataParameter<ItemStack> |
EntityItem.ITEM |
private static DataParameter<ItemStack> |
EntityItemFrame.ITEM |
private NonNullList<ItemStack> |
EntityMinecartContainer.minecartContainerItems |
Modifier and Type | Method and Description |
---|---|
ItemStack |
EntityMinecartContainer.decrStackSize(int index,
int count) |
ItemStack |
EntityMinecart.getCartItem()
This function returns an ItemStack that represents this cart.
|
ItemStack |
EntityItemFrame.getDisplayedItem() |
ItemStack |
EntityItem.getItem() |
ItemStack |
EntityArmorStand.getItemStackFromSlot(EntityEquipmentSlot slotIn) |
ItemStack |
EntityMinecartContainer.getStackInSlot(int index) |
ItemStack |
EntityMinecartContainer.removeStackFromSlot(int index) |
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<ItemStack> |
EntityArmorStand.getArmorInventoryList() |
java.lang.Iterable<ItemStack> |
EntityArmorStand.getHeldEquipment() |
Modifier and Type | Method and Description |
---|---|
boolean |
EntityMinecartContainer.isItemValidForSlot(int index,
ItemStack stack) |
private void |
EntityItemFrame.removeFrameFromMap(ItemStack stack) |
boolean |
EntityArmorStand.replaceItemInInventory(int inventorySlot,
ItemStack itemStackIn) |
void |
EntityItemFrame.setDisplayedItem(ItemStack stack) |
private void |
EntityItemFrame.setDisplayedItemWithUpdate(ItemStack stack,
boolean p_174864_2_) |
void |
EntityMinecartContainer.setInventorySlotContents(int index,
ItemStack stack) |
void |
EntityItem.setItem(ItemStack stack) |
void |
EntityArmorStand.setItemStackToSlot(EntityEquipmentSlot slotIn,
ItemStack stack) |
private void |
EntityArmorStand.swapItem(EntityPlayer player,
EntityEquipmentSlot p_184795_2_,
ItemStack p_184795_3_,
EnumHand hand) |
Constructor and Description |
---|
EntityFireworkRocket(World worldIn,
double x,
double y,
double z,
ItemStack givenItem) |
EntityFireworkRocket(World p_i47367_1_,
ItemStack p_i47367_2_,
EntityLivingBase p_i47367_3_) |
EntityItem(World worldIn,
double x,
double y,
double z,
ItemStack stack) |
Modifier and Type | Method and Description |
---|---|
protected ItemStack |
EntityHusk.getSkullDrop() |
protected ItemStack |
EntityZombieVillager.getSkullDrop() |
protected ItemStack |
EntityZombie.getSkullDrop() |
protected ItemStack |
EntityPigZombie.getSkullDrop() |
Modifier and Type | Method and Description |
---|---|
java.util.List<ItemStack> |
EntitySnowman.onSheared(ItemStack item,
IBlockAccess world,
BlockPos pos,
int fortune) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
EntityZombie.canEquipItem(ItemStack stack) |
boolean |
EntityPolarBear.isBreedingItem(ItemStack stack) |
boolean |
EntitySnowman.isShearable(ItemStack item,
IBlockAccess world,
BlockPos pos) |
java.util.List<ItemStack> |
EntitySnowman.onSheared(ItemStack item,
IBlockAccess world,
BlockPos pos,
int fortune) |
void |
AbstractSkeleton.setItemStackToSlot(EntityEquipmentSlot slotIn,
ItemStack stack) |
Modifier and Type | Field and Description |
---|---|
ItemStack |
EntityVillager.ItemAndEmeraldToItem.buyingItemStack |
ItemStack |
EntityVillager.ListEnchantedItemForEmeralds.enchantedItemStack |
ItemStack |
EntityVillager.ListItemForEmeralds.itemToBuy |
ItemStack |
EntityVillager.ItemAndEmeraldToItem.sellingItemstack |
Modifier and Type | Field and Description |
---|---|
private static DataParameter<ItemStack> |
EntityHorse.HORSE_ARMOR_STACK |
Modifier and Type | Method and Description |
---|---|
java.util.List<ItemStack> |
EntityMooshroom.onSheared(ItemStack item,
IBlockAccess world,
BlockPos pos,
int fortune) |
java.util.List<ItemStack> |
EntitySheep.onSheared(ItemStack item,
IBlockAccess world,
BlockPos pos,
int fortune) |
Modifier and Type | Method and Description |
---|---|
protected void |
EntityAnimal.consumeItemFromStack(EntityPlayer player,
ItemStack stack) |
static HorseArmorType |
HorseArmorType.getByItemStack(ItemStack stack) |
protected boolean |
AbstractHorse.handleEating(EntityPlayer player,
ItemStack stack) |
protected boolean |
EntityLlama.handleEating(EntityPlayer player,
ItemStack stack) |
boolean |
AbstractHorse.isArmor(ItemStack stack) |
boolean |
EntityLlama.isArmor(ItemStack stack) |
boolean |
EntityHorse.isArmor(ItemStack stack) |
boolean |
AbstractHorse.isBreedingItem(ItemStack stack) |
boolean |
EntityOcelot.isBreedingItem(ItemStack stack) |
boolean |
EntityPig.isBreedingItem(ItemStack stack) |
boolean |
EntityChicken.isBreedingItem(ItemStack stack) |
boolean |
EntityRabbit.isBreedingItem(ItemStack stack) |
boolean |
EntityWolf.isBreedingItem(ItemStack stack) |
boolean |
EntityAnimal.isBreedingItem(ItemStack stack) |
boolean |
EntityParrot.isBreedingItem(ItemStack stack) |
static boolean |
HorseArmorType.isHorseArmor(ItemStack stack) |
boolean |
EntityMooshroom.isShearable(ItemStack item,
IBlockAccess world,
BlockPos pos) |
boolean |
EntitySheep.isShearable(ItemStack item,
IBlockAccess world,
BlockPos pos) |
java.util.List<ItemStack> |
EntityMooshroom.onSheared(ItemStack item,
IBlockAccess world,
BlockPos pos,
int fortune) |
java.util.List<ItemStack> |
EntitySheep.onSheared(ItemStack item,
IBlockAccess world,
BlockPos pos,
int fortune) |
boolean |
AbstractHorse.replaceItemInInventory(int inventorySlot,
ItemStack itemStackIn) |
boolean |
AbstractChestHorse.replaceItemInInventory(int inventorySlot,
ItemStack itemStackIn) |
boolean |
EntityVillager.replaceItemInInventory(int inventorySlot,
ItemStack itemStackIn) |
private void |
EntityLlama.setColorByItem(ItemStack stack) |
void |
EntityHorse.setHorseArmorStack(ItemStack itemStackIn) |
void |
EntityVillager.verifySellingItem(ItemStack stack) |
Constructor and Description |
---|
ListItemForEmeralds(ItemStack stack,
EntityVillager.PriceInfo priceInfo) |
Modifier and Type | Field and Description |
---|---|
private ItemStack |
InventoryPlayer.itemStack |
private ItemStack |
EntityPlayer.itemStackMainHand |
Modifier and Type | Field and Description |
---|---|
private java.util.List<NonNullList<ItemStack>> |
InventoryPlayer.allInventories |
NonNullList<ItemStack> |
InventoryPlayer.armorInventory |
NonNullList<ItemStack> |
InventoryPlayer.mainInventory |
NonNullList<ItemStack> |
InventoryPlayer.offHandInventory |
Modifier and Type | Method and Description |
---|---|
ItemStack |
InventoryPlayer.armorItemInSlot(int slotIn) |
ItemStack |
InventoryPlayer.decrStackSize(int index,
int count) |
ItemStack |
EntityPlayer.dropItemAndGetStack(EntityItem p_184816_1_) |
ItemStack |
InventoryPlayer.getCurrentItem() |
ItemStack |
InventoryPlayer.getItemStack() |
ItemStack |
EntityPlayer.getItemStackFromSlot(EntityEquipmentSlot slotIn) |
ItemStack |
InventoryPlayer.getStackInSlot(int index) |
ItemStack |
InventoryPlayer.removeStackFromSlot(int index) |
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<ItemStack> |
EntityPlayer.getArmorInventoryList() |
java.lang.Iterable<ItemStack> |
EntityPlayer.getHeldEquipment() |
Modifier and Type | Method and Description |
---|---|
boolean |
InventoryPlayer.add(int p_191971_1_,
ItemStack p_191971_2_) |
boolean |
EntityPlayer.addItemStackToInventory(ItemStack p_191521_1_) |
boolean |
InventoryPlayer.addItemStackToInventory(ItemStack itemStackIn) |
private int |
InventoryPlayer.addResource(int p_191973_1_,
ItemStack p_191973_2_) |
private boolean |
InventoryPlayer.canMergeStacks(ItemStack stack1,
ItemStack stack2) |
boolean |
EntityPlayer.canPlayerEdit(BlockPos pos,
EnumFacing facing,
ItemStack stack) |
void |
InventoryPlayer.deleteStack(ItemStack stack) |
EntityItem |
EntityPlayer.dropItem(ItemStack itemStackIn,
boolean unused) |
EntityItem |
EntityPlayer.dropItem(ItemStack droppedItem,
boolean dropAround,
boolean traceItem) |
int |
InventoryPlayer.findSlotMatchingUnusedItem(ItemStack p_194014_1_) |
int |
InventoryPlayer.getSlotFor(ItemStack stack) |
boolean |
InventoryPlayer.hasItemStack(ItemStack itemStackIn) |
boolean |
InventoryPlayer.isItemValidForSlot(int index,
ItemStack stack) |
void |
EntityPlayer.onEnchant(ItemStack enchantedItem,
int cost) |
void |
EntityPlayerMP.onEnchant(ItemStack enchantedItem,
int cost) |
void |
EntityPlayer.openBook(ItemStack stack,
EnumHand hand) |
void |
EntityPlayerMP.openBook(ItemStack stack,
EnumHand hand) |
void |
InventoryPlayer.placeItemBackInInventory(World p_191975_1_,
ItemStack p_191975_2_) |
boolean |
EntityPlayer.replaceItemInInventory(int inventorySlot,
ItemStack itemStackIn) |
void |
EntityPlayerMP.sendSlotContents(Container containerToSend,
int slotInd,
ItemStack stack) |
void |
InventoryPlayer.setInventorySlotContents(int index,
ItemStack stack) |
void |
InventoryPlayer.setItemStack(ItemStack itemStackIn) |
void |
EntityPlayer.setItemStackToSlot(EntityEquipmentSlot slotIn,
ItemStack stack) |
void |
InventoryPlayer.setPickedItemStack(ItemStack stack) |
private boolean |
InventoryPlayer.stackEqualExact(ItemStack stack1,
ItemStack stack2) |
int |
InventoryPlayer.storeItemStack(ItemStack itemStackIn) |
private int |
InventoryPlayer.storePartialItemStack(ItemStack itemStackIn) |
Modifier and Type | Method and Description |
---|---|
void |
EntityPlayerMP.sendAllContents(Container containerToSend,
NonNullList<ItemStack> itemsList) |
Modifier and Type | Field and Description |
---|---|
private static DataParameter<ItemStack> |
EntityPotion.ITEM |
Modifier and Type | Method and Description |
---|---|
protected abstract ItemStack |
EntityArrow.getArrowStack() |
protected ItemStack |
EntitySpectralArrow.getArrowStack() |
protected ItemStack |
EntityTippedArrow.getArrowStack() |
ItemStack |
EntityPotion.getPotion() |
Modifier and Type | Method and Description |
---|---|
static int |
EntityTippedArrow.getCustomColor(ItemStack p_191508_0_) |
private void |
EntityPotion.makeAreaOfEffectCloud(ItemStack p_190542_1_,
PotionType p_190542_2_) |
void |
EntityPotion.setItem(ItemStack stack) |
void |
EntityTippedArrow.setPotionEffect(ItemStack stack) |
Constructor and Description |
---|
EntityPotion(World worldIn,
double x,
double y,
double z,
ItemStack potionDamageIn) |
EntityPotion(World worldIn,
EntityLivingBase throwerIn,
ItemStack potionDamageIn) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
Bootstrap.BehaviorDispenseBoat.dispenseStack(IBlockSource source,
ItemStack stack) |
protected ItemStack |
Bootstrap.BehaviorDispenseShulkerBox.dispenseStack(IBlockSource source,
ItemStack stack) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
Bootstrap.BehaviorDispenseBoat.dispenseStack(IBlockSource source,
ItemStack stack) |
protected ItemStack |
Bootstrap.BehaviorDispenseShulkerBox.dispenseStack(IBlockSource source,
ItemStack stack) |
Modifier and Type | Field and Description |
---|---|
private NonNullList<ItemStack> |
InventoryBasic.inventoryContents |
NonNullList<ItemStack> |
Container.inventoryItemStacks |
private NonNullList<ItemStack> |
InventoryMerchant.slots |
private NonNullList<ItemStack> |
InventoryCrafting.stackList |
private NonNullList<ItemStack> |
InventoryCraftResult.stackResult |
Modifier and Type | Method and Description |
---|---|
ItemStack |
InventoryBasic.addItem(ItemStack stack) |
ItemStack |
Slot.decrStackSize(int amount) |
ItemStack |
SlotMerchantResult.decrStackSize(int amount) |
ItemStack |
SlotFurnaceOutput.decrStackSize(int amount) |
ItemStack |
SlotCrafting.decrStackSize(int amount) |
ItemStack |
InventoryCrafting.decrStackSize(int index,
int count) |
ItemStack |
IInventory.decrStackSize(int index,
int count) |
ItemStack |
InventoryBasic.decrStackSize(int index,
int count) |
ItemStack |
InventoryMerchant.decrStackSize(int index,
int count) |
ItemStack |
InventoryCraftResult.decrStackSize(int index,
int count) |
ItemStack |
InventoryLargeChest.decrStackSize(int index,
int count) |
static ItemStack |
ItemStackHelper.getAndRemove(java.util.List<ItemStack> stacks,
int index) |
static ItemStack |
ItemStackHelper.getAndSplit(java.util.List<ItemStack> stacks,
int index,
int amount) |
ItemStack |
Slot.getStack() |
ItemStack |
InventoryCrafting.getStackInRowAndColumn(int row,
int column) |
ItemStack |
InventoryCrafting.getStackInSlot(int index) |
ItemStack |
IInventory.getStackInSlot(int index) |
ItemStack |
InventoryBasic.getStackInSlot(int index) |
ItemStack |
InventoryMerchant.getStackInSlot(int index) |
ItemStack |
InventoryCraftResult.getStackInSlot(int index) |
ItemStack |
InventoryLargeChest.getStackInSlot(int index) |
ItemStack |
Slot.onTake(EntityPlayer thePlayer,
ItemStack stack) |
ItemStack |
SlotMerchantResult.onTake(EntityPlayer thePlayer,
ItemStack stack) |
ItemStack |
SlotFurnaceOutput.onTake(EntityPlayer thePlayer,
ItemStack stack) |
ItemStack |
ContainerBrewingStand.Potion.onTake(EntityPlayer thePlayer,
ItemStack stack) |
ItemStack |
SlotCrafting.onTake(EntityPlayer thePlayer,
ItemStack stack) |
ItemStack |
InventoryCrafting.removeStackFromSlot(int index) |
ItemStack |
IInventory.removeStackFromSlot(int index) |
ItemStack |
InventoryBasic.removeStackFromSlot(int index) |
ItemStack |
InventoryMerchant.removeStackFromSlot(int index) |
ItemStack |
InventoryCraftResult.removeStackFromSlot(int index) |
ItemStack |
InventoryLargeChest.removeStackFromSlot(int index) |
ItemStack |
Container.slotClick(int slotId,
int dragType,
ClickType clickTypeIn,
EntityPlayer player) |
ItemStack |
ContainerHorseInventory.transferStackInSlot(EntityPlayer playerIn,
int index) |
ItemStack |
ContainerDispenser.transferStackInSlot(EntityPlayer playerIn,
int index) |
ItemStack |
ContainerFurnace.transferStackInSlot(EntityPlayer playerIn,
int index) |
ItemStack |
Container.transferStackInSlot(EntityPlayer playerIn,
int index) |
ItemStack |
ContainerRepair.transferStackInSlot(EntityPlayer playerIn,
int index) |
ItemStack |
ContainerWorkbench.transferStackInSlot(EntityPlayer playerIn,
int index) |
ItemStack |
ContainerBrewingStand.transferStackInSlot(EntityPlayer playerIn,
int index) |
ItemStack |
ContainerEnchantment.transferStackInSlot(EntityPlayer playerIn,
int index) |
ItemStack |
ContainerChest.transferStackInSlot(EntityPlayer playerIn,
int index) |
ItemStack |
ContainerBeacon.transferStackInSlot(EntityPlayer playerIn,
int index) |
ItemStack |
ContainerPlayer.transferStackInSlot(EntityPlayer playerIn,
int index) |
ItemStack |
ContainerHopper.transferStackInSlot(EntityPlayer playerIn,
int index) |
ItemStack |
ContainerShulkerBox.transferStackInSlot(EntityPlayer playerIn,
int index) |
ItemStack |
ContainerMerchant.transferStackInSlot(EntityPlayer playerIn,
int index) |
Modifier and Type | Method and Description |
---|---|
NonNullList<ItemStack> |
Container.getInventory() |
Modifier and Type | Method and Description |
---|---|
ItemStack |
InventoryBasic.addItem(ItemStack stack) |
static boolean |
Container.canAddItemToSlot(Slot slotIn,
ItemStack stack,
boolean stackSizeMatters) |
boolean |
ISidedInventory.canExtractItem(int index,
ItemStack stack,
EnumFacing direction) |
static boolean |
ContainerBrewingStand.Potion.canHoldPotion(ItemStack stack) |
boolean |
ISidedInventory.canInsertItem(int index,
ItemStack itemStackIn,
EnumFacing direction) |
boolean |
Container.canMergeSlot(ItemStack stack,
Slot slotIn) |
boolean |
ContainerWorkbench.canMergeSlot(ItemStack stack,
Slot slotIn) |
boolean |
ContainerPlayer.canMergeSlot(ItemStack stack,
Slot slotIn) |
static void |
Container.computeStackSize(java.util.Set<Slot> dragSlotsIn,
int dragModeIn,
ItemStack stack,
int slotStackSize) |
private boolean |
SlotMerchantResult.doTrade(MerchantRecipe trade,
ItemStack firstItem,
ItemStack secondItem) |
private java.util.List<EnchantmentData> |
ContainerEnchantment.getEnchantmentList(ItemStack stack,
int enchantSlot,
int level) |
int |
Slot.getItemStackLimit(ItemStack stack) |
int |
SlotFurnaceFuel.getItemStackLimit(ItemStack stack) |
static boolean |
SlotFurnaceFuel.isBucket(ItemStack stack) |
boolean |
Slot.isItemValid(ItemStack stack) |
boolean |
SlotMerchantResult.isItemValid(ItemStack stack) |
boolean |
SlotFurnaceOutput.isItemValid(ItemStack stack) |
boolean |
ContainerBrewingStand.Fuel.isItemValid(ItemStack stack) |
boolean |
ContainerBrewingStand.Ingredient.isItemValid(ItemStack stack) |
boolean |
ContainerBrewingStand.Potion.isItemValid(ItemStack stack) |
boolean |
ContainerBeacon.BeaconSlot.isItemValid(ItemStack stack) |
boolean |
SlotFurnaceFuel.isItemValid(ItemStack stack) |
boolean |
SlotCrafting.isItemValid(ItemStack stack) |
boolean |
SlotShulkerBox.isItemValid(ItemStack stack) |
boolean |
InventoryCrafting.isItemValidForSlot(int index,
ItemStack stack) |
boolean |
IInventory.isItemValidForSlot(int index,
ItemStack stack) |
boolean |
InventoryBasic.isItemValidForSlot(int index,
ItemStack stack) |
boolean |
InventoryMerchant.isItemValidForSlot(int index,
ItemStack stack) |
boolean |
InventoryCraftResult.isItemValidForSlot(int index,
ItemStack stack) |
boolean |
InventoryLargeChest.isItemValidForSlot(int index,
ItemStack stack) |
static boolean |
ContainerBrewingStand.Fuel.isValidBrewingFuel(ItemStack itemStackIn) |
protected boolean |
Container.mergeItemStack(ItemStack stack,
int startIndex,
int endIndex,
boolean reverseDirection) |
protected void |
Slot.onCrafting(ItemStack stack) |
protected void |
SlotMerchantResult.onCrafting(ItemStack stack) |
protected void |
SlotFurnaceOutput.onCrafting(ItemStack stack) |
protected void |
SlotCrafting.onCrafting(ItemStack stack) |
protected void |
Slot.onCrafting(ItemStack stack,
int amount) |
protected void |
SlotMerchantResult.onCrafting(ItemStack stack,
int amount) |
protected void |
SlotFurnaceOutput.onCrafting(ItemStack stack,
int amount) |
protected void |
SlotCrafting.onCrafting(ItemStack stack,
int amount) |
void |
Slot.onSlotChange(ItemStack p_75220_1_,
ItemStack p_75220_2_) |
ItemStack |
Slot.onTake(EntityPlayer thePlayer,
ItemStack stack) |
ItemStack |
SlotMerchantResult.onTake(EntityPlayer thePlayer,
ItemStack stack) |
ItemStack |
SlotFurnaceOutput.onTake(EntityPlayer thePlayer,
ItemStack stack) |
ItemStack |
ContainerBrewingStand.Potion.onTake(EntityPlayer thePlayer,
ItemStack stack) |
ItemStack |
SlotCrafting.onTake(EntityPlayer thePlayer,
ItemStack stack) |
void |
Slot.putStack(ItemStack stack) |
void |
Container.putStackInSlot(int slotID,
ItemStack stack) |
void |
IContainerListener.sendSlotContents(Container containerToSend,
int slotInd,
ItemStack stack) |
void |
InventoryCrafting.setInventorySlotContents(int index,
ItemStack stack) |
void |
IInventory.setInventorySlotContents(int index,
ItemStack stack) |
void |
InventoryBasic.setInventorySlotContents(int index,
ItemStack stack) |
void |
InventoryMerchant.setInventorySlotContents(int index,
ItemStack stack) |
void |
InventoryCraftResult.setInventorySlotContents(int index,
ItemStack stack) |
void |
InventoryLargeChest.setInventorySlotContents(int index,
ItemStack stack) |
static void |
InventoryHelper.spawnItemStack(World worldIn,
double x,
double y,
double z,
ItemStack stack) |
Modifier and Type | Method and Description |
---|---|
static ItemStack |
ItemStackHelper.getAndRemove(java.util.List<ItemStack> stacks,
int index) |
static ItemStack |
ItemStackHelper.getAndSplit(java.util.List<ItemStack> stacks,
int index,
int amount) |
static void |
ItemStackHelper.loadAllItems(NBTTagCompound tag,
NonNullList<ItemStack> list) |
static NBTTagCompound |
ItemStackHelper.saveAllItems(NBTTagCompound tag,
NonNullList<ItemStack> list) |
static NBTTagCompound |
ItemStackHelper.saveAllItems(NBTTagCompound tag,
NonNullList<ItemStack> list,
boolean saveEmpty) |
void |
IContainerListener.sendAllContents(Container containerToSend,
NonNullList<ItemStack> itemsList) |
void |
Container.setAll(java.util.List<ItemStack> p_190896_1_) |
Modifier and Type | Field and Description |
---|---|
static ItemStack |
ItemStack.EMPTY |
ItemStack |
ItemArmor.ArmorMaterial.repairMaterial |
private ItemStack |
Item.ToolMaterial.repairMaterial |
Modifier and Type | Method and Description |
---|---|
ItemStack |
ItemStack.copy() |
static ItemStack |
ItemArmor.dispenseArmor(IBlockSource blockSource,
ItemStack stack) |
private ItemStack |
ItemBucket.fillBucket(ItemStack emptyBuckets,
EntityPlayer player,
Item fullBucket) |
protected ItemStack |
ItemBow.findAmmo(EntityPlayer player) |
ItemStack |
Item.getContainerItem(ItemStack itemStack)
ItemStack sensitive version of getContainerItem.
|
ItemStack |
ItemPotion.getDefaultInstance() |
ItemStack |
Item.getDefaultInstance() |
ItemStack |
ItemTippedArrow.getDefaultInstance() |
static ItemStack |
ItemEnchantedBook.getEnchantedItemStack(EnchantmentData p_92111_0_) |
ItemStack |
ItemArmor.ArmorMaterial.getRepairItemStack() |
ItemStack |
Item.ToolMaterial.getRepairItemStack() |
static ItemStack |
ItemBanner.makeBanner(EnumDyeColor p_190910_0_,
NBTTagList p_190910_1_) |
ItemStack |
ItemPotion.onItemUseFinish(ItemStack stack,
World worldIn,
EntityLivingBase entityLiving) |
ItemStack |
ItemChorusFruit.onItemUseFinish(ItemStack stack,
World worldIn,
EntityLivingBase entityLiving) |
ItemStack |
Item.onItemUseFinish(ItemStack stack,
World worldIn,
EntityLivingBase entityLiving) |
ItemStack |
ItemBucketMilk.onItemUseFinish(ItemStack stack,
World worldIn,
EntityLivingBase entityLiving) |
ItemStack |
ItemFood.onItemUseFinish(ItemStack stack,
World worldIn,
EntityLivingBase entityLiving) |
ItemStack |
ItemSoup.onItemUseFinish(ItemStack stack,
World worldIn,
EntityLivingBase entityLiving) |
ItemStack |
ItemStack.onItemUseFinish(World worldIn,
EntityLivingBase entityLiving) |
ItemStack |
ItemStack.setStackDisplayName(java.lang.String displayName) |
ItemStack |
ItemStack.setTranslatableName(java.lang.String p_190924_1_) |
static ItemStack |
ItemMap.setupNewMap(World worldIn,
double worldX,
double worldZ,
byte scale,
boolean trackingPosition,
boolean unlimitedTracking) |
ItemStack |
ItemStack.splitStack(int amount) |
protected ItemStack |
ItemGlassBottle.turnBottleIntoItem(ItemStack p_185061_1_,
EntityPlayer player,
ItemStack stack) |
Modifier and Type | Method and Description |
---|---|
static void |
ItemEnchantedBook.addEnchantment(ItemStack p_92115_0_,
EnchantmentData stack) |
void |
ItemMap.addInformation(ItemStack stack,
World worldIn,
java.util.List<java.lang.String> tooltip,
ITooltipFlag flagIn) |
void |
ItemPotion.addInformation(ItemStack stack,
World worldIn,
java.util.List<java.lang.String> tooltip,
ITooltipFlag flagIn) |
void |
ItemFireworkCharge.addInformation(ItemStack stack,
World worldIn,
java.util.List<java.lang.String> tooltip,
ITooltipFlag flagIn) |
void |
ItemBanner.addInformation(ItemStack stack,
World worldIn,
java.util.List<java.lang.String> tooltip,
ITooltipFlag flagIn) |
void |
ItemWrittenBook.addInformation(ItemStack stack,
World worldIn,
java.util.List<java.lang.String> tooltip,
ITooltipFlag flagIn) |
void |
ItemBlock.addInformation(ItemStack stack,
World worldIn,
java.util.List<java.lang.String> tooltip,
ITooltipFlag flagIn) |
void |
Item.addInformation(ItemStack stack,
World worldIn,
java.util.List<java.lang.String> tooltip,
ITooltipFlag flagIn) |
void |
ItemAir.addInformation(ItemStack stack,
World worldIn,
java.util.List<java.lang.String> tooltip,
ITooltipFlag flagIn) |
void |
ItemEnchantedBook.addInformation(ItemStack stack,
World worldIn,
java.util.List<java.lang.String> tooltip,
ITooltipFlag flagIn) |
void |
ItemTippedArrow.addInformation(ItemStack stack,
World worldIn,
java.util.List<java.lang.String> tooltip,
ITooltipFlag flagIn) |
void |
ItemRecord.addInformation(ItemStack stack,
World worldIn,
java.util.List<java.lang.String> tooltip,
ITooltipFlag flagIn) |
void |
ItemLingeringPotion.addInformation(ItemStack stack,
World worldIn,
java.util.List<java.lang.String> tooltip,
ITooltipFlag flagIn) |
void |
ItemShield.addInformation(ItemStack stack,
World worldIn,
java.util.List<java.lang.String> tooltip,
ITooltipFlag flagIn) |
void |
ItemFirework.addInformation(ItemStack stack,
World worldIn,
java.util.List<java.lang.String> tooltip,
ITooltipFlag flagIn) |
static void |
ItemBanner.appendHoverTextFromTileEntityTag(ItemStack stack,
java.util.List<java.lang.String> p_185054_1_) |
java.lang.String |
ItemMultiTexture.Mapper.apply(ItemStack var1) |
float |
IItemPropertyGetter.apply(ItemStack stack,
World worldIn,
EntityLivingBase entityIn) |
static boolean |
ItemDye.applyBonemeal(ItemStack stack,
World worldIn,
BlockPos target) |
static boolean |
ItemDye.applyBonemeal(ItemStack stack,
World worldIn,
BlockPos target,
EntityPlayer player,
EnumHand hand) |
static void |
ItemMonsterPlacer.applyEntityIdToItemStack(ItemStack stack,
ResourceLocation entityId) |
static void |
ItemMonsterPlacer.applyItemEntityDataToEntity(World entityWorld,
EntityPlayer player,
ItemStack stack,
Entity targetEntity) |
boolean |
ItemStack.areCapsCompatible(ItemStack other) |
static boolean |
ItemStack.areItemsEqual(ItemStack stackA,
ItemStack stackB) |
static boolean |
ItemStack.areItemsEqualIgnoreDurability(ItemStack stackA,
ItemStack stackB) |
static boolean |
ItemStack.areItemStacksEqual(ItemStack stackA,
ItemStack stackB) |
static boolean |
ItemStack.areItemStacksEqualUsingNBTShareTag(ItemStack stackA,
ItemStack stackB)
Modeled after ItemStack.areItemStacksEqual
Uses Item.getNBTShareTag for comparison instead of NBT and capabilities.
|
static boolean |
ItemStack.areItemStackShareTagsEqual(ItemStack stackA,
ItemStack stackB)
Modeled after ItemStack.areItemStackTagsEqual
Uses Item.getNBTShareTag for comparison instead of NBT and capabilities.
|
static boolean |
ItemStack.areItemStackTagsEqual(ItemStack stackA,
ItemStack stackB) |
static ItemFishFood.FishType |
ItemFishFood.FishType.byItemStack(ItemStack stack) |
boolean |
Item.canApplyAtEnchantingTable(ItemStack stack,
Enchantment enchantment)
Checks whether an item can be enchanted with a certain enchantment.
|
boolean |
Item.canContinueUsing(ItemStack oldStack,
ItemStack newStack)
Called while an item is in 'active' use to determine if usage should continue.
|
boolean |
Item.canDestroyBlockInCreative(World world,
BlockPos pos,
ItemStack stack,
EntityPlayer player)
Checked from
PlayerControllerMP.onPlayerDestroyBlock()
when a creative player left-clicks a block with this item. |
boolean |
Item.canDisableShield(ItemStack stack,
ItemStack shield,
EntityLivingBase entity,
EntityLivingBase attacker)
Can this Item disable a shield
|
boolean |
Item.canHarvestBlock(IBlockState state,
ItemStack stack)
ItemStack sensitive version of
Item.canHarvestBlock(IBlockState) |
boolean |
ItemSnow.canPlaceBlockOnSide(World world,
BlockPos pos,
EnumFacing side,
EntityPlayer player,
ItemStack stack) |
boolean |
ItemSlab.canPlaceBlockOnSide(World worldIn,
BlockPos pos,
EnumFacing side,
EntityPlayer player,
ItemStack stack) |
boolean |
ItemBlock.canPlaceBlockOnSide(World worldIn,
BlockPos pos,
EnumFacing side,
EntityPlayer player,
ItemStack stack) |
EntityArrow |
ItemSpectralArrow.createArrow(World worldIn,
ItemStack stack,
EntityLivingBase shooter) |
EntityArrow |
ItemTippedArrow.createArrow(World worldIn,
ItemStack stack,
EntityLivingBase shooter) |
EntityArrow |
ItemArrow.createArrow(World worldIn,
ItemStack stack,
EntityLivingBase shooter) |
Entity |
Item.createEntity(World world,
Entity location,
ItemStack itemstack)
This function should return a new entity to replace the dropped item.
|
Packet<?> |
ItemMap.createMapDataPacket(ItemStack stack,
World worldIn,
EntityPlayer player) |
Packet<?> |
ItemMapBase.createMapDataPacket(ItemStack stack,
World worldIn,
EntityPlayer player) |
static ItemStack |
ItemArmor.dispenseArmor(IBlockSource blockSource,
ItemStack stack) |
boolean |
Item.doesSneakBypassUse(ItemStack stack,
IBlockAccess world,
BlockPos pos,
EntityPlayer player)
Should this item, when held, allow sneak-clicks to pass through to the underlying block?
|
protected static void |
ItemMap.enableMapTracking(ItemStack p_185064_0_,
World p_185064_1_) |
private ItemStack |
ItemBucket.fillBucket(ItemStack emptyBuckets,
EntityPlayer player,
Item fullBucket) |
com.google.common.collect.ImmutableMap<java.lang.String,ITimeValue> |
Item.getAnimationParameters(ItemStack stack,
World world,
EntityLivingBase entity) |
ModelBiped |
Item.getArmorModel(EntityLivingBase entityLiving,
ItemStack itemStack,
EntityEquipmentSlot armorSlot,
ModelBiped _default)
Override this method to have an item handle its own armor rendering.
|
java.lang.String |
Item.getArmorTexture(ItemStack stack,
Entity entity,
EntityEquipmentSlot slot,
java.lang.String type)
Called by RenderBiped and RenderPlayer to determine the armor texture that
should be use for the currently equipped item.
|
com.google.common.collect.Multimap<java.lang.String,AttributeModifier> |
Item.getAttributeModifiers(EntityEquipmentSlot slot,
ItemStack stack)
ItemStack sensitive version of getItemAttributeModifiers
|
static EnumDyeColor |
ItemBanner.getBaseColor(ItemStack stack) |
static int |
ItemMap.getColor(ItemStack p_190907_0_) |
int |
ItemArmor.getColor(ItemStack stack) |
ItemStack |
Item.getContainerItem(ItemStack itemStack)
ItemStack sensitive version of getContainerItem.
|
java.lang.String |
Item.getCreatorModId(ItemStack itemStack)
Called to get the Mod ID of the mod that *created* the ItemStack,
instead of the real Mod ID that *registered* it.
|
int |
Item.getDamage(ItemStack stack)
Return the itemDamage represented by this ItemStack.
|
float |
Item.getDestroySpeed(ItemStack stack,
IBlockState state) |
float |
ItemTool.getDestroySpeed(ItemStack stack,
IBlockState state) |
float |
ItemAxe.getDestroySpeed(ItemStack stack,
IBlockState state) |
float |
ItemShears.getDestroySpeed(ItemStack stack,
IBlockState state) |
float |
ItemPickaxe.getDestroySpeed(ItemStack stack,
IBlockState state) |
float |
ItemSword.getDestroySpeed(ItemStack stack,
IBlockState state) |
double |
Item.getDurabilityForDisplay(ItemStack stack)
Queries the percentage of the 'Durability' bar that should be drawn.
|
static NBTTagList |
ItemEnchantedBook.getEnchantments(ItemStack p_92110_0_) |
int |
Item.getEntityLifespan(ItemStack itemStack,
World world)
Retrieves the normal 'lifespan' of this item when it is dropped on the ground as a EntityItem.
|
EntityEquipmentSlot |
Item.getEquipmentSlot(ItemStack stack)
Override this to set a non-default armor slot for an ItemStack, but
do not use this to get the armor slot of said stack; for that, use
EntityLiving.getSlotForItemStack(ItemStack) . |
static NBTBase |
ItemFireworkCharge.getExplosionTag(ItemStack stack,
java.lang.String key) |
FontRenderer |
Item.getFontRenderer(ItemStack stack)
Returns the font renderer used to render tooltips and overlays for this item.
|
IRarity |
Item.getForgeRarity(ItemStack stack) |
static int |
ItemWrittenBook.getGeneration(ItemStack book) |
int |
Item.getHarvestLevel(ItemStack stack,
java.lang.String toolClass,
EntityPlayer player,
IBlockState blockState)
Queries the harvest level of this item stack for the specified tool class,
Returns -1 if this tool is not of the specified type
|
int |
ItemTool.getHarvestLevel(ItemStack stack,
java.lang.String toolClass,
EntityPlayer player,
IBlockState blockState) |
int |
ItemFood.getHealAmount(ItemStack stack) |
int |
ItemFishFood.getHealAmount(ItemStack stack) |
java.lang.String |
Item.getHighlightTip(ItemStack item,
java.lang.String displayName)
Allow the item one last chance to modify its name used for the
tool highlight useful for adding something extra that can't be removed
by a user in the displayed name, such as a mode of operation.
|
java.lang.String |
Item.getHorseArmorTexture(EntityLiving wearer,
ItemStack stack) |
HorseArmorType |
Item.getHorseArmorType(ItemStack stack)
Returns an enum constant of type
HorseArmorType . |
boolean |
ItemArmor.getIsRepairable(ItemStack toRepair,
ItemStack repair) |
boolean |
Item.getIsRepairable(ItemStack toRepair,
ItemStack repair) |
boolean |
ItemTool.getIsRepairable(ItemStack toRepair,
ItemStack repair) |
boolean |
ItemElytra.getIsRepairable(ItemStack toRepair,
ItemStack repair) |
boolean |
ItemShield.getIsRepairable(ItemStack toRepair,
ItemStack repair) |
boolean |
ItemSword.getIsRepairable(ItemStack toRepair,
ItemStack repair) |
int |
Item.getItemBurnTime(ItemStack itemStack) |
int |
Item.getItemEnchantability(ItemStack stack)
ItemStack sensitive version of getItemEnchantability
|
java.lang.String |
ItemPotion.getItemStackDisplayName(ItemStack stack) |
java.lang.String |
ItemBanner.getItemStackDisplayName(ItemStack stack) |
java.lang.String |
ItemWrittenBook.getItemStackDisplayName(ItemStack stack) |
java.lang.String |
ItemSkull.getItemStackDisplayName(ItemStack stack) |
java.lang.String |
ItemSplashPotion.getItemStackDisplayName(ItemStack stack) |
java.lang.String |
Item.getItemStackDisplayName(ItemStack stack) |
java.lang.String |
ItemTippedArrow.getItemStackDisplayName(ItemStack stack) |
java.lang.String |
ItemLingeringPotion.getItemStackDisplayName(ItemStack stack) |
java.lang.String |
ItemShield.getItemStackDisplayName(ItemStack stack) |
java.lang.String |
ItemMonsterPlacer.getItemStackDisplayName(ItemStack stack) |
int |
Item.getItemStackLimit(ItemStack stack)
Gets the maximum number of items that this stack should be able to hold.
|
EnumAction |
ItemPotion.getItemUseAction(ItemStack stack) |
EnumAction |
Item.getItemUseAction(ItemStack stack) |
EnumAction |
ItemBucketMilk.getItemUseAction(ItemStack stack) |
EnumAction |
ItemFood.getItemUseAction(ItemStack stack) |
EnumAction |
ItemBow.getItemUseAction(ItemStack stack) |
EnumAction |
ItemShield.getItemUseAction(ItemStack stack) |
MapData |
ItemMap.getMapData(ItemStack stack,
World worldIn) |
int |
Item.getMaxDamage(ItemStack stack)
Return the maxDamage for this ItemStack.
|
int |
ItemPotion.getMaxItemUseDuration(ItemStack stack) |
int |
Item.getMaxItemUseDuration(ItemStack stack) |
int |
ItemBucketMilk.getMaxItemUseDuration(ItemStack stack) |
int |
ItemFood.getMaxItemUseDuration(ItemStack stack) |
int |
ItemBow.getMaxItemUseDuration(ItemStack stack) |
int |
ItemShield.getMaxItemUseDuration(ItemStack stack) |
int |
Item.getMetadata(ItemStack stack)
This used to be 'display damage' but its really just 'aux' data in the ItemStack, usually shares the same variable as damage.
|
static ResourceLocation |
ItemMonsterPlacer.getNamedIdFrom(ItemStack stack) |
NBTTagCompound |
Item.getNBTShareTag(ItemStack stack)
Override this method to change the NBT data being sent to the client.
|
EnumRarity |
Item.getRarity(ItemStack stack)
Deprecated.
|
EnumRarity |
ItemEnchantedBook.getRarity(ItemStack stack) |
EnumRarity |
ItemAppleGold.getRarity(ItemStack stack) |
EnumRarity |
ItemRecord.getRarity(ItemStack stack) |
int |
Item.getRGBDurabilityForDisplay(ItemStack stack)
Returns the packed int RGB value used to render the durability bar in the GUI.
|
float |
ItemFood.getSaturationModifier(ItemStack stack) |
float |
ItemFishFood.getSaturationModifier(ItemStack stack) |
float |
Item.getSmeltingExperience(ItemStack item)
Determines the base experience for a player when they remove this item from a furnace slot.
|
java.util.Set<java.lang.String> |
Item.getToolClasses(ItemStack stack) |
java.util.Set<java.lang.String> |
ItemTool.getToolClasses(ItemStack stack) |
java.lang.String |
ItemSlab.getUnlocalizedName(ItemStack stack) |
java.lang.String |
ItemMultiTexture.getUnlocalizedName(ItemStack stack) |
java.lang.String |
ItemCloth.getUnlocalizedName(ItemStack stack) |
java.lang.String |
ItemSkull.getUnlocalizedName(ItemStack stack) |
java.lang.String |
ItemLeaves.getUnlocalizedName(ItemStack stack) |
java.lang.String |
ItemBlock.getUnlocalizedName(ItemStack stack) |
java.lang.String |
Item.getUnlocalizedName(ItemStack stack) |
java.lang.String |
ItemDye.getUnlocalizedName(ItemStack stack) |
java.lang.String |
ItemAir.getUnlocalizedName(ItemStack stack) |
java.lang.String |
ItemFishFood.getUnlocalizedName(ItemStack stack) |
java.lang.String |
ItemBed.getUnlocalizedName(ItemStack stack) |
java.lang.String |
ItemColored.getUnlocalizedName(ItemStack stack) |
java.lang.String |
ItemCoal.getUnlocalizedName(ItemStack stack) |
java.lang.String |
Item.getUnlocalizedNameInefficiently(ItemStack stack) |
float |
Item.getXpRepairRatio(ItemStack stack)
Determines the amount of durability the mending enchantment
will repair, on average, per point of experience.
|
boolean |
ItemArmor.hasColor(ItemStack stack) |
boolean |
Item.hasContainerItem(ItemStack stack)
ItemStack sensitive version of hasContainerItem
|
boolean |
Item.hasCustomEntity(ItemStack stack)
Determines if this Item has a special entity for when they are in the world.
|
boolean |
ItemPotion.hasEffect(ItemStack stack) |
boolean |
ItemWrittenBook.hasEffect(ItemStack stack) |
boolean |
ItemSimpleFoiled.hasEffect(ItemStack stack) |
boolean |
ItemExpBottle.hasEffect(ItemStack stack) |
boolean |
Item.hasEffect(ItemStack stack) |
boolean |
ItemEnchantedBook.hasEffect(ItemStack stack) |
boolean |
ItemAppleGold.hasEffect(ItemStack stack) |
boolean |
ItemEndCrystal.hasEffect(ItemStack stack) |
boolean |
ItemArmor.hasOverlay(ItemStack stack)
Determines if this armor will be rendered with the secondary 'overlay' texture.
|
boolean |
Item.hitEntity(ItemStack stack,
EntityLivingBase target,
EntityLivingBase attacker) |
boolean |
ItemHoe.hitEntity(ItemStack stack,
EntityLivingBase target,
EntityLivingBase attacker) |
boolean |
ItemTool.hitEntity(ItemStack stack,
EntityLivingBase target,
EntityLivingBase attacker) |
boolean |
ItemSword.hitEntity(ItemStack stack,
EntityLivingBase target,
EntityLivingBase attacker) |
ICapabilityProvider |
Item.initCapabilities(ItemStack stack,
NBTTagCompound nbt)
Called from ItemStack.setItem, will hold extra data for the life of this ItemStack.
|
ICapabilityProvider |
ItemBucketMilk.initCapabilities(ItemStack stack,
NBTTagCompound nbt) |
ICapabilityProvider |
ItemBucket.initCapabilities(ItemStack stack,
NBTTagCompound nbt) |
protected boolean |
ItemBow.isArrow(ItemStack stack) |
boolean |
Item.isBeaconPayment(ItemStack stack)
Whether this Item can be used as a payment to activate the vanilla beacon.
|
boolean |
Item.isBookEnchantable(ItemStack stack,
ItemStack book)
Allow or forbid the specific book/item combination as an anvil enchant
|
boolean |
Item.isDamaged(ItemStack stack)
Return if this itemstack is damaged.
|
boolean |
ItemBook.isEnchantable(ItemStack stack) |
boolean |
Item.isEnchantable(ItemStack stack) |
boolean |
ItemEnchantedBook.isEnchantable(ItemStack stack) |
boolean |
ItemArrow.isInfinite(ItemStack stack,
ItemStack bow,
EntityPlayer player) |
boolean |
ItemStack.isItemEqual(ItemStack other) |
boolean |
ItemStack.isItemEqualIgnoreDurability(ItemStack stack) |
private boolean |
ItemStack.isItemStackEqual(ItemStack other) |
private boolean |
ItemStack.isItemStackEqualUsingNBTShareTag(ItemStack other)
Modeled after ItemStack.isItemStackEqual
Uses Item.getNBTShareTag for comparison instead of NBT and capabilities.
|
boolean |
Item.isShield(ItemStack stack,
EntityLivingBase entity)
Is this Item a shield
|
static boolean |
ItemElytra.isUsable(ItemStack stack) |
boolean |
Item.isValidArmor(ItemStack stack,
EntityEquipmentSlot armorType,
Entity entity)
Determines if the specific ItemStack can be placed in the specified armor slot, for the entity.
|
boolean |
Item.itemInteractionForEntity(ItemStack stack,
EntityPlayer playerIn,
EntityLivingBase target,
EnumHand hand) |
boolean |
ItemDye.itemInteractionForEntity(ItemStack stack,
EntityPlayer playerIn,
EntityLivingBase target,
EnumHand hand) |
boolean |
ItemSaddle.itemInteractionForEntity(ItemStack stack,
EntityPlayer playerIn,
EntityLivingBase target,
EnumHand hand) |
boolean |
ItemNameTag.itemInteractionForEntity(ItemStack stack,
EntityPlayer playerIn,
EntityLivingBase target,
EnumHand hand) |
boolean |
ItemShears.itemInteractionForEntity(ItemStack itemstack,
EntityPlayer player,
EntityLivingBase entity,
EnumHand hand) |
void |
Item.onArmorTick(World world,
EntityPlayer player,
ItemStack itemStack)
Called to tick armor in the armor slot.
|
boolean |
Item.onBlockDestroyed(ItemStack stack,
World worldIn,
IBlockState state,
BlockPos pos,
EntityLivingBase entityLiving) |
boolean |
ItemTool.onBlockDestroyed(ItemStack stack,
World worldIn,
IBlockState state,
BlockPos pos,
EntityLivingBase entityLiving) |
boolean |
ItemShears.onBlockDestroyed(ItemStack stack,
World worldIn,
IBlockState state,
BlockPos pos,
EntityLivingBase entityLiving) |
boolean |
ItemSword.onBlockDestroyed(ItemStack stack,
World worldIn,
IBlockState state,
BlockPos pos,
EntityLivingBase entityLiving) |
boolean |
Item.onBlockStartBreak(ItemStack itemstack,
BlockPos pos,
EntityPlayer player)
Called before a block is broken.
|
boolean |
ItemShears.onBlockStartBreak(ItemStack itemstack,
BlockPos pos,
EntityPlayer player) |
void |
ItemMap.onCreated(ItemStack stack,
World worldIn,
EntityPlayer playerIn) |
void |
Item.onCreated(ItemStack stack,
World worldIn,
EntityPlayer playerIn) |
boolean |
Item.onDroppedByPlayer(ItemStack item,
EntityPlayer player)
Called when a player drops the item into the world,
returning false from this will prevent the item from
being removed from the players inventory and spawning
in the world
|
boolean |
Item.onEntitySwing(EntityLivingBase entityLiving,
ItemStack stack)
Called when a entity tries to play the 'swing' animation.
|
protected void |
ItemFood.onFoodEaten(ItemStack stack,
World worldIn,
EntityPlayer player) |
protected void |
ItemFishFood.onFoodEaten(ItemStack stack,
World worldIn,
EntityPlayer player) |
protected void |
ItemAppleGold.onFoodEaten(ItemStack stack,
World worldIn,
EntityPlayer player) |
void |
Item.onHorseArmorTick(World world,
EntityLiving horse,
ItemStack armor)
Called every tick from
EntityHorse#onUpdate() on the item in the armor slot. |
ItemStack |
ItemPotion.onItemUseFinish(ItemStack stack,
World worldIn,
EntityLivingBase entityLiving) |
ItemStack |
ItemChorusFruit.onItemUseFinish(ItemStack stack,
World worldIn,
EntityLivingBase entityLiving) |
ItemStack |
Item.onItemUseFinish(ItemStack stack,
World worldIn,
EntityLivingBase entityLiving) |
ItemStack |
ItemBucketMilk.onItemUseFinish(ItemStack stack,
World worldIn,
EntityLivingBase entityLiving) |
ItemStack |
ItemFood.onItemUseFinish(ItemStack stack,
World worldIn,
EntityLivingBase entityLiving) |
ItemStack |
ItemSoup.onItemUseFinish(ItemStack stack,
World worldIn,
EntityLivingBase entityLiving) |
boolean |
Item.onLeftClickEntity(ItemStack stack,
EntityPlayer player,
Entity entity)
Called when the player Left Clicks (attacks) an entity.
|
void |
Item.onPlayerStoppedUsing(ItemStack stack,
World worldIn,
EntityLivingBase entityLiving,
int timeLeft) |
void |
ItemBow.onPlayerStoppedUsing(ItemStack stack,
World worldIn,
EntityLivingBase entityLiving,
int timeLeft) |
void |
ItemMap.onUpdate(ItemStack stack,
World worldIn,
Entity entityIn,
int itemSlot,
boolean isSelected) |
void |
Item.onUpdate(ItemStack stack,
World worldIn,
Entity entityIn,
int itemSlot,
boolean isSelected) |
void |
Item.onUsingTick(ItemStack stack,
EntityLivingBase player,
int count)
Called each tick while using an item.
|
boolean |
ItemBlock.placeBlockAt(ItemStack stack,
EntityPlayer player,
World world,
BlockPos pos,
EnumFacing side,
float hitX,
float hitY,
float hitZ,
IBlockState newState)
Called to actually place the block, after the location is determined
and all permission checks have been made.
|
void |
Item.readNBTShareTag(ItemStack stack,
NBTTagCompound nbt)
Override this method to decide what to do with the NBT data received from getNBTShareTag().
|
void |
ItemArmor.removeColor(ItemStack stack) |
static void |
ItemMap.renderBiomePreviewMap(World worldIn,
ItemStack map) |
void |
Item.renderHelmetOverlay(ItemStack stack,
EntityPlayer player,
ScaledResolution resolution,
float partialTicks)
Called when the client starts rendering the HUD, for whatever item the player currently has as a helmet.
|
private void |
ItemWrittenBook.resolveContents(ItemStack stack,
EntityPlayer player) |
protected static void |
ItemMap.scaleMap(ItemStack p_185063_0_,
World p_185063_1_,
int p_185063_2_) |
protected void |
ItemHoe.setBlock(ItemStack stack,
EntityPlayer player,
World worldIn,
BlockPos pos,
IBlockState state) |
void |
ItemArmor.setColor(ItemStack stack,
int color) |
void |
Item.setDamage(ItemStack stack,
int damage)
Set the damage for this itemstack.
|
ItemArmor.ArmorMaterial |
ItemArmor.ArmorMaterial.setRepairItem(ItemStack stack) |
Item.ToolMaterial |
Item.ToolMaterial.setRepairItem(ItemStack stack) |
static boolean |
ItemBlock.setTileEntityNBT(World worldIn,
EntityPlayer player,
BlockPos pos,
ItemStack stackIn) |
boolean |
Item.shouldCauseBlockBreakReset(ItemStack oldStack,
ItemStack newStack)
Called when the player is mining a block and the item in his hand changes.
|
boolean |
Item.shouldCauseReequipAnimation(ItemStack oldStack,
ItemStack newStack,
boolean slotChanged)
Determine if the player switching between these two item stacks
|
boolean |
Item.showDurabilityBar(ItemStack stack)
Determines if the durability bar should be rendered for this item.
|
private boolean |
ItemSlab.tryPlace(EntityPlayer player,
ItemStack stack,
World worldIn,
BlockPos pos,
java.lang.Object itemSlabType) |
protected ItemStack |
ItemGlassBottle.turnBottleIntoItem(ItemStack p_185061_1_,
EntityPlayer player,
ItemStack stack) |
Modifier and Type | Field and Description |
---|---|
private ItemStack[] |
Ingredient.matchingStacks |
private ItemStack[] |
Ingredient.matchingStacksExploded |
private ItemStack |
ShapedRecipes.recipeOutput |
private ItemStack |
ShapelessRecipes.recipeOutput |
private ItemStack |
RecipeFireworks.resultItem |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<ItemStack,java.lang.Float> |
FurnaceRecipes.experienceList |
private java.util.Map<ItemStack,ItemStack> |
FurnaceRecipes.smeltingList |
private java.util.Map<ItemStack,ItemStack> |
FurnaceRecipes.smeltingList |
Modifier and Type | Method and Description |
---|---|
void |
FurnaceRecipes.addSmelting(Item input,
ItemStack stack,
float experience) |
void |
FurnaceRecipes.addSmeltingRecipe(ItemStack input,
ItemStack stack,
float experience) |
void |
FurnaceRecipes.addSmeltingRecipeForBlock(Block input,
ItemStack stack,
float experience) |
boolean |
Ingredient.apply(ItemStack p_apply_1_) |
private boolean |
FurnaceRecipes.compareItemStacks(ItemStack stack1,
ItemStack stack2) |
static Ingredient |
Ingredient.fromStacks(ItemStack... stacks) |
float |
FurnaceRecipes.getSmeltingExperience(ItemStack stack) |
ItemStack |
FurnaceRecipes.getSmeltingResult(ItemStack stack) |
Constructor and Description |
---|
Ingredient(ItemStack... p_i47503_1_) |
ShapedRecipes(java.lang.String group,
int width,
int height,
NonNullList<Ingredient> ingredients,
ItemStack result) |
ShapelessRecipes(java.lang.String group,
ItemStack output,
NonNullList<Ingredient> ingredients) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
PacketBuffer.readItemStack() |
Modifier and Type | Method and Description |
---|---|
PacketBuffer |
PacketBuffer.writeItemStack(ItemStack stack) |
Modifier and Type | Field and Description |
---|---|
static DataSerializer<ItemStack> |
DataSerializers.ITEM_STACK |
Modifier and Type | Field and Description |
---|---|
private ItemStack |
CPacketClickWindow.clickedItem |
private ItemStack |
CPacketCreativeInventoryAction.stack |
Modifier and Type | Method and Description |
---|---|
ItemStack |
CPacketClickWindow.getClickedItem() |
ItemStack |
CPacketCreativeInventoryAction.getStack() |
Constructor and Description |
---|
CPacketClickWindow(int windowIdIn,
int slotIdIn,
int usedButtonIn,
ClickType modeIn,
ItemStack clickedItemIn,
short actionNumberIn) |
CPacketCreativeInventoryAction(int slotIdIn,
ItemStack stackIn) |
Modifier and Type | Field and Description |
---|---|
private ItemStack |
SPacketSetSlot.item |
private ItemStack |
SPacketEntityEquipment.itemStack |
Modifier and Type | Field and Description |
---|---|
private java.util.List<ItemStack> |
SPacketWindowItems.itemStacks |
Modifier and Type | Method and Description |
---|---|
ItemStack |
SPacketEntityEquipment.getItemStack() |
ItemStack |
SPacketSetSlot.getStack() |
Modifier and Type | Method and Description |
---|---|
java.util.List<ItemStack> |
SPacketWindowItems.getItemStacks() |
Constructor and Description |
---|
SPacketEntityEquipment(int entityIdIn,
EntityEquipmentSlot equipmentSlotIn,
ItemStack itemStackIn) |
SPacketSetSlot(int windowIdIn,
int slotIn,
ItemStack itemIn) |
Constructor and Description |
---|
SPacketWindowItems(int p_i47317_1_,
NonNullList<ItemStack> p_i47317_2_) |
Modifier and Type | Field and Description |
---|---|
private java.util.List<ItemStack> |
PotionEffect.curativeItems
List of ItemStack that can cure the potion effect
|
private static com.google.common.base.Predicate<ItemStack> |
PotionHelper.IS_POTION_ITEM |
Modifier and Type | Method and Description |
---|---|
static ItemStack |
PotionUtils.addPotionToItemStack(ItemStack itemIn,
PotionType potionIn) |
static ItemStack |
PotionUtils.appendEffects(ItemStack itemIn,
java.util.Collection<PotionEffect> effects) |
static ItemStack |
PotionHelper.doReaction(ItemStack reagent,
ItemStack potionIn) |
Modifier and Type | Method and Description |
---|---|
java.util.List<ItemStack> |
Potion.getCurativeItems()
Get a fresh list of items that can cure this Potion.
|
java.util.List<ItemStack> |
PotionEffect.getCurativeItems()
Returns a list of curative items for the potion effect
By default, this list is initialized using
Potion.getCurativeItems() |
Modifier and Type | Method and Description |
---|---|
void |
PotionEffect.addCurativeItem(ItemStack stack)
Adds the given stack to the list of curative items for this PotionEffect
|
static ItemStack |
PotionUtils.addPotionToItemStack(ItemStack itemIn,
PotionType potionIn) |
static void |
PotionUtils.addPotionTooltip(ItemStack itemIn,
java.util.List<java.lang.String> lores,
float durationFactor) |
static ItemStack |
PotionUtils.appendEffects(ItemStack itemIn,
java.util.Collection<PotionEffect> effects) |
static ItemStack |
PotionHelper.doReaction(ItemStack reagent,
ItemStack potionIn) |
static int |
PotionUtils.getColor(ItemStack p_190932_0_) |
static java.util.List<PotionEffect> |
PotionUtils.getEffectsFromStack(ItemStack stack) |
static java.util.List<PotionEffect> |
PotionUtils.getFullEffectsFromItem(ItemStack itemIn) |
static PotionType |
PotionUtils.getPotionFromItem(ItemStack itemIn) |
static boolean |
PotionHelper.hasConversions(ItemStack input,
ItemStack reagent) |
protected static boolean |
PotionHelper.hasItemConversions(ItemStack input,
ItemStack reagent) |
protected static boolean |
PotionHelper.hasTypeConversions(ItemStack input,
ItemStack reagent) |
boolean |
PotionEffect.isCurativeItem(ItemStack stack)
Checks the given ItemStack to see if it is in the list of curative items for the potion effect
|
protected static boolean |
PotionHelper.isItemConversionReagent(ItemStack stack) |
static boolean |
PotionHelper.isReagent(ItemStack stack) |
protected static boolean |
PotionHelper.isTypeConversionReagent(ItemStack stack) |
Modifier and Type | Method and Description |
---|---|
void |
PotionEffect.setCurativeItems(java.util.List<ItemStack> curativeItems)
Sets the list of curative items for this potion effect, overwriting any already present
|
Modifier and Type | Method and Description |
---|---|
void |
RealmsScreen.renderTooltip(ItemStack p_renderTooltip_1_,
int p_renderTooltip_2_,
int p_renderTooltip_3_) |
Modifier and Type | Method and Description |
---|---|
EnumActionResult |
DemoPlayerInteractionManager.processRightClick(EntityPlayer player,
World worldIn,
ItemStack stack,
EnumHand hand) |
EnumActionResult |
PlayerInteractionManager.processRightClick(EntityPlayer player,
World worldIn,
ItemStack stack,
EnumHand hand) |
EnumActionResult |
DemoPlayerInteractionManager.processRightClickBlock(EntityPlayer player,
World worldIn,
ItemStack stack,
EnumHand hand,
BlockPos pos,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
EnumActionResult |
PlayerInteractionManager.processRightClickBlock(EntityPlayer player,
World worldIn,
ItemStack stack,
EnumHand hand,
BlockPos pos,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
Modifier and Type | Field and Description |
---|---|
private ItemStack |
BannerPattern.patternItem |
private ItemStack |
TileEntityBeacon.payment |
Modifier and Type | Field and Description |
---|---|
private NonNullList<ItemStack> |
TileEntityBrewingStand.brewingItemStacks |
private NonNullList<ItemStack> |
TileEntityChest.chestContents |
private NonNullList<ItemStack> |
TileEntityFurnace.furnaceItemStacks |
private NonNullList<ItemStack> |
TileEntityHopper.inventory |
private NonNullList<ItemStack> |
TileEntityShulkerBox.items |
private NonNullList<ItemStack> |
TileEntityDispenser.stacks |
Modifier and Type | Method and Description |
---|---|
ItemStack |
TileEntityLockableLoot.decrStackSize(int index,
int count) |
ItemStack |
TileEntityFurnace.decrStackSize(int index,
int count) |
ItemStack |
TileEntityHopper.decrStackSize(int index,
int count) |
ItemStack |
TileEntityBrewingStand.decrStackSize(int index,
int count) |
ItemStack |
TileEntityBeacon.decrStackSize(int index,
int count) |
ItemStack |
TileEntityFlowerPot.getFlowerItemStack() |
ItemStack |
TileEntityBanner.getItem() |
ItemStack |
TileEntityBed.getItemStack() |
ItemStack |
BannerPattern.getPatternItem() |
ItemStack |
TileEntityLockableLoot.getStackInSlot(int index) |
ItemStack |
TileEntityFurnace.getStackInSlot(int index) |
ItemStack |
TileEntityBrewingStand.getStackInSlot(int index) |
ItemStack |
TileEntityBeacon.getStackInSlot(int index) |
private static ItemStack |
TileEntityHopper.insertStack(IInventory source,
IInventory destination,
ItemStack stack,
int index,
EnumFacing direction) |
static ItemStack |
TileEntityHopper.putStackInInventoryAllSlots(IInventory source,
IInventory destination,
ItemStack stack,
EnumFacing direction) |
ItemStack |
TileEntityLockableLoot.removeStackFromSlot(int index) |
ItemStack |
TileEntityFurnace.removeStackFromSlot(int index) |
ItemStack |
TileEntityBrewingStand.removeStackFromSlot(int index) |
ItemStack |
TileEntityBeacon.removeStackFromSlot(int index) |
Modifier and Type | Method and Description |
---|---|
protected NonNullList<ItemStack> |
TileEntityShulkerBox.getItems() |
protected abstract NonNullList<ItemStack> |
TileEntityLockableLoot.getItems() |
protected NonNullList<ItemStack> |
TileEntityChest.getItems() |
protected NonNullList<ItemStack> |
TileEntityDispenser.getItems() |
protected NonNullList<ItemStack> |
TileEntityHopper.getItems() |
Modifier and Type | Method and Description |
---|---|
int |
TileEntityDispenser.addItemStack(ItemStack stack) |
private static boolean |
TileEntityHopper.canCombine(ItemStack stack1,
ItemStack stack2) |
boolean |
TileEntityShulkerBox.canExtractItem(int index,
ItemStack stack,
EnumFacing direction) |
boolean |
TileEntityFurnace.canExtractItem(int index,
ItemStack stack,
EnumFacing direction) |
boolean |
TileEntityBrewingStand.canExtractItem(int index,
ItemStack stack,
EnumFacing direction) |
boolean |
TileEntityBeacon.canExtractItem(int index,
ItemStack stack,
EnumFacing direction) |
private static boolean |
TileEntityHopper.canExtractItemFromSlot(IInventory inventoryIn,
ItemStack stack,
int index,
EnumFacing side) |
boolean |
TileEntityShulkerBox.canInsertItem(int index,
ItemStack itemStackIn,
EnumFacing direction) |
boolean |
TileEntityFurnace.canInsertItem(int index,
ItemStack itemStackIn,
EnumFacing direction) |
boolean |
TileEntityBrewingStand.canInsertItem(int index,
ItemStack itemStackIn,
EnumFacing direction) |
boolean |
TileEntityBeacon.canInsertItem(int index,
ItemStack itemStackIn,
EnumFacing direction) |
private static boolean |
TileEntityHopper.canInsertItemInSlot(IInventory inventoryIn,
ItemStack stack,
int index,
EnumFacing side) |
static EnumDyeColor |
TileEntityBanner.getColor(ItemStack p_190616_0_) |
int |
TileEntityFurnace.getCookTime(ItemStack stack) |
static int |
TileEntityFurnace.getItemBurnTime(ItemStack stack) |
static int |
TileEntityBanner.getPatterns(ItemStack stack) |
private static ItemStack |
TileEntityHopper.insertStack(IInventory source,
IInventory destination,
ItemStack stack,
int index,
EnumFacing direction) |
static boolean |
TileEntityFurnace.isItemFuel(ItemStack stack) |
boolean |
TileEntityLockableLoot.isItemValidForSlot(int index,
ItemStack stack) |
boolean |
TileEntityFurnace.isItemValidForSlot(int index,
ItemStack stack) |
boolean |
TileEntityBrewingStand.isItemValidForSlot(int index,
ItemStack stack) |
boolean |
TileEntityBeacon.isItemValidForSlot(int index,
ItemStack stack) |
static ItemStack |
TileEntityHopper.putStackInInventoryAllSlots(IInventory source,
IInventory destination,
ItemStack stack,
EnumFacing direction) |
static void |
TileEntityBanner.removeBannerData(ItemStack stack) |
void |
TileEntityLockableLoot.setInventorySlotContents(int index,
ItemStack stack) |
void |
TileEntityFurnace.setInventorySlotContents(int index,
ItemStack stack) |
void |
TileEntityHopper.setInventorySlotContents(int index,
ItemStack stack) |
void |
TileEntityBrewingStand.setInventorySlotContents(int index,
ItemStack stack) |
void |
TileEntityBeacon.setInventorySlotContents(int index,
ItemStack stack) |
void |
TileEntityFlowerPot.setItemStack(ItemStack stack) |
void |
TileEntityBed.setItemValues(ItemStack p_193051_1_) |
void |
TileEntityBanner.setItemValues(ItemStack stack,
boolean p_175112_2_) |
Constructor and Description |
---|
BannerPattern(java.lang.String p_i47246_3_,
java.lang.String p_i47246_4_,
ItemStack p_i47246_5_) |
Modifier and Type | Field and Description |
---|---|
private ItemStack |
EntitySelectors.ArmoredMob.armor |
Modifier and Type | Method and Description |
---|---|
void |
FoodStats.addStats(ItemFood foodItem,
ItemStack stack) |
private void |
ServerRecipeBookHelper.func_194325_a(Slot p_194325_1_,
ItemStack p_194325_2_) |
Constructor and Description |
---|
ArmoredMob(ItemStack armor) |
Modifier and Type | Field and Description |
---|---|
private ItemStack |
MerchantRecipe.itemToBuy |
private ItemStack |
MerchantRecipe.itemToSell |
private ItemStack |
MerchantRecipe.secondItemToBuy |
Modifier and Type | Method and Description |
---|---|
ItemStack |
MerchantRecipe.getItemToBuy() |
ItemStack |
MerchantRecipe.getItemToSell() |
ItemStack |
MerchantRecipe.getSecondItemToBuy() |
Modifier and Type | Method and Description |
---|---|
private boolean |
MerchantRecipeList.areItemStacksExactlyEqual(ItemStack stack1,
ItemStack stack2) |
MerchantRecipe |
MerchantRecipeList.canRecipeBeUsed(ItemStack stack0,
ItemStack stack1,
int index) |
Constructor and Description |
---|
MerchantRecipe(ItemStack buy1,
Item sellItem) |
MerchantRecipe(ItemStack buy1,
ItemStack sell) |
MerchantRecipe(ItemStack buy1,
ItemStack buy2,
ItemStack sell) |
MerchantRecipe(ItemStack buy1,
ItemStack buy2,
ItemStack sell,
int toolUsesIn,
int maxTradeUsesIn) |
Modifier and Type | Method and Description |
---|---|
static void |
MapData.addTargetDecoration(ItemStack map,
BlockPos target,
java.lang.String decorationName,
MapDecoration.Type type) |
Packet<?> |
MapData.getMapPacket(ItemStack mapStack,
World worldIn,
EntityPlayer player) |
Packet<?> |
MapData.MapInfo.getPacket(ItemStack stack) |
void |
MapData.updateVisiblePlayers(EntityPlayer player,
ItemStack mapStack) |
Modifier and Type | Method and Description |
---|---|
java.util.List<ItemStack> |
LootTable.generateLootForPools(java.util.Random rand,
LootContext context) |
Modifier and Type | Method and Description |
---|---|
void |
LootEntryItem.addLoot(java.util.Collection<ItemStack> stacks,
java.util.Random rand,
LootContext context) |
void |
LootEntryEmpty.addLoot(java.util.Collection<ItemStack> stacks,
java.util.Random rand,
LootContext context) |
void |
LootEntryTable.addLoot(java.util.Collection<ItemStack> stacks,
java.util.Random rand,
LootContext context) |
abstract void |
LootEntry.addLoot(java.util.Collection<ItemStack> stacks,
java.util.Random rand,
LootContext context) |
protected void |
LootPool.createLootRoll(java.util.Collection<ItemStack> stacks,
java.util.Random rand,
LootContext context) |
void |
LootPool.generateLoot(java.util.Collection<ItemStack> stacks,
java.util.Random rand,
LootContext context) |
private void |
LootTable.shuffleItems(java.util.List<ItemStack> stacks,
int p_186463_2_,
java.util.Random rand) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
LootingEnchantBonus.apply(ItemStack stack,
java.util.Random rand,
LootContext context) |
ItemStack |
EnchantWithLevels.apply(ItemStack stack,
java.util.Random rand,
LootContext context) |
ItemStack |
SetNBT.apply(ItemStack stack,
java.util.Random rand,
LootContext context) |
ItemStack |
SetCount.apply(ItemStack stack,
java.util.Random rand,
LootContext context) |
ItemStack |
SetAttributes.apply(ItemStack stack,
java.util.Random rand,
LootContext context) |
ItemStack |
EnchantRandomly.apply(ItemStack stack,
java.util.Random rand,
LootContext context) |
ItemStack |
Smelt.apply(ItemStack stack,
java.util.Random rand,
LootContext context) |
abstract ItemStack |
LootFunction.apply(ItemStack stack,
java.util.Random rand,
LootContext context) |
ItemStack |
SetDamage.apply(ItemStack stack,
java.util.Random rand,
LootContext context) |
ItemStack |
SetMetadata.apply(ItemStack stack,
java.util.Random rand,
LootContext context) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
LootingEnchantBonus.apply(ItemStack stack,
java.util.Random rand,
LootContext context) |
ItemStack |
EnchantWithLevels.apply(ItemStack stack,
java.util.Random rand,
LootContext context) |
ItemStack |
SetNBT.apply(ItemStack stack,
java.util.Random rand,
LootContext context) |
ItemStack |
SetCount.apply(ItemStack stack,
java.util.Random rand,
LootContext context) |
ItemStack |
SetAttributes.apply(ItemStack stack,
java.util.Random rand,
LootContext context) |
ItemStack |
EnchantRandomly.apply(ItemStack stack,
java.util.Random rand,
LootContext context) |
ItemStack |
Smelt.apply(ItemStack stack,
java.util.Random rand,
LootContext context) |
abstract ItemStack |
LootFunction.apply(ItemStack stack,
java.util.Random rand,
LootContext context) |
ItemStack |
SetDamage.apply(ItemStack stack,
java.util.Random rand,
LootContext context) |
ItemStack |
SetMetadata.apply(ItemStack stack,
java.util.Random rand,
LootContext context) |
Modifier and Type | Method and Description |
---|---|
boolean |
OredictItemPredicate.test(ItemStack stack) |
Modifier and Type | Method and Description |
---|---|
int |
FluidContainerColorer.colorMultiplier(ItemStack stack,
int tintIndex) |
private static void |
ForgeHooksClient.drawSegment(RenderItem ri,
int baseColor,
ItemStack stack,
java.util.List<BakedQuad> segment,
int bl,
int sl,
boolean shade,
boolean updateLighting,
boolean updateShading) |
static ModelBiped |
ForgeHooksClient.getArmorModel(EntityLivingBase entityLiving,
ItemStack itemStack,
EntityEquipmentSlot slot,
ModelBiped _default) |
static java.lang.String |
ForgeHooksClient.getArmorTexture(Entity entity,
ItemStack armor,
java.lang.String _default,
EntityEquipmentSlot slot,
java.lang.String type) |
static java.lang.String |
ForgeHooksClient.getHorseArmorTexture(EntityHorse horse,
ItemStack armorStack) |
ModelResourceLocation |
ItemModelMesherForge.getLocation(ItemStack stack) |
static void |
ForgeHooksClient.renderLitItem(RenderItem ri,
IBakedModel model,
int color,
ItemStack stack) |
static boolean |
ForgeHooksClient.renderSpecificFirstPersonHand(EnumHand hand,
float partialTicks,
float interpPitch,
float swingProgress,
float equipProgress,
ItemStack stack) |
static boolean |
ForgeHooksClient.shouldCauseBlockBreakReset(ItemStack from,
ItemStack to) |
static boolean |
ForgeHooksClient.shouldCauseReequipAnimation(ItemStack from,
ItemStack to,
int slot) |
Modifier and Type | Field and Description |
---|---|
private ItemStack |
RenderItemInFrameEvent.item |
private ItemStack |
RenderSpecificHandEvent.stack |
protected ItemStack |
RenderTooltipEvent.stack |
private ItemStack |
RenderPlayerEvent.SetArmorModel.stack
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
ItemStack |
RenderItemInFrameEvent.getItem() |
ItemStack |
RenderSpecificHandEvent.getItemStack() |
ItemStack |
RenderTooltipEvent.getStack() |
ItemStack |
RenderPlayerEvent.SetArmorModel.getStack()
Deprecated.
|
Constructor and Description |
---|
Color(ItemStack stack,
java.util.List<java.lang.String> textLines,
int x,
int y,
FontRenderer fr,
int background,
int borderStart,
int borderEnd) |
Post(ItemStack stack,
java.util.List<java.lang.String> textLines,
int x,
int y,
FontRenderer fr,
int width,
int height) |
PostBackground(ItemStack stack,
java.util.List<java.lang.String> textLines,
int x,
int y,
FontRenderer fr,
int width,
int height) |
PostText(ItemStack stack,
java.util.List<java.lang.String> textLines,
int x,
int y,
FontRenderer fr,
int width,
int height) |
Pre(ItemStack stack,
java.util.List<java.lang.String> lines,
int x,
int y,
int screenWidth,
int screenHeight,
int maxWidth,
FontRenderer fr) |
RenderSpecificHandEvent(EnumHand hand,
float partialTicks,
float interpolatedPitch,
float swingProgress,
float equipProgress,
ItemStack stack) |
RenderTooltipEvent(ItemStack stack,
java.util.List<java.lang.String> lines,
int x,
int y,
FontRenderer fr) |
SetArmorModel(EntityPlayer player,
RenderPlayer renderer,
int slot,
float partialTick,
ItemStack stack)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
IBakedModel |
ModelDynBucket.BakedDynBucketOverrideHandler.handleItemState(IBakedModel originalModel,
ItemStack stack,
World world,
EntityLivingBase entity) |
Modifier and Type | Method and Description |
---|---|
IBakedModel |
AnimationItemOverrideList.handleItemState(IBakedModel originalModel,
ItemStack stack,
World world,
EntityLivingBase entity) |
Modifier and Type | Field and Description |
---|---|
ItemStack |
ForgeHooks.SeedEntry.seed |
Modifier and Type | Method and Description |
---|---|
static ItemStack |
ForgeHooks.getContainerItem(ItemStack stack) |
static ItemStack |
ForgeHooks.getGrassSeed(java.util.Random rand,
int fortune) |
ItemStack |
ForgeHooks.SeedEntry.getStack(java.util.Random rand,
int fortune) |
Modifier and Type | Method and Description |
---|---|
static NonNullList<ItemStack> |
ForgeHooks.defaultRecipeGetRemainingItems(InventoryCrafting inv)
Default implementation of IRecipe.func_179532_b {getRemainingItems} because
this is just copy pasted over a lot of recipes.
|
java.util.List<ItemStack> |
IShearable.onSheared(ItemStack item,
IBlockAccess world,
BlockPos pos,
int fortune)
Performs the shear function on this object.
|
Modifier and Type | Method and Description |
---|---|
static void |
MinecraftForge.addGrassSeed(ItemStack seed,
int weight)
Register a new seed to be dropped when breaking tall grass.
|
static boolean |
ForgeHooks.canContinueUsing(ItemStack from,
ItemStack to) |
static boolean |
ForgeHooks.canToolHarvestBlock(IBlockAccess world,
BlockPos pos,
ItemStack stack) |
void |
ISpecialArmor.damageArmor(EntityLivingBase entity,
ItemStack stack,
DamageSource source,
int damage,
int slot)
Applies damage to the ItemStack.
|
int |
ISpecialArmor.getArmorDisplay(EntityPlayer player,
ItemStack armor,
int slot)
Get the displayed effective armor.
|
static ItemStack |
ForgeHooks.getContainerItem(ItemStack stack) |
static java.lang.String |
ForgeHooks.getDefaultCreatorModId(ItemStack itemStack)
Used as the default implementation of
Item.getCreatorModId(net.minecraft.item.ItemStack) . |
ISpecialArmor.ArmorProperties |
ISpecialArmor.getProperties(EntityLivingBase player,
ItemStack armor,
DamageSource source,
double damage,
int slot)
Retrieves the modifiers to be used when calculating armor damage.
|
default boolean |
ISpecialArmor.handleUnblockableDamage(EntityLivingBase entity,
ItemStack armor,
DamageSource source,
double damage,
int slot)
Simple check to see if the armor should interact with "Unblockable" damage
sources.
|
boolean |
IShearable.isShearable(ItemStack item,
IBlockAccess world,
BlockPos pos)
Checks if the object is currently shearable
Example: Sheep return false when they have no wool
|
static boolean |
ForgeHooks.isToolEffective(IBlockAccess world,
BlockPos pos,
ItemStack stack) |
static boolean |
ForgeHooks.onAnvilChange(ContainerRepair container,
ItemStack left,
ItemStack right,
IInventory outputSlot,
java.lang.String name,
int baseCost) |
static float |
ForgeHooks.onAnvilRepair(EntityPlayer player,
ItemStack output,
ItemStack left,
ItemStack right) |
static EnumActionResult |
ForgeHooks.onPlaceItemIntoWorld(ItemStack itemstack,
EntityPlayer player,
World world,
BlockPos pos,
EnumFacing side,
float hitX,
float hitY,
float hitZ,
EnumHand hand) |
static EntityItem |
ForgeHooks.onPlayerTossEvent(EntityPlayer player,
ItemStack item,
boolean includeName) |
java.util.List<ItemStack> |
IShearable.onSheared(ItemStack item,
IBlockAccess world,
BlockPos pos,
int fortune)
Performs the shear function on this object.
|
Modifier and Type | Method and Description |
---|---|
static float |
ISpecialArmor.ArmorProperties.applyArmor(EntityLivingBase entity,
NonNullList<ItemStack> inventory,
DamageSource source,
double damage)
Gathers and applies armor reduction to damage being dealt to a entity.
|
Constructor and Description |
---|
SeedEntry(ItemStack seed,
int weight) |
Modifier and Type | Field and Description |
---|---|
private ItemStack |
AbstractBrewingRecipe.input |
private ItemStack |
AbstractBrewingRecipe.output |
Modifier and Type | Method and Description |
---|---|
ItemStack |
AbstractBrewingRecipe.getInput() |
ItemStack |
AbstractBrewingRecipe.getOutput() |
ItemStack |
VanillaBrewingRecipe.getOutput(ItemStack input,
ItemStack ingredient)
Code copied from TileEntityBrewingStand.brewPotions()
It brews the potion by doing the bit-shifting magic and then checking if the new PotionEffect list is different to the old one,
or if the new potion is a splash potion when the old one wasn't.
|
static ItemStack |
BrewingRecipeRegistry.getOutput(ItemStack input,
ItemStack ingredient)
Returns the output ItemStack obtained by brewing the passed input and
ingredient.
|
ItemStack |
AbstractBrewingRecipe.getOutput(ItemStack input,
ItemStack ingredient) |
ItemStack |
IBrewingRecipe.getOutput(ItemStack input,
ItemStack ingredient)
Returns the output when the passed input is brewed with the passed
ingredient.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
BrewingRecipeRegistry.addRecipe(ItemStack input,
ItemStack ingredient,
ItemStack output)
Adds a recipe to the registry.
|
static boolean |
BrewingRecipeRegistry.addRecipe(ItemStack input,
java.lang.String ingredient,
ItemStack output)
Adds a recipe to the registry.
|
static void |
BrewingRecipeRegistry.brewPotions(NonNullList<ItemStack> inputs,
ItemStack ingredient,
int[] inputIndexes)
Used by the brewing stand to brew its inventory Extra parameters exist to
allow modders to create bigger brewing stands without much hassle
|
static boolean |
BrewingRecipeRegistry.canBrew(NonNullList<ItemStack> inputs,
ItemStack ingredient,
int[] inputIndexes)
Used by the brewing stand to determine if its contents can be brewed.
|
ItemStack |
VanillaBrewingRecipe.getOutput(ItemStack input,
ItemStack ingredient)
Code copied from TileEntityBrewingStand.brewPotions()
It brews the potion by doing the bit-shifting magic and then checking if the new PotionEffect list is different to the old one,
or if the new potion is a splash potion when the old one wasn't.
|
static ItemStack |
BrewingRecipeRegistry.getOutput(ItemStack input,
ItemStack ingredient)
Returns the output ItemStack obtained by brewing the passed input and
ingredient.
|
ItemStack |
AbstractBrewingRecipe.getOutput(ItemStack input,
ItemStack ingredient) |
ItemStack |
IBrewingRecipe.getOutput(ItemStack input,
ItemStack ingredient)
Returns the output when the passed input is brewed with the passed
ingredient.
|
static boolean |
BrewingRecipeRegistry.hasOutput(ItemStack input,
ItemStack ingredient)
Returns true if the passed input and ingredient have an output
|
boolean |
VanillaBrewingRecipe.isIngredient(ItemStack stack)
Code adapted from TileEntityBrewingStand.isItemValidForSlot(int index, ItemStack stack)
|
boolean |
BrewingOreRecipe.isIngredient(ItemStack stack) |
boolean |
IBrewingRecipe.isIngredient(ItemStack ingredient)
Returns true if the passed ItemStack is an ingredient for this recipe.
|
boolean |
BrewingRecipe.isIngredient(ItemStack stack) |
boolean |
VanillaBrewingRecipe.isInput(ItemStack stack)
Code adapted from TileEntityBrewingStand.isItemValidForSlot(int index, ItemStack stack)
|
boolean |
AbstractBrewingRecipe.isInput(ItemStack stack) |
boolean |
IBrewingRecipe.isInput(ItemStack input)
Returns true is the passed ItemStack is an input for this recipe.
|
static boolean |
BrewingRecipeRegistry.isValidIngredient(ItemStack stack)
Returns true if the passed ItemStack is a valid ingredient for any of the
recipes in the registry.
|
static boolean |
BrewingRecipeRegistry.isValidInput(ItemStack stack)
Returns true if the passed ItemStack is a valid input for any of the
recipes in the registry.
|
Modifier and Type | Method and Description |
---|---|
static void |
BrewingRecipeRegistry.brewPotions(NonNullList<ItemStack> inputs,
ItemStack ingredient,
int[] inputIndexes)
Used by the brewing stand to brew its inventory Extra parameters exist to
allow modders to create bigger brewing stands without much hassle
|
static boolean |
BrewingRecipeRegistry.canBrew(NonNullList<ItemStack> inputs,
ItemStack ingredient,
int[] inputIndexes)
Used by the brewing stand to determine if its contents can be brewed.
|
Constructor and Description |
---|
AbstractBrewingRecipe(ItemStack input,
T ingredient,
ItemStack output) |
BrewingOreRecipe(ItemStack input,
java.util.List<ItemStack> ingredient,
ItemStack output) |
BrewingOreRecipe(ItemStack input,
java.lang.String ingredient,
ItemStack output) |
BrewingRecipe(ItemStack input,
ItemStack ingredient,
ItemStack output) |
Constructor and Description |
---|
BrewingOreRecipe(ItemStack input,
java.util.List<ItemStack> ingredient,
ItemStack output) |
Modifier and Type | Field and Description |
---|---|
private ItemStack |
IngredientNBT.stack |
private ItemStack[] |
CompoundIngredient.stacks |
Modifier and Type | Method and Description |
---|---|
static ItemStack |
CraftingHelper.getItemStack(com.google.gson.JsonObject json,
JsonContext context) |
static ItemStack |
CraftingHelper.getItemStackBasic(com.google.gson.JsonObject json,
JsonContext context) |
ItemStack[] |
CompoundIngredient.getMatchingStacks() |
Modifier and Type | Method and Description |
---|---|
boolean |
CompoundIngredient.apply(ItemStack target) |
boolean |
IngredientNBT.apply(ItemStack input) |
Constructor and Description |
---|
IngredientNBT(ItemStack stack) |
Modifier and Type | Method and Description |
---|---|
static void |
PacketUtil.writeItemStackFromClientToServer(PacketBuffer buffer,
ItemStack stack)
Most ItemStack serialization is Server to Client, and must go through PacketBuffer.writeItemStack which uses Item.getNBTShareTag.
|
Modifier and Type | Field and Description |
---|---|
private ItemStack |
AnvilUpdateEvent.left |
private ItemStack |
AnvilUpdateEvent.output |
private ItemStack |
AnvilUpdateEvent.right |
Modifier and Type | Method and Description |
---|---|
ItemStack |
AnvilUpdateEvent.getLeft() |
ItemStack |
AnvilUpdateEvent.getOutput() |
ItemStack |
AnvilUpdateEvent.getRight() |
static ItemStack |
ForgeEventFactory.onItemUseFinish(EntityLivingBase entity,
ItemStack item,
int duration,
ItemStack result) |
Modifier and Type | Method and Description |
---|---|
static ActionResult<ItemStack> |
ForgeEventFactory.onArrowNock(ItemStack item,
World world,
EntityPlayer player,
EnumHand hand,
boolean hasAmmo) |
static ActionResult<ItemStack> |
ForgeEventFactory.onBucketUse(EntityPlayer player,
World world,
ItemStack stack,
RayTraceResult target) |
Modifier and Type | Method and Description |
---|---|
static CapabilityDispatcher |
ForgeEventFactory.gatherCapabilities(ItemStack stack,
ICapabilityProvider parent) |
static int |
ForgeEventFactory.getItemBurnTime(ItemStack itemStack) |
static int |
ForgeEventFactory.onApplyBonemeal(EntityPlayer player,
World world,
BlockPos pos,
IBlockState state,
ItemStack stack,
EnumHand hand) |
static int |
ForgeEventFactory.onArrowLoose(ItemStack stack,
World world,
EntityPlayer player,
int charge,
boolean hasAmmo) |
static ActionResult<ItemStack> |
ForgeEventFactory.onArrowNock(ItemStack item,
World world,
EntityPlayer player,
EnumHand hand,
boolean hasAmmo) |
static ActionResult<ItemStack> |
ForgeEventFactory.onBucketUse(EntityPlayer player,
World world,
ItemStack stack,
RayTraceResult target) |
static int |
ForgeEventFactory.onEnchantmentLevelSet(World world,
BlockPos pos,
int enchantRow,
int power,
ItemStack itemStack,
int level) |
static int |
ForgeEventFactory.onHoeUse(ItemStack stack,
EntityPlayer player,
World worldIn,
BlockPos pos) |
static int |
ForgeEventFactory.onItemExpire(EntityItem entity,
ItemStack item) |
static ItemTooltipEvent |
ForgeEventFactory.onItemTooltip(ItemStack itemStack,
EntityPlayer entityPlayer,
java.util.List<java.lang.String> toolTip,
ITooltipFlag flags) |
static ItemStack |
ForgeEventFactory.onItemUseFinish(EntityLivingBase entity,
ItemStack item,
int duration,
ItemStack result) |
static int |
ForgeEventFactory.onItemUseStart(EntityLivingBase entity,
ItemStack item,
int duration) |
static int |
ForgeEventFactory.onItemUseTick(EntityLivingBase entity,
ItemStack item,
int duration) |
static void |
ForgeEventFactory.onPlayerBrewedPotion(EntityPlayer player,
ItemStack stack) |
static void |
ForgeEventFactory.onPlayerDestroyItem(EntityPlayer player,
ItemStack stack,
EnumHand hand) |
static boolean |
ForgeEventFactory.onUseItemStop(EntityLivingBase entity,
ItemStack item,
int duration) |
void |
AnvilUpdateEvent.setOutput(ItemStack output) |
Modifier and Type | Method and Description |
---|---|
static float |
ForgeEventFactory.fireBlockHarvesting(java.util.List<ItemStack> drops,
World world,
BlockPos pos,
IBlockState state,
int fortune,
float dropChance,
boolean silkTouch,
EntityPlayer player) |
static boolean |
ForgeEventFactory.onPotionAttemptBrew(NonNullList<ItemStack> stacks) |
static void |
ForgeEventFactory.onPotionBrewed(NonNullList<ItemStack> brewingItemStacks) |
Constructor and Description |
---|
AnvilUpdateEvent(ItemStack left,
ItemStack right,
java.lang.String name,
int cost) |
Modifier and Type | Field and Description |
---|---|
private ItemStack |
PlayerBrewedPotionEvent.stack |
Modifier and Type | Field and Description |
---|---|
private NonNullList<ItemStack> |
PotionBrewEvent.stacks |
Modifier and Type | Method and Description |
---|---|
ItemStack |
PotionBrewEvent.getItem(int index) |
ItemStack |
PlayerBrewedPotionEvent.getStack()
The ItemStack of the potion.
|
Modifier and Type | Method and Description |
---|---|
void |
PotionBrewEvent.setItem(int index,
ItemStack stack) |
Constructor and Description |
---|
PlayerBrewedPotionEvent(EntityPlayer player,
ItemStack stack) |
Constructor and Description |
---|
Post(NonNullList<ItemStack> stacks) |
PotionBrewEvent(NonNullList<ItemStack> stacks) |
Pre(NonNullList<ItemStack> stacks) |
Modifier and Type | Field and Description |
---|---|
private ItemStack |
EnchantmentLevelSetEvent.itemStack |
Modifier and Type | Method and Description |
---|---|
ItemStack |
EnchantmentLevelSetEvent.getItem()
Get the item being enchanted
|
Constructor and Description |
---|
EnchantmentLevelSetEvent(World world,
BlockPos pos,
int enchantRow,
int power,
ItemStack itemStack,
int level) |
Modifier and Type | Field and Description |
---|---|
private ItemStack |
LivingEquipmentChangeEvent.from |
private ItemStack |
LivingEntityUseItemEvent.item |
private ItemStack |
LivingEntityUseItemEvent.Finish.result |
private ItemStack |
LivingEquipmentChangeEvent.to |
Modifier and Type | Method and Description |
---|---|
ItemStack |
LivingEquipmentChangeEvent.getFrom() |
ItemStack |
LivingEntityUseItemEvent.getItem() |
ItemStack |
LivingEntityUseItemEvent.Finish.getResultStack() |
ItemStack |
LivingEquipmentChangeEvent.getTo() |
Modifier and Type | Method and Description |
---|---|
void |
LivingEntityUseItemEvent.Finish.setResultStack(ItemStack result) |
Constructor and Description |
---|
Finish(EntityLivingBase entity,
ItemStack item,
int duration,
ItemStack result) |
LivingEntityUseItemEvent(EntityLivingBase entity,
ItemStack item,
int duration) |
LivingEquipmentChangeEvent(EntityLivingBase entity,
EntityEquipmentSlot slot,
ItemStack from,
ItemStack to) |
Start(EntityLivingBase entity,
ItemStack item,
int duration) |
Stop(EntityLivingBase entity,
ItemStack item,
int duration) |
Tick(EntityLivingBase entity,
ItemStack item,
int duration) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
MinecartInteractEvent.getItem() |
Modifier and Type | Field and Description |
---|---|
private ItemStack |
ArrowNockEvent.bow |
private ItemStack |
ArrowLooseEvent.bow |
private ItemStack |
UseHoeEvent.current |
private ItemStack |
FillBucketEvent.current |
private ItemStack |
ItemTooltipEvent.itemStack |
private ItemStack |
AnvilRepairEvent.left |
private ItemStack |
PlayerDestroyItemEvent.original |
private ItemStack |
AnvilRepairEvent.output |
private ItemStack |
FillBucketEvent.result |
private ItemStack |
AnvilRepairEvent.right |
private ItemStack |
BonemealEvent.stack |
Modifier and Type | Field and Description |
---|---|
private ActionResult<ItemStack> |
ArrowNockEvent.action |
private NonNullList<ItemStack> |
ItemFishedEvent.stacks |
Modifier and Type | Method and Description |
---|---|
ItemStack |
ArrowNockEvent.getBow() |
ItemStack |
ArrowLooseEvent.getBow() |
ItemStack |
UseHoeEvent.getCurrent() |
ItemStack |
FillBucketEvent.getEmptyBucket() |
ItemStack |
FillBucketEvent.getFilledBucket() |
ItemStack |
AnvilRepairEvent.getIngredientInput()
Get the second item input into the anvil
|
ItemStack |
AnvilRepairEvent.getItemInput()
Get the first item input into the anvil
|
ItemStack |
AnvilRepairEvent.getItemResult()
Get the output result from the anvil
|
ItemStack |
ItemTooltipEvent.getItemStack()
The
ItemStack with the tooltip. |
ItemStack |
PlayerInteractEvent.getItemStack() |
ItemStack |
AnvilRepairEvent.getLeft()
Deprecated.
|
ItemStack |
PlayerDestroyItemEvent.getOriginal() |
ItemStack |
AnvilRepairEvent.getOutput()
Deprecated.
|
ItemStack |
AnvilRepairEvent.getRight()
Deprecated.
|
ItemStack |
BonemealEvent.getStack() |
Modifier and Type | Method and Description |
---|---|
ActionResult<ItemStack> |
ArrowNockEvent.getAction() |
NonNullList<ItemStack> |
ItemFishedEvent.getDrops()
Use this to get the items the player will receive.
|
Modifier and Type | Method and Description |
---|---|
void |
FillBucketEvent.setFilledBucket(ItemStack bucket) |
Modifier and Type | Method and Description |
---|---|
void |
ArrowNockEvent.setAction(ActionResult<ItemStack> action) |
Constructor and Description |
---|
AnvilRepairEvent(EntityPlayer player,
ItemStack left,
ItemStack right,
ItemStack output) |
ArrowLooseEvent(EntityPlayer player,
ItemStack bow,
World world,
int charge,
boolean hasAmmo) |
ArrowNockEvent(EntityPlayer player,
ItemStack item,
EnumHand hand,
World world,
boolean hasAmmo) |
BonemealEvent(EntityPlayer player,
World world,
BlockPos pos,
IBlockState block,
EnumHand hand,
ItemStack stack) |
FillBucketEvent(EntityPlayer player,
ItemStack current,
World world,
RayTraceResult target) |
ItemTooltipEvent(ItemStack itemStack,
EntityPlayer entityPlayer,
java.util.List<java.lang.String> toolTip,
ITooltipFlag flags)
This event is fired in
getTooltip(EntityPlayer, ITooltipFlag) , which in turn is called from it's respective GUIContainer. |
PlayerDestroyItemEvent(EntityPlayer player,
ItemStack original,
EnumHand hand) |
UseHoeEvent(EntityPlayer player,
ItemStack current,
World world,
BlockPos pos) |
Constructor and Description |
---|
ItemFishedEvent(java.util.List<ItemStack> stacks,
int rodDamage,
EntityFishHook hook) |
Modifier and Type | Field and Description |
---|---|
private ItemStack |
FurnaceFuelBurnTimeEvent.itemStack |
Modifier and Type | Method and Description |
---|---|
ItemStack |
FurnaceFuelBurnTimeEvent.getItemStack()
Get the ItemStack "fuel" in question.
|
Constructor and Description |
---|
FurnaceFuelBurnTimeEvent(ItemStack itemStack,
int burnTime) |
Modifier and Type | Field and Description |
---|---|
private java.util.List<ItemStack> |
BlockEvent.HarvestDropsEvent.drops |
Modifier and Type | Method and Description |
---|---|
ItemStack |
BlockEvent.PlaceEvent.getItemInHand()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<ItemStack> |
BlockEvent.HarvestDropsEvent.getDrops() |
Constructor and Description |
---|
HarvestDropsEvent(World world,
BlockPos pos,
IBlockState state,
int fortuneLevel,
float dropChance,
java.util.List<ItemStack> drops,
EntityPlayer harvester,
boolean isSilkTouching) |
Modifier and Type | Field and Description |
---|---|
private ItemStack |
UniversalBucket.empty |
ItemStack |
FluidActionResult.result |
Modifier and Type | Method and Description |
---|---|
ItemStack |
DispenseFluidContainer.dispenseStack(IBlockSource source,
ItemStack stack) |
private ItemStack |
DispenseFluidContainer.dumpContainer(IBlockSource source,
ItemStack stack)
Drains a filled container and places the fluid in front of the Dispenser.
|
private ItemStack |
DispenseFluidContainer.fillContainer(IBlockSource source,
ItemStack stack)
Picks up fluid in front of a Dispenser and fills a container with it.
|
ItemStack |
UniversalBucket.getContainerItem(ItemStack itemStack) |
ItemStack |
UniversalBucket.getEmpty() |
static ItemStack |
FluidUtil.getFilledBucket(FluidStack fluidStack) |
static ItemStack |
UniversalBucket.getFilledBucket(UniversalBucket item,
Fluid fluid)
Deprecated.
use the NBT-sensitive version
FluidUtil.getFilledBucket(FluidStack) |
ItemStack |
FluidActionResult.getResult() |
Modifier and Type | Method and Description |
---|---|
ActionResult<ItemStack> |
UniversalBucket.onItemRightClick(World world,
EntityPlayer player,
EnumHand hand) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
DispenseFluidContainer.dispenseStack(IBlockSource source,
ItemStack stack) |
private ItemStack |
DispenseFluidContainer.dumpContainer(IBlockSource source,
ItemStack stack)
Drains a filled container and places the fluid in front of the Dispenser.
|
private ItemStack |
DispenseFluidContainer.fillContainer(IBlockSource source,
ItemStack stack)
Picks up fluid in front of a Dispenser and fills a container with it.
|
ItemStack |
UniversalBucket.getContainerItem(ItemStack itemStack) |
java.lang.String |
UniversalBucket.getCreatorModId(ItemStack itemStack) |
FluidStack |
UniversalBucket.getFluid(ItemStack container) |
static FluidStack |
FluidUtil.getFluidContained(ItemStack container)
Helper method to get the fluid contained in an itemStack
|
static IFluidHandlerItem |
FluidUtil.getFluidHandler(ItemStack itemStack)
Helper method to get an
IFluidHandlerItem for an itemStack. |
java.lang.String |
UniversalBucket.getItemStackDisplayName(ItemStack stack) |
boolean |
UniversalBucket.hasContainerItem(ItemStack stack) |
ICapabilityProvider |
UniversalBucket.initCapabilities(ItemStack stack,
NBTTagCompound nbt) |
boolean |
FluidStack.isFluidEqual(ItemStack other)
Determines if the FluidIDs and NBT Tags are equal compared to a registered container
ItemStack.
|
static FluidActionResult |
FluidUtil.tryEmptyContainer(ItemStack container,
IFluidHandler fluidDestination,
int maxAmount,
EntityPlayer player,
boolean doDrain)
Takes a filled container and tries to empty it into the given tank.
|
static FluidActionResult |
FluidUtil.tryEmptyContainerAndStow(ItemStack container,
IFluidHandler fluidDestination,
IItemHandler inventory,
int maxAmount,
EntityPlayer player)
|
static FluidActionResult |
FluidUtil.tryEmptyContainerAndStow(ItemStack container,
IFluidHandler fluidDestination,
IItemHandler inventory,
int maxAmount,
EntityPlayer player,
boolean doDrain)
Takes an Fluid Container Item, tries to empty it into the fluid handler, and stows it in the given inventory.
|
static FluidActionResult |
FluidUtil.tryFillContainer(ItemStack container,
IFluidHandler fluidSource,
int maxAmount,
EntityPlayer player,
boolean doFill)
Fill a container from the given fluidSource.
|
static FluidActionResult |
FluidUtil.tryFillContainerAndStow(ItemStack container,
IFluidHandler fluidSource,
IItemHandler inventory,
int maxAmount,
EntityPlayer player)
|
static FluidActionResult |
FluidUtil.tryFillContainerAndStow(ItemStack container,
IFluidHandler fluidSource,
IItemHandler inventory,
int maxAmount,
EntityPlayer player,
boolean doFill)
Takes an Fluid Container Item and tries to fill it from the given tank.
|
static FluidActionResult |
FluidUtil.tryPickUpFluid(ItemStack emptyContainer,
EntityPlayer playerIn,
World worldIn,
BlockPos pos,
EnumFacing side)
Attempts to pick up a fluid in the world and put it in an empty container item.
|
static FluidActionResult |
FluidUtil.tryPlaceFluid(EntityPlayer player,
World world,
BlockPos pos,
ItemStack container,
FluidStack resource)
ItemStack version of
FluidUtil.tryPlaceFluid(EntityPlayer, World, BlockPos, IFluidHandler, FluidStack) . |
Modifier and Type | Method and Description |
---|---|
void |
UniversalBucket.getSubItems(CreativeTabs tab,
NonNullList<ItemStack> subItems) |
Constructor and Description |
---|
FluidActionResult(boolean success,
ItemStack result) |
FluidActionResult(ItemStack result) |
UniversalBucket(int capacity,
ItemStack empty,
boolean nbtSensitive) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
IFluidHandlerItem.getContainer()
Get the container currently acted on by this fluid handler.
|
Modifier and Type | Method and Description |
---|---|
ICapabilityProvider |
ItemFluidContainer.initCapabilities(ItemStack stack,
NBTTagCompound nbt) |
Modifier and Type | Field and Description |
---|---|
protected ItemStack |
FluidHandlerItemStack.container |
protected ItemStack |
FluidHandlerItemStackSimple.container |
protected ItemStack |
FluidHandlerItemStack.SwapEmpty.emptyContainer |
protected ItemStack |
FluidHandlerItemStackSimple.SwapEmpty.emptyContainer |
Modifier and Type | Method and Description |
---|---|
ItemStack |
FluidHandlerItemStack.getContainer() |
ItemStack |
FluidHandlerItemStackSimple.getContainer() |
Constructor and Description |
---|
Consumable(ItemStack container,
int capacity) |
Consumable(ItemStack container,
int capacity) |
FluidHandlerItemStack(ItemStack container,
int capacity) |
FluidHandlerItemStackSimple(ItemStack container,
int capacity) |
SwapEmpty(ItemStack container,
ItemStack emptyContainer,
int capacity) |
SwapEmpty(ItemStack container,
ItemStack emptyContainer,
int capacity) |
Modifier and Type | Field and Description |
---|---|
protected ItemStack |
FluidBucketWrapper.container |
Modifier and Type | Method and Description |
---|---|
ItemStack |
FluidBucketWrapper.getContainer() |
Constructor and Description |
---|
FluidBucketWrapper(ItemStack container) |
Modifier and Type | Field and Description |
---|---|
private static ItemStack |
GuiUtils.cachedTooltipStack |
Modifier and Type | Method and Description |
---|---|
static void |
GuiUtils.drawHoveringText(ItemStack stack,
java.util.List<java.lang.String> textLines,
int mouseX,
int mouseY,
int screenWidth,
int screenHeight,
int maxTextWidth,
FontRenderer font)
Use this version if calling from somewhere where ItemStack context is available.
|
static void |
GuiUtils.preItemToolTip(ItemStack stack)
Must be called from
GuiScreen.renderToolTip before GuiScreen.drawHoveringText is called. |
Modifier and Type | Method and Description |
---|---|
void |
FMLCommonHandler.firePlayerCraftingEvent(EntityPlayer player,
ItemStack crafted,
IInventory craftMatrix) |
void |
FMLCommonHandler.firePlayerItemPickupEvent(EntityPlayer player,
EntityItem item,
ItemStack clone) |
void |
FMLCommonHandler.firePlayerSmeltedEvent(EntityPlayer player,
ItemStack smelted) |
int |
IFuelHandler.getBurnTime(ItemStack fuel)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
ItemStack |
FMLInterModComms.IMCMessage.getItemStackValue()
Get the
ItemStack value from this message |
Modifier and Type | Method and Description |
---|---|
static boolean |
FMLInterModComms.sendMessage(java.lang.String modId,
java.lang.String key,
ItemStack value)
Send a startup time message
|
static void |
FMLInterModComms.sendRuntimeMessage(java.lang.Object sourceMod,
java.lang.String modId,
java.lang.String key,
ItemStack value)
Send a post-startup message
|
Modifier and Type | Field and Description |
---|---|
ItemStack |
PlayerEvent.ItemCraftedEvent.crafting |
ItemStack |
PlayerEvent.ItemSmeltedEvent.smelting |
private ItemStack |
PlayerEvent.ItemPickupEvent.stack
Clone item stack, containing the item and amount picked up
|
Modifier and Type | Method and Description |
---|---|
ItemStack |
PlayerEvent.ItemPickupEvent.getStack() |
Constructor and Description |
---|
ItemCraftedEvent(EntityPlayer player,
ItemStack crafting,
IInventory craftMatrix) |
ItemPickupEvent(EntityPlayer player,
EntityItem entPickedUp,
ItemStack stack) |
ItemSmeltedEvent(EntityPlayer player,
ItemStack crafting) |
Modifier and Type | Method and Description |
---|---|
static ItemStack |
ByteBufUtils.readItemStack(io.netty.buffer.ByteBuf from)
Read an
ItemStack from the byte buffer provided. |
Modifier and Type | Method and Description |
---|---|
static void |
ByteBufUtils.writeItemStack(io.netty.buffer.ByteBuf to,
ItemStack stack)
Write an
ItemStack using minecraft compatible encoding. |
Modifier and Type | Method and Description |
---|---|
static ItemStack |
GameRegistry.makeItemStack(java.lang.String itemName,
int meta,
int stackSize,
java.lang.String nbtString)
|
Modifier and Type | Method and Description |
---|---|
static void |
GameRegistry.addShapedRecipe(ResourceLocation name,
ResourceLocation group,
ItemStack output,
java.lang.Object... params) |
static void |
GameRegistry.addShapelessRecipe(ResourceLocation name,
ResourceLocation group,
ItemStack output,
Ingredient... params) |
static void |
GameRegistry.addSmelting(Block input,
ItemStack output,
float xp) |
static void |
GameRegistry.addSmelting(Item input,
ItemStack output,
float xp) |
static void |
GameRegistry.addSmelting(ItemStack input,
ItemStack output,
float xp) |
static int |
GameRegistry.getFuelValue(ItemStack itemStack)
Deprecated.
|
static int |
GameRegistry.getFuelValueLegacy(ItemStack itemStack)
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
protected NonNullList<ItemStack> |
ItemStackHandler.stacks |
Modifier and Type | Method and Description |
---|---|
static ItemStack |
ItemHandlerHelper.copyStackWithSize(ItemStack itemStack,
int size) |
ItemStack |
SlotItemHandler.decrStackSize(int amount) |
ItemStack |
ItemStackHandler.extractItem(int slot,
int amount,
boolean simulate) |
ItemStack |
VanillaDoubleChestItemHandler.extractItem(int slot,
int amount,
boolean simulate) |
ItemStack |
IItemHandler.extractItem(int slot,
int amount,
boolean simulate)
Extracts an ItemStack from the given slot.
|
ItemStack |
SlotItemHandler.getStack() |
ItemStack |
ItemStackHandler.getStackInSlot(int slot) |
ItemStack |
VanillaDoubleChestItemHandler.getStackInSlot(int slot) |
ItemStack |
IItemHandler.getStackInSlot(int slot)
Returns the ItemStack in a given slot.
|
static ItemStack |
ItemHandlerHelper.insertItem(IItemHandler dest,
ItemStack stack,
boolean simulate) |
ItemStack |
ItemStackHandler.insertItem(int slot,
ItemStack stack,
boolean simulate) |
ItemStack |
VanillaDoubleChestItemHandler.insertItem(int slot,
ItemStack stack,
boolean simulate) |
ItemStack |
IItemHandler.insertItem(int slot,
ItemStack stack,
boolean simulate)
Inserts an ItemStack into the given slot and return the remainder.
|
ItemStack |
VanillaHopperItemHandler.insertItem(int slot,
ItemStack stack,
boolean simulate) |
static ItemStack |
ItemHandlerHelper.insertItemStacked(IItemHandler inventory,
ItemStack stack,
boolean simulate)
Inserts the ItemStack into the inventory, filling up already present stacks first.
|
private static ItemStack |
VanillaInventoryCodeHooks.insertStack(TileEntity source,
java.lang.Object destination,
IItemHandler destInventory,
ItemStack stack,
int slot)
Copied from TileEntityHopper#insertStack and added capability support
|
private static ItemStack |
VanillaInventoryCodeHooks.putStackInInventoryAllSlots(TileEntity source,
java.lang.Object destination,
IItemHandler destInventory,
ItemStack stack) |
Modifier and Type | Method and Description |
---|---|
static boolean |
ItemHandlerHelper.canItemStacksStack(ItemStack a,
ItemStack b) |
static boolean |
ItemHandlerHelper.canItemStacksStackRelaxed(ItemStack a,
ItemStack b)
A relaxed version of canItemStacksStack that stacks itemstacks with different metadata if they don't have subtypes.
|
static ItemStack |
ItemHandlerHelper.copyStackWithSize(ItemStack itemStack,
int size) |
static boolean |
VanillaInventoryCodeHooks.dropperInsertHook(World world,
BlockPos pos,
TileEntityDispenser dropper,
int slot,
ItemStack stack)
Copied from BlockDropper#dispense and added capability support
|
int |
SlotItemHandler.getItemStackLimit(ItemStack stack) |
protected int |
ItemStackHandler.getStackLimit(int slot,
ItemStack stack) |
static void |
ItemHandlerHelper.giveItemToPlayer(EntityPlayer player,
ItemStack stack)
giveItemToPlayer without preferred slot
|
static void |
ItemHandlerHelper.giveItemToPlayer(EntityPlayer player,
ItemStack stack,
int preferredSlot)
Inserts the given itemstack into the players inventory.
|
static ItemStack |
ItemHandlerHelper.insertItem(IItemHandler dest,
ItemStack stack,
boolean simulate) |
ItemStack |
ItemStackHandler.insertItem(int slot,
ItemStack stack,
boolean simulate) |
ItemStack |
VanillaDoubleChestItemHandler.insertItem(int slot,
ItemStack stack,
boolean simulate) |
ItemStack |
IItemHandler.insertItem(int slot,
ItemStack stack,
boolean simulate)
Inserts an ItemStack into the given slot and return the remainder.
|
ItemStack |
VanillaHopperItemHandler.insertItem(int slot,
ItemStack stack,
boolean simulate) |
static ItemStack |
ItemHandlerHelper.insertItemStacked(IItemHandler inventory,
ItemStack stack,
boolean simulate)
Inserts the ItemStack into the inventory, filling up already present stacks first.
|
private static ItemStack |
VanillaInventoryCodeHooks.insertStack(TileEntity source,
java.lang.Object destination,
IItemHandler destInventory,
ItemStack stack,
int slot)
Copied from TileEntityHopper#insertStack and added capability support
|
boolean |
ItemStackHandler.isItemValid(int slot,
ItemStack stack) |
boolean |
VanillaDoubleChestItemHandler.isItemValid(int slot,
ItemStack stack) |
default boolean |
IItemHandler.isItemValid(int slot,
ItemStack stack)
This function re-implements the vanilla function
IInventory.isItemValidForSlot(int, ItemStack) . |
boolean |
SlotItemHandler.isItemValid(ItemStack stack) |
void |
SlotItemHandler.onSlotChange(ItemStack p_75220_1_,
ItemStack p_75220_2_) |
void |
SlotItemHandler.putStack(ItemStack stack) |
private static ItemStack |
VanillaInventoryCodeHooks.putStackInInventoryAllSlots(TileEntity source,
java.lang.Object destination,
IItemHandler destInventory,
ItemStack stack) |
void |
ItemStackHandler.setStackInSlot(int slot,
ItemStack stack) |
void |
VanillaDoubleChestItemHandler.setStackInSlot(int slot,
ItemStack stack) |
void |
IItemHandlerModifiable.setStackInSlot(int slot,
ItemStack stack)
Overrides the stack in the given slot.
|
Constructor and Description |
---|
ItemStackHandler(NonNullList<ItemStack> stacks) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
CombinedInvWrapper.extractItem(int slot,
int amount,
boolean simulate) |
ItemStack |
RangedWrapper.extractItem(int slot,
int amount,
boolean simulate) |
ItemStack |
SidedInvWrapper.extractItem(int slot,
int amount,
boolean simulate) |
ItemStack |
InvWrapper.extractItem(int slot,
int amount,
boolean simulate) |
ItemStack |
EntityEquipmentInvWrapper.extractItem(int slot,
int amount,
boolean simulate) |
ItemStack |
EmptyHandler.extractItem(int slot,
int amount,
boolean simulate) |
ItemStack |
CombinedInvWrapper.getStackInSlot(int slot) |
ItemStack |
RangedWrapper.getStackInSlot(int slot) |
ItemStack |
SidedInvWrapper.getStackInSlot(int slot) |
ItemStack |
InvWrapper.getStackInSlot(int slot) |
ItemStack |
EntityEquipmentInvWrapper.getStackInSlot(int slot) |
ItemStack |
EmptyHandler.getStackInSlot(int slot) |
ItemStack |
PlayerArmorInvWrapper.insertItem(int slot,
ItemStack stack,
boolean simulate) |
ItemStack |
CombinedInvWrapper.insertItem(int slot,
ItemStack stack,
boolean simulate) |
ItemStack |
RangedWrapper.insertItem(int slot,
ItemStack stack,
boolean simulate) |
ItemStack |
SidedInvWrapper.insertItem(int slot,
ItemStack stack,
boolean simulate) |
ItemStack |
InvWrapper.insertItem(int slot,
ItemStack stack,
boolean simulate) |
ItemStack |
PlayerMainInvWrapper.insertItem(int slot,
ItemStack stack,
boolean simulate) |
ItemStack |
EntityEquipmentInvWrapper.insertItem(int slot,
ItemStack stack,
boolean simulate) |
ItemStack |
EmptyHandler.insertItem(int slot,
ItemStack stack,
boolean simulate) |
Modifier and Type | Method and Description |
---|---|
protected int |
EntityEquipmentInvWrapper.getStackLimit(int slot,
ItemStack stack) |
ItemStack |
PlayerArmorInvWrapper.insertItem(int slot,
ItemStack stack,
boolean simulate) |
ItemStack |
CombinedInvWrapper.insertItem(int slot,
ItemStack stack,
boolean simulate) |
ItemStack |
RangedWrapper.insertItem(int slot,
ItemStack stack,
boolean simulate) |
ItemStack |
SidedInvWrapper.insertItem(int slot,
ItemStack stack,
boolean simulate) |
ItemStack |
InvWrapper.insertItem(int slot,
ItemStack stack,
boolean simulate) |
ItemStack |
PlayerMainInvWrapper.insertItem(int slot,
ItemStack stack,
boolean simulate) |
ItemStack |
EntityEquipmentInvWrapper.insertItem(int slot,
ItemStack stack,
boolean simulate) |
ItemStack |
EmptyHandler.insertItem(int slot,
ItemStack stack,
boolean simulate) |
boolean |
CombinedInvWrapper.isItemValid(int slot,
ItemStack stack) |
boolean |
RangedWrapper.isItemValid(int slot,
ItemStack stack) |
boolean |
SidedInvWrapper.isItemValid(int slot,
ItemStack stack) |
boolean |
InvWrapper.isItemValid(int slot,
ItemStack stack) |
boolean |
EntityEquipmentInvWrapper.isItemValid(int slot,
ItemStack stack) |
boolean |
EmptyHandler.isItemValid(int slot,
ItemStack stack) |
private void |
SidedInvWrapper.setInventorySlotContents(int slot,
ItemStack stack) |
void |
CombinedInvWrapper.setStackInSlot(int slot,
ItemStack stack) |
void |
RangedWrapper.setStackInSlot(int slot,
ItemStack stack) |
void |
SidedInvWrapper.setStackInSlot(int slot,
ItemStack stack) |
void |
InvWrapper.setStackInSlot(int slot,
ItemStack stack) |
void |
EntityEquipmentInvWrapper.setStackInSlot(int slot,
ItemStack stack) |
void |
EmptyHandler.setStackInSlot(int slot,
ItemStack stack) |
Modifier and Type | Field and Description |
---|---|
private ItemStack[] |
OreIngredient.array |
private ItemStack |
OreDictionary.OreRegisterEvent.Ore |
protected ItemStack |
ShapedOreRecipe.output |
protected ItemStack |
ShapelessOreRecipe.output |
Modifier and Type | Field and Description |
---|---|
static NonNullList<ItemStack> |
OreDictionary.EMPTY_LIST |
private static java.util.List<NonNullList<ItemStack>> |
OreDictionary.idToStack |
private static java.util.List<NonNullList<ItemStack>> |
OreDictionary.idToStackUn |
private NonNullList<ItemStack> |
OreIngredient.ores |
Modifier and Type | Method and Description |
---|---|
ItemStack |
ShapedOreRecipe.getCraftingResult(InventoryCrafting var1) |
ItemStack |
ShapelessOreRecipe.getCraftingResult(InventoryCrafting var1) |
ItemStack[] |
OreIngredient.getMatchingStacks() |
ItemStack |
OreDictionary.OreRegisterEvent.getOre() |
ItemStack |
ShapedOreRecipe.getRecipeOutput() |
ItemStack |
ShapelessOreRecipe.getRecipeOutput() |
Modifier and Type | Method and Description |
---|---|
private static NonNullList<ItemStack> |
OreDictionary.getOres(int id)
Retrieves the List of items that are registered to this ore type.
|
static NonNullList<ItemStack> |
OreDictionary.getOres(java.lang.String name)
Retrieves the ArrayList of items that are registered to this ore type.
|
static NonNullList<ItemStack> |
OreDictionary.getOres(java.lang.String name,
boolean alwaysCreateEntry)
Retrieves the List of items that are registered to this ore type at this instant.
|
Modifier and Type | Method and Description |
---|---|
boolean |
OreIngredient.apply(ItemStack input) |
static java.util.Optional<EnumDyeColor> |
DyeUtils.colorFromStack(ItemStack stack)
Get a dye's color.
|
private static boolean |
OreDictionary.containsMatch(boolean strict,
ItemStack[] inputs,
ItemStack... targets) |
private static boolean |
OreDictionary.containsMatch(boolean strict,
ItemStack[] inputs,
ItemStack... targets) |
static boolean |
OreDictionary.containsMatch(boolean strict,
NonNullList<ItemStack> inputs,
ItemStack... targets) |
static java.util.OptionalInt |
DyeUtils.dyeDamageFromStack(ItemStack stack)
Get the dye damage from the stack, which can be passed into
EnumDyeColor.byDyeDamage(int) . |
static int[] |
OreDictionary.getOreIDs(ItemStack stack)
Gets all the integer ID for the ores that the specified item stack is registered to.
|
static boolean |
DyeUtils.isDye(ItemStack stack)
Check if an item stack is a dye.
|
static boolean |
OreDictionary.itemMatches(ItemStack target,
ItemStack input,
boolean strict) |
static java.util.OptionalInt |
DyeUtils.metaFromStack(ItemStack stack)
Get the dye metadata from the stack, which can be passed into
EnumDyeColor.byMetadata(int) . |
static int |
DyeUtils.rawDyeDamageFromStack(ItemStack stack)
Similar to
DyeUtils.dyeDamageFromStack(ItemStack) , except that it returns the raw integer (with a -1 sentinel);
this follows vanilla conventions. |
static int |
DyeUtils.rawMetaFromStack(ItemStack stack)
Similar to
DyeUtils.metaFromStack(ItemStack) , except that it returns the raw integer (with a -1 sentinel);
this follows vanilla conventions. |
static void |
OreDictionary.registerOre(java.lang.String name,
ItemStack ore) |
private static void |
OreDictionary.registerOreImpl(java.lang.String name,
ItemStack ore)
Registers a ore item into the dictionary.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
OreDictionary.containsMatch(boolean strict,
NonNullList<ItemStack> inputs,
ItemStack... targets) |
Constructor and Description |
---|
OreRegisterEvent(java.lang.String name,
ItemStack ore) |
ShapedOreRecipe(ResourceLocation group,
ItemStack result,
CraftingHelper.ShapedPrimer primer) |
ShapedOreRecipe(ResourceLocation group,
ItemStack result,
java.lang.Object... recipe) |
ShapelessOreRecipe(ResourceLocation group,
ItemStack result,
java.lang.Object... recipe) |
ShapelessOreRecipe(ResourceLocation group,
NonNullList<Ingredient> input,
ItemStack result) |
Modifier and Type | Field and Description |
---|---|
private static ItemStack |
GameData.RecipeCallbacks.DummyRecipe.result |
Modifier and Type | Method and Description |
---|---|
ItemStack |
GameData.RecipeCallbacks.DummyRecipe.getCraftingResult(InventoryCrafting inv) |
ItemStack |
GameData.RecipeCallbacks.DummyRecipe.getRecipeOutput() |