public class ItemSlab extends ItemBlock
Item.ToolMaterial
Modifier and Type | Field and Description |
---|---|
private BlockSlab |
doubleSlab |
private BlockSlab |
singleSlab |
bFull3D, hasSubtypes, itemModifierUUID, itemRand, itemRegistry, maxStackSize
Constructor and Description |
---|
ItemSlab(Block block,
BlockSlab singleSlab,
BlockSlab doubleSlab) |
Modifier and Type | Method and Description |
---|---|
boolean |
canPlaceBlockOnSide(World worldIn,
BlockPos pos,
EnumFacing side,
EntityPlayer player,
ItemStack stack) |
int |
getMetadata(int damage)
Converts the given ItemStack damage value into a metadata value to be placed in the world when this Item is
placed as a Block (mostly used with ItemBlocks).
|
java.lang.String |
getUnlocalizedName(ItemStack stack)
Returns the unlocalized name of this item.
|
boolean |
onItemUse(ItemStack stack,
EntityPlayer playerIn,
World worldIn,
BlockPos pos,
EnumFacing side,
float hitX,
float hitY,
float hitZ)
Called when a Block is right-clicked with this Item
|
private boolean |
tryPlace(ItemStack stack,
World worldIn,
BlockPos pos,
java.lang.Object variantInStack) |
getBlock, getCreativeTab, getSubItems, getUnlocalizedName, setTileEntityNBT, setUnlocalizedName
addInformation, canHarvestBlock, canItemEditBlocks, getByNameOrId, getColorFromItemStack, getContainerItem, getHasSubtypes, getIdFromItem, getIsRepairable, getItemAttributeModifiers, getItemById, getItemEnchantability, getItemFromBlock, getItemStackDisplayName, getItemStackLimit, getItemUseAction, getMaxDamage, getMaxItemUseDuration, getMovingObjectPositionFromPlayer, getPotionEffect, getRarity, getShareTag, getStrVsBlock, getUnlocalizedNameInefficiently, hasContainerItem, hasEffect, hitEntity, isDamageable, isFull3D, isItemTool, isMap, isPotionIngredient, itemInteractionForEntity, onBlockDestroyed, onCreated, onItemRightClick, onItemUseFinish, onPlayerStoppedUsing, onUpdate, registerItemBlock, registerItems, setContainerItem, setCreativeTab, setFull3D, setHasSubtypes, setMaxDamage, setMaxStackSize, setPotionEffect, shouldRotateAroundWhenRendering, updateItemStackNBT
private final BlockSlab singleSlab
private final BlockSlab doubleSlab
public int getMetadata(int damage)
getMetadata
in class Item
public java.lang.String getUnlocalizedName(ItemStack stack)
getUnlocalizedName
in class ItemBlock
public boolean onItemUse(ItemStack stack, EntityPlayer playerIn, World worldIn, BlockPos pos, EnumFacing side, float hitX, float hitY, float hitZ)
public boolean canPlaceBlockOnSide(World worldIn, BlockPos pos, EnumFacing side, EntityPlayer player, ItemStack stack)
canPlaceBlockOnSide
in class ItemBlock