public abstract class BlockLeaves extends BlockLeavesBase
Block.EnumOffsetType, Block.SoundType
Modifier and Type | Field and Description |
---|---|
static PropertyBool |
CHECK_DECAY |
static PropertyBool |
DECAYABLE |
protected int |
iconIndex |
protected boolean |
isTransparent |
(package private) int[] |
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 |
---|
BlockLeaves() |
Modifier and Type | Method and Description |
---|---|
void |
breakBlock(World worldIn,
BlockPos pos,
IBlockState state) |
int |
colorMultiplier(IBlockAccess worldIn,
BlockPos pos,
int renderPass) |
private void |
destroy(World worldIn,
BlockPos pos) |
protected void |
dropApple(World worldIn,
BlockPos pos,
IBlockState state,
int chance) |
void |
dropBlockAsItemWithChance(World worldIn,
BlockPos pos,
IBlockState state,
float chance,
int fortune)
Spawns this Block's drops into the World as EntityItems.
|
int |
getBlockColor() |
EnumWorldBlockLayer |
getBlockLayer() |
Item |
getItemDropped(IBlockState state,
java.util.Random rand,
int fortune)
Get the Item that this Block should drop when harvested.
|
int |
getRenderColor(IBlockState state) |
protected int |
getSaplingDropChance(IBlockState state) |
abstract BlockPlanks.EnumType |
getWoodType(int meta) |
boolean |
isOpaqueCube()
Used to determine ambient occlusion and culling when rebuilding chunks for render
|
boolean |
isVisuallyOpaque() |
int |
quantityDropped(java.util.Random random)
Returns the quantity of items to drop on block destruction.
|
void |
randomDisplayTick(World worldIn,
BlockPos pos,
IBlockState state,
java.util.Random rand) |
void |
setGraphicsLevel(boolean fancy)
Pass true to draw this block using fancy graphics, or false for fast graphics.
|
void |
updateTick(World worldIn,
BlockPos pos,
IBlockState state,
java.util.Random rand) |
shouldSideBeRendered
addCollisionBoxesToList, canCollideCheck, canDropFromExplosion, canPlaceBlockAt, canPlaceBlockOnSide, canProvidePower, canReplace, canSilkHarvest, collisionRayTrace, colorMultiplier, createBlockState, createStackedBlock, damageDropped, 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, getMetaFromState, getMixedBrightnessForBlock, getMobilityFlag, getOffsetType, getPlayerRelativeBlockHardness, getRenderType, getSelectedBoundingBox, getStateById, getStateForEntityRender, getStateFromMeta, getStateId, getStrongPower, getSubBlocks, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getWeakPower, harvestBlock, 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 PropertyBool DECAYABLE
public static final PropertyBool CHECK_DECAY
int[] surroundings
protected int iconIndex
protected boolean isTransparent
public int getBlockColor()
getBlockColor
in class Block
public int getRenderColor(IBlockState state)
getRenderColor
in class Block
public int colorMultiplier(IBlockAccess worldIn, BlockPos pos, int renderPass)
colorMultiplier
in class Block
public void breakBlock(World worldIn, BlockPos pos, IBlockState state)
breakBlock
in class Block
public void updateTick(World worldIn, BlockPos pos, IBlockState state, java.util.Random rand)
updateTick
in class Block
public void randomDisplayTick(World worldIn, BlockPos pos, IBlockState state, java.util.Random rand)
randomDisplayTick
in class Block
public int quantityDropped(java.util.Random random)
quantityDropped
in class Block
public Item getItemDropped(IBlockState state, java.util.Random rand, int fortune)
getItemDropped
in class Block
public void dropBlockAsItemWithChance(World worldIn, BlockPos pos, IBlockState state, float chance, int fortune)
dropBlockAsItemWithChance
in class Block
protected void dropApple(World worldIn, BlockPos pos, IBlockState state, int chance)
protected int getSaplingDropChance(IBlockState state)
public boolean isOpaqueCube()
isOpaqueCube
in class BlockLeavesBase
public void setGraphicsLevel(boolean fancy)
public EnumWorldBlockLayer getBlockLayer()
getBlockLayer
in class Block
public boolean isVisuallyOpaque()
isVisuallyOpaque
in class Block
public abstract BlockPlanks.EnumType getWoodType(int meta)