public class ItemBlockNBT extends ItemBlockExtended
ItemBlockExtended that will add the NBT data that is stored inside
the item to the placed TileEntity for the block.
Subinstances of ConfigurableBlockContainer will perform the inverse operation, being
that broken blocks will save the NBT data inside the dropped ItemBlock.informationProvider, rarityProvider| Constructor and Description |
|---|
ItemBlockNBT(net.minecraft.block.Block block)
Make a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
placeBlockAt(net.minecraft.item.ItemStack stack,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.world.World world,
int x,
int y,
int z,
int side,
float hitX,
float hitY,
float hitZ,
int metadata) |
protected void |
readAdditionalInfo(net.minecraft.tileentity.TileEntity tile,
net.minecraft.item.ItemStack itemStack)
Read additional info about the item into the tile.
|
addInformation, getRaritygetIconFromDamage, getMetadatafunc_150936_a, getCreativeTab, getSpriteNumber, getSubItems, getUnlocalizedName, getUnlocalizedName, onItemUse, registerIcons, setUnlocalizedName, setUnlocalizedNamecanHarvestBlock, canItemEditBlocks, createEntity, doesContainerItemLeaveCraftingGrid, doesSneakBypassUse, func_150893_a, func_150897_b, getArmorModel, getArmorTexture, getAttributeModifiers, getChestGenBase, getColorFromItemStack, getContainerItem, getContainerItem, getCreativeTabs, getDamage, getDigSpeed, getDisplayDamage, getDurabilityForDisplay, getEntityLifespan, getFontRenderer, getHarvestLevel, getHasSubtypes, getIcon, getIcon, getIconFromDamageForRenderPass, getIconIndex, getIconString, getIdFromItem, getIsRepairable, getItemAttributeModifiers, getItemById, getItemEnchantability, getItemEnchantability, getItemFromBlock, getItemStackDisplayName, getItemStackLimit, getItemStackLimit, getItemUseAction, getMaxDamage, getMaxDamage, getMaxItemUseDuration, getMovingObjectPositionFromPlayer, getPotionEffect, getRenderPasses, getShareTag, getSmeltingExperience, getToolClasses, getUnlocalizedNameInefficiently, hasContainerItem, hasContainerItem, hasCustomEntity, hasEffect, hasEffect, hitEntity, isBeaconPayment, isBookEnchantable, isDamageable, isDamaged, isFull3D, isItemTool, isMap, isPotionIngredient, isRepairable, isValidArmor, itemInteractionForEntity, onArmorTick, onBlockDestroyed, onBlockStartBreak, onCreated, onDroppedByPlayer, onEaten, onEntityItemUpdate, onEntitySwing, onItemRightClick, onItemUseFirst, onLeftClickEntity, onPlayerStoppedUsing, onUpdate, onUsingTick, registerItems, renderHelmetOverlay, requiresMultipleRenderPasses, setContainerItem, setCreativeTab, setDamage, setFull3D, setHarvestLevel, setHasSubtypes, setMaxDamage, setMaxStackSize, setNoRepair, setPotionEffect, setTextureName, shouldRotateAroundWhenRendering, showDurabilityBarpublic ItemBlockNBT(net.minecraft.block.Block block)
block - The block instance.public boolean placeBlockAt(net.minecraft.item.ItemStack stack,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.world.World world,
int x,
int y,
int z,
int side,
float hitX,
float hitY,
float hitZ,
int metadata)
placeBlockAt in class net.minecraft.item.ItemBlockprotected void readAdditionalInfo(net.minecraft.tileentity.TileEntity tile,
net.minecraft.item.ItemStack itemStack)
tile - The tile that is being created.itemStack - The item that is placed.