public static class BlockSmartChest.ItemBlockBlockSmartChest extends net.minecraft.item.BlockItem implements IInventoryItem
| Constructor and Description |
|---|
ItemBlockBlockSmartChest(net.minecraft.block.Block block) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendHoverText(net.minecraft.item.ItemStack stack,
net.minecraft.world.World worldIn,
java.util.List<net.minecraft.util.text.ITextComponent> tooltip,
net.minecraft.client.util.ITooltipFlag flagIn) |
void |
getStacksInItem(net.minecraft.item.ItemStack stack,
java.util.List<net.minecraft.item.ItemStack> curStacks) |
java.lang.String |
getTooltipPrefix(net.minecraft.item.ItemStack stack)
A String to prepend to outputted tooltip lines.
|
canPlace, fillItemCategory, getBlock, getDescriptionId, getPlacementState, getPlaceSound, getPlaceSound, mustSurvive, place, placeBlock, registerBlocks, removeFromBlockToItemMap, updateCustomBlockEntityTag, updateCustomBlockEntityTag, updatePlacementContext, useOnallowdedIn, asItem, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, finishUsingItem, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getFoodProperties, getHarvestLevel, getId, getItemCategory, getItemStackTileEntityRenderer, getMaxDamage, getMaxStackSize, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getTags, getToolTypes, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, interactLivingEntity, inventoryTick, is, isComplex, isCorrectToolForDrops, isEdible, isEnchantable, isFireResistant, isFoil, isRepairable, isValidRepairItem, mineBlock, onCraftedBy, onUseTick, releaseUsing, shouldOverrideMultiplayerNbt, toString, use, useOnRelease, verifyTagAfterLoadgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetInventoryHeader, getStackscanApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canHarvestBlock, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getArmorModel, getArmorTexture, getAttributeModifiers, getBurnTime, getBurnTime, getContainerItem, getCreativeTabs, getCreatorModId, getDamage, getDurabilityForDisplay, getEntityLifespan, getEquipmentSlot, getFontRenderer, getHighlightTip, getItem, getItemEnchantability, getItemStackLimit, getMaxDamage, getRGBDurabilityForDisplay, getShareTag, getSmeltingExperience, getXpRepairRatio, hasContainerItem, hasCustomEntity, initCapabilities, isBookEnchantable, isDamageable, isDamaged, isEnderMask, isPiglinCurrency, isShield, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onUsingTick, readShareTag, renderHelmetOverlay, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation, showDurabilityBarpublic ItemBlockBlockSmartChest(net.minecraft.block.Block block)
public void getStacksInItem(net.minecraft.item.ItemStack stack,
java.util.List<net.minecraft.item.ItemStack> curStacks)
getStacksInItem in interface IInventoryItemstack - Item that potentially has an inventory.curStacks - List of all currently added stacks for this item. Add more stacks in here in your implementation when found the right item.public java.lang.String getTooltipPrefix(net.minecraft.item.ItemStack stack)
IInventoryItemgetTooltipPrefix in interface IInventoryItemstack - the itemstack currently being added to the tooltippublic void appendHoverText(net.minecraft.item.ItemStack stack,
@Nullable
net.minecraft.world.World worldIn,
java.util.List<net.minecraft.util.text.ITextComponent> tooltip,
net.minecraft.client.util.ITooltipFlag flagIn)
appendHoverText in class net.minecraft.item.BlockItem