public abstract class BlockDefaultLeaves extends BlockAbstractLeaves
| Modifier and Type | Field and Description |
|---|---|
protected int |
blockNumber |
CHECK_DECAY_FLAG, DECAYABLE_FLAG, FOLIAGE_COLOR_INDEX, FRUIT_COLOR_INDEXBLOCK_STATE_IDS, blockHardness, blockMapColor, blockParticleGravity, blockResistance, blockSoundType, blockState, capturedDrops, captureDrops, enableStats, FULL_BLOCK_AABB, fullBlock, harvesters, hasTileEntity, lightOpacity, lightValue, material, needsRandomTick, NULL_AABB, RANDOM, REGISTRY, slipperiness, translucent, useNeighborBrightness| Constructor and Description |
|---|
BlockDefaultLeaves(int blockNumber) |
| Modifier and Type | Method and Description |
|---|---|
int |
colorMultiplier(net.minecraft.block.state.IBlockState state,
net.minecraft.world.IBlockAccess worldIn,
net.minecraft.util.math.BlockPos pos,
int tintIndex) |
static java.util.List<BlockDefaultLeaves> |
create() |
protected net.minecraft.block.state.BlockStateContainer |
createBlockState() |
int |
damageDropped(net.minecraft.block.state.IBlockState state) |
int |
getBlockNumber() |
protected void |
getLeafDrop(net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> drops,
net.minecraft.world.World world,
com.mojang.authlib.GameProfile playerProfile,
net.minecraft.util.math.BlockPos pos,
float saplingModifier,
int fortune) |
int |
getMetaFromState(net.minecraft.block.state.IBlockState state) |
net.minecraft.block.state.IBlockState |
getStateForPlacement(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing facing,
float hitX,
float hitY,
float hitZ,
int meta,
net.minecraft.entity.EntityLivingBase placer,
net.minecraft.util.EnumHand hand) |
net.minecraft.block.state.IBlockState |
getStateFromMeta(int meta) |
protected ITree |
getTree(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos) |
TreeDefinition |
getTreeDefinition(net.minecraft.block.state.IBlockState blockState) |
TreeDefinition |
getTreeType(int meta) |
protected abstract PropertyTreeType |
getVariant() |
boolean |
isOpaqueCube(net.minecraft.block.state.IBlockState state) |
void |
registerModel(net.minecraft.item.Item item,
IModelManager manager) |
getCollisionBoundingBox, getDrops, getFireSpreadSpeed, getFlammability, getPickBlock, getRenderLayer, getSubBlocks, getWoodType, isFlammable, onBlockHarvested, onEntityCollision, onSheared, shouldSideBeRendered, updateTickbeginLeavesDecay, breakBlock, causesSuffocation, dropApple, dropBlockAsItemWithChance, getItemDropped, getSaplingDropChance, isLeaves, isShearable, quantityDropped, randomDisplayTick, setGraphicsLeveladdCollisionBoxToList, addCollisionBoxToList, addDestroyEffects, addHitEffects, addInformation, addLandingEffects, addRunningEffects, canBeConnectedTo, canBeReplacedByLeaves, canCollideCheck, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canEntitySpawn, canHarvestBlock, canPlaceBlockAt, canPlaceBlockOnSide, canPlaceTorchOnTop, canProvidePower, canRenderInLayer, canSilkHarvest, canSilkHarvest, canSpawnInBlock, canSustainLeaves, canSustainPlant, captureDrops, collisionRayTrace, createTileEntity, disableStats, doesSideBlockChestOpening, doesSideBlockRendering, dropBlockAsItem, dropXpOnBlockBreak, eventReceived, fillWithRain, getActualState, getAiPathNodeType, getAiPathNodeType, getAmbientOcclusionLightValue, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlockById, getBlockFaceShape, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockLiquidHeight, getBlockState, getBoundingBox, getComparatorInputOverride, getCreativeTab, getDefaultState, getDrops, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExplosionResistance, getExtendedState, getFogColor, getHarvestLevel, getHarvestTool, getIdFromBlock, getItem, getLightOpacity, getLightOpacity, getLightValue, getLightValue, getLocalizedName, getMapColor, getMaterial, getOffset, getOffsetType, getPackedLightmapCoords, getPlayerRelativeBlockHardness, getPushReaction, getRenderType, getSelectedBoundingBox, getSilkTouchDrop, getSlipperiness, getSoundType, getSoundType, getStateAtViewpoint, getStateById, getStateForPlacement, getStateId, getStrongPower, getTickRandomly, getTranslationKey, getUseNeighborBrightness, getValidRotations, getWeakChanges, getWeakPower, harvestBlock, hasComparatorInputOverride, hasCustomBreakingProgress, hasTileEntity, hasTileEntity, isAABBInsideLiquid, isAABBInsideMaterial, isAir, isAssociatedBlock, isBeaconBase, isBed, isBedFoot, isBlockNormalCube, isBurning, isCollidable, isEntityInsideMaterial, isEqualTo, isExceptBlockForAttachWithPiston, isExceptionBlockForAttaching, isFertile, isFireSource, isFoliage, isFullBlock, isFullCube, isLadder, isNormalCube, isNormalCube, isPassable, isReplaceable, isReplaceableOreGen, isSideSolid, isStickyBlock, isToolEffective, isTopSolid, isTranslucent, isWood, modifyAcceleration, neighborChanged, observedNeighborChange, onBlockActivated, onBlockAdded, onBlockClicked, onBlockExploded, onBlockPlacedBy, onEntityWalk, onExplosionDestroy, onFallenUpon, onLanded, onNeighborChange, onPlantGrow, onPlayerDestroy, quantityDropped, quantityDroppedWithBonus, randomTick, rayTrace, recolorBlock, registerBlocks, removedByPlayer, requiresUpdates, rotateBlock, setBedOccupied, setBlockUnbreakable, setCreativeTab, setDefaultSlipperiness, setDefaultState, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setResistance, setSoundType, setTickRandomly, setTranslationKey, shouldCheckWeakPower, spawnAsEntity, tickRate, toString, withMirror, withRotationpublic static java.util.List<BlockDefaultLeaves> create()
public int getBlockNumber()
protected abstract PropertyTreeType getVariant()
@Nullable public TreeDefinition getTreeDefinition(net.minecraft.block.state.IBlockState blockState)
public int damageDropped(net.minecraft.block.state.IBlockState state)
damageDropped in class net.minecraft.block.Blockpublic net.minecraft.block.state.IBlockState getStateFromMeta(int meta)
getStateFromMeta in class BlockAbstractLeavespublic int getMetaFromState(net.minecraft.block.state.IBlockState state)
getMetaFromState in class BlockAbstractLeavesprotected net.minecraft.block.state.BlockStateContainer createBlockState()
createBlockState in class net.minecraft.block.Blockpublic TreeDefinition getTreeType(int meta)
protected void getLeafDrop(net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> drops,
net.minecraft.world.World world,
@Nullable
com.mojang.authlib.GameProfile playerProfile,
net.minecraft.util.math.BlockPos pos,
float saplingModifier,
int fortune)
getLeafDrop in class BlockAbstractLeavespublic net.minecraft.block.state.IBlockState getStateForPlacement(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing facing,
float hitX,
float hitY,
float hitZ,
int meta,
net.minecraft.entity.EntityLivingBase placer,
net.minecraft.util.EnumHand hand)
getStateForPlacement in class net.minecraft.block.Blockprotected ITree getTree(net.minecraft.world.IBlockAccess world, net.minecraft.util.math.BlockPos pos)
getTree in class BlockAbstractLeavespublic final boolean isOpaqueCube(net.minecraft.block.state.IBlockState state)
isOpaqueCube in class BlockAbstractLeavespublic void registerModel(net.minecraft.item.Item item,
IModelManager manager)
public int colorMultiplier(net.minecraft.block.state.IBlockState state,
@Nullable
net.minecraft.world.IBlockAccess worldIn,
@Nullable
net.minecraft.util.math.BlockPos pos,
int tintIndex)