public class BlockOldLeaf extends BlockLeaves
Block.EnumOffsetType, Block.SoundType
Modifier and Type | Field and Description |
---|---|
static PropertyEnum<BlockPlanks.EnumType> |
VARIANT |
CHECK_DECAY, DECAYABLE, iconIndex, isTransparent, surroundings
fancyGraphics
BLOCK_STATE_IDS, blockHardness, blockMaterial, blockParticleGravity, blockRegistry, blockResistance, blockState, enableStats, field_181083_K, fullBlock, isBlockContainer, lightOpacity, lightValue, maxX, maxY, maxZ, minX, minY, minZ, needsRandomTick, SLIME_SOUND, slipperiness, soundTypeAnvil, soundTypeCloth, soundTypeGlass, soundTypeGrass, soundTypeGravel, soundTypeLadder, soundTypeMetal, soundTypePiston, soundTypeSand, soundTypeSnow, soundTypeStone, soundTypeWood, stepSound, translucent, useNeighborBrightness
Constructor and Description |
---|
BlockOldLeaf() |
Modifier and Type | Method and Description |
---|---|
int |
colorMultiplier(IBlockAccess worldIn,
BlockPos pos,
int renderPass) |
protected BlockState |
createBlockState() |
protected ItemStack |
createStackedBlock(IBlockState state) |
int |
damageDropped(IBlockState state)
Gets the metadata of the item this Block can drop.
|
protected void |
dropApple(World worldIn,
BlockPos pos,
IBlockState state,
int chance) |
int |
getMetaFromState(IBlockState state)
Convert the BlockState into the correct metadata value
|
int |
getRenderColor(IBlockState state) |
protected int |
getSaplingDropChance(IBlockState state) |
IBlockState |
getStateFromMeta(int meta)
Convert the given metadata into a BlockState for this Block
|
void |
getSubBlocks(Item itemIn,
CreativeTabs tab,
java.util.List<ItemStack> list)
returns a list of blocks with the same ID, but different meta (eg: wood returns 4 blocks)
|
BlockPlanks.EnumType |
getWoodType(int meta) |
void |
harvestBlock(World worldIn,
EntityPlayer player,
BlockPos pos,
IBlockState state,
TileEntity te) |
breakBlock, dropBlockAsItemWithChance, getBlockColor, getBlockLayer, getItemDropped, isOpaqueCube, isVisuallyOpaque, quantityDropped, randomDisplayTick, setGraphicsLevel, updateTick
shouldSideBeRendered
addCollisionBoxesToList, canCollideCheck, canDropFromExplosion, canPlaceBlockAt, canPlaceBlockOnSide, canProvidePower, canReplace, canSilkHarvest, collisionRayTrace, colorMultiplier, disableStats, dropBlockAsItem, dropXpOnBlockBreak, fillWithRain, func_181623_g, getActualState, getAmbientOcclusionLightValue, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockById, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockState, getCollisionBoundingBox, getComparatorInputOverride, getCreativeTabToDisplayOn, getDamageValue, getDefaultState, getEnableStats, getExplosionResistance, getIdFromBlock, getItem, getLightOpacity, getLightValue, getLocalizedName, getMapColor, getMaterial, getMixedBrightnessForBlock, getMobilityFlag, getOffsetType, getPlayerRelativeBlockHardness, getRenderType, getSelectedBoundingBox, getStateById, getStateForEntityRender, getStateId, getStrongPower, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getWeakPower, hasComparatorInputOverride, hasTileEntity, isAssociatedBlock, isBlockNormalCube, isBlockSolid, isCollidable, isEqualTo, isFlowerPot, isFullBlock, isFullCube, isNormalCube, isPassable, isReplaceable, isTranslucent, modifyAcceleration, onBlockActivated, onBlockAdded, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockEventReceived, onBlockHarvested, onBlockPlaced, onBlockPlacedBy, onEntityCollidedWithBlock, onEntityCollidedWithBlock, onFallenUpon, onLanded, onNeighborBlockChange, quantityDroppedWithBonus, randomTick, registerBlocks, requiresUpdates, setBlockBounds, setBlockBoundsBasedOnState, setBlockBoundsForItemRender, setBlockUnbreakable, setCreativeTab, setDefaultState, setHardness, setLightLevel, setLightOpacity, setResistance, setStepSound, setTickRandomly, setUnlocalizedName, spawnAsEntity, tickRate, toString
public static final PropertyEnum<BlockPlanks.EnumType> VARIANT
public int getRenderColor(IBlockState state)
getRenderColor
in class BlockLeaves
public int colorMultiplier(IBlockAccess worldIn, BlockPos pos, int renderPass)
colorMultiplier
in class BlockLeaves
protected void dropApple(World worldIn, BlockPos pos, IBlockState state, int chance)
dropApple
in class BlockLeaves
protected int getSaplingDropChance(IBlockState state)
getSaplingDropChance
in class BlockLeaves
public void getSubBlocks(Item itemIn, CreativeTabs tab, java.util.List<ItemStack> list)
getSubBlocks
in class Block
protected ItemStack createStackedBlock(IBlockState state)
createStackedBlock
in class Block
public IBlockState getStateFromMeta(int meta)
getStateFromMeta
in class Block
public int getMetaFromState(IBlockState state)
getMetaFromState
in class Block
public BlockPlanks.EnumType getWoodType(int meta)
getWoodType
in class BlockLeaves
protected BlockState createBlockState()
createBlockState
in class Block
public int damageDropped(IBlockState state)
damageDropped
in class Block
public void harvestBlock(World worldIn, EntityPlayer player, BlockPos pos, IBlockState state, TileEntity te)
harvestBlock
in class Block