public abstract class BlockAbstractLeaves extends net.minecraft.block.BlockLeaves implements IItemModelRegister, IColoredBlock
BlockDefaultLeaves and BlockForestryLeaves| Modifier and Type | Field and Description |
|---|---|
static int |
CHECK_DECAY_FLAG |
static int |
DECAYABLE_FLAG |
static int |
FOLIAGE_COLOR_INDEX |
static int |
FRUIT_COLOR_INDEX |
BLOCK_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 |
|---|
BlockAbstractLeaves() |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.util.math.AxisAlignedBB |
getCollisionBoundingBox(net.minecraft.block.state.IBlockState blockState,
net.minecraft.world.IBlockAccess worldIn,
net.minecraft.util.math.BlockPos pos) |
void |
getDrops(net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> drops,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
int fortune) |
int |
getFireSpreadSpeed(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing face) |
int |
getFlammability(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing face) |
protected abstract 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) |
abstract int |
getMetaFromState(net.minecraft.block.state.IBlockState state) |
net.minecraft.item.ItemStack |
getPickBlock(net.minecraft.block.state.IBlockState state,
net.minecraft.util.math.RayTraceResult target,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.EntityPlayer player) |
net.minecraft.util.BlockRenderLayer |
getRenderLayer() |
abstract net.minecraft.block.state.IBlockState |
getStateFromMeta(int meta) |
void |
getSubBlocks(net.minecraft.creativetab.CreativeTabs tab,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> list) |
protected abstract ITree |
getTree(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos) |
net.minecraft.block.BlockPlanks.EnumType |
getWoodType(int meta)
unused, just here to satisfy BlockLeaves
|
boolean |
isFlammable(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing face) |
boolean |
isOpaqueCube(net.minecraft.block.state.IBlockState state) |
void |
onBlockHarvested(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.entity.player.EntityPlayer player)
IToolGrafter's drop bonus handling is done here. |
void |
onEntityCollision(net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.entity.Entity entityIn)
Used for walking through willow leaves.
|
java.util.List<net.minecraft.item.ItemStack> |
onSheared(net.minecraft.item.ItemStack item,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
int fortune) |
boolean |
shouldSideBeRendered(net.minecraft.block.state.IBlockState blockState,
net.minecraft.world.IBlockAccess blockAccess,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing side) |
void |
updateTick(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
java.util.Random rand) |
beginLeavesDecay, 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, createBlockState, createTileEntity, damageDropped, 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, 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, withRotationgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitregisterModelcolorMultiplierpublic static final int FOLIAGE_COLOR_INDEX
public static final int FRUIT_COLOR_INDEX
public static final int DECAYABLE_FLAG
public static final int CHECK_DECAY_FLAG
@Nullable protected abstract ITree getTree(net.minecraft.world.IBlockAccess world, net.minecraft.util.math.BlockPos pos)
public void updateTick(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
java.util.Random rand)
updateTick in class net.minecraft.block.BlockLeavespublic abstract int getMetaFromState(net.minecraft.block.state.IBlockState state)
getMetaFromState in class net.minecraft.block.Blockpublic abstract net.minecraft.block.state.IBlockState getStateFromMeta(int meta)
getStateFromMeta in class net.minecraft.block.Blockpublic final void getSubBlocks(net.minecraft.creativetab.CreativeTabs tab,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> list)
getSubBlocks in class net.minecraft.block.Blockpublic final net.minecraft.item.ItemStack getPickBlock(net.minecraft.block.state.IBlockState state,
net.minecraft.util.math.RayTraceResult target,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.EntityPlayer player)
getPickBlock in class net.minecraft.block.Blockpublic final java.util.List<net.minecraft.item.ItemStack> onSheared(net.minecraft.item.ItemStack item,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
int fortune)
onSheared in interface net.minecraftforge.common.IShearable@Nullable
public final net.minecraft.util.math.AxisAlignedBB getCollisionBoundingBox(net.minecraft.block.state.IBlockState blockState,
net.minecraft.world.IBlockAccess worldIn,
net.minecraft.util.math.BlockPos pos)
getCollisionBoundingBox in class net.minecraft.block.Blockpublic final void onEntityCollision(net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.entity.Entity entityIn)
onEntityCollision in class net.minecraft.block.Blockpublic boolean isOpaqueCube(net.minecraft.block.state.IBlockState state)
isOpaqueCube in class net.minecraft.block.BlockLeavespublic final boolean shouldSideBeRendered(net.minecraft.block.state.IBlockState blockState,
net.minecraft.world.IBlockAccess blockAccess,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing side)
shouldSideBeRendered in class net.minecraft.block.BlockLeavespublic final net.minecraft.util.BlockRenderLayer getRenderLayer()
getRenderLayer in class net.minecraft.block.BlockLeavespublic final net.minecraft.block.BlockPlanks.EnumType getWoodType(int meta)
getWoodType in class net.minecraft.block.BlockLeavespublic final int getFlammability(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing face)
getFlammability in class net.minecraft.block.Blockpublic final boolean isFlammable(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing face)
isFlammable in class net.minecraft.block.Blockpublic final int getFireSpreadSpeed(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing face)
getFireSpreadSpeed in class net.minecraft.block.Blockpublic final void onBlockHarvested(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.entity.player.EntityPlayer player)
IToolGrafter's drop bonus handling is done here.onBlockHarvested in class net.minecraft.block.Blockpublic void getDrops(net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> drops,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
int fortune)
getDrops in class net.minecraft.block.BlockLeavesprotected abstract 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)