public abstract class BlockDefaultLeavesFruit 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 |
|---|
BlockDefaultLeavesFruit(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<BlockDefaultLeavesFruit> |
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) |
PropertyTreeTypeFruit.LeafVariant |
getLeafVariant(net.minecraft.block.state.IBlockState blockState) |
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) |
PropertyTreeTypeFruit.LeafVariant |
getTreeType(int meta) |
protected abstract PropertyTreeTypeFruit |
getVariant() |
boolean |
isOpaqueCube(net.minecraft.block.state.IBlockState state) |
boolean |
onBlockActivated(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.EnumHand hand,
net.minecraft.util.EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
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, 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<BlockDefaultLeavesFruit> create()
protected net.minecraft.block.state.BlockStateContainer createBlockState()
createBlockState in class net.minecraft.block.Blockpublic boolean onBlockActivated(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.EnumHand hand,
net.minecraft.util.EnumFacing facing,
float hitX,
float hitY,
float hitZ)
onBlockActivated in class net.minecraft.block.Blockprotected 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 int getBlockNumber()
protected abstract PropertyTreeTypeFruit getVariant()
@Nullable public PropertyTreeTypeFruit.LeafVariant getLeafVariant(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 BlockAbstractLeavespublic PropertyTreeTypeFruit.LeafVariant getTreeType(int meta)
public 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)