Package net.minecraft.block
Class LeavesBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.BaseLeavesBlock
net.minecraft.block.LeavesBlock
- Direct Known Subclasses:
Leaves1Block,Leaves2Block
public abstract class LeavesBlock extends BaseLeavesBlock
- Mappings:
Namespace Name official ahsintermediary net/minecraft/class_240named net/minecraft/block/LeavesBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.OffsetType, Block.Sound -
Field Summary
Fields Modifier and Type Field Description static BooleanPropertyCHECK_DECAYstatic BooleanPropertyDECAYABLEprotected booleanfancyGraphicsStatus(package private) int[]field_1008protected intfield_1009Fields inherited from class net.minecraft.block.BaseLeavesBlock
fancyGraphicsFields inherited from class net.minecraft.block.Block
ANVIL, BLOCK_STATES, blockEntity, boundingBoxMaxX, boundingBoxMaxY, boundingBoxMaxZ, boundingBoxMinX, boundingBoxMinY, boundingBoxMinZ, CLOTH, fullBlock, GLASS, GRASS, GRAVEL, LADDER, lightLevel, material, materialColor, opacity, ORE, particleGravity, RAIL, randomTicks, REGISTRY, resistance, SAND, SLIME, slipperiness, SNOW, sound, stateManager, stats, STONE, strength, transluscent, useNeighbourLight, WOOD -
Constructor Summary
Constructors Constructor Description LeavesBlock() -
Method Summary
Modifier and Type Method Description intgetBlockColor(WorldView view, BlockPos pos, int id)Returns the current block's colorintgetColor()intgetColor(BlockState state)intgetDropCount(Random rand)Returns the amount of items the block should drop on breaking without bonus rolls.ItemgetDropItem(BlockState blockState, Random random, int state)Returns the item that must be dropped when the block is brokenRenderLayergetRenderLayerType()Returns the appropriate RenderLayer for a block.abstract PlanksBlock.WoodTypegetWoodType(int state)booleanhasTransperancy()booleanisLeafBlock()Checks whether the current block is a normal block (used only byLeavesBlock)protected voidmethod_890(World world, BlockPos blockPos, BlockState blockState, int int2)voidmethod_892(boolean bool)protected intmethod_893(BlockState blockState)private voidmethod_894(World world, BlockPos blockPos)voidonBreaking(World world, BlockPos pos, BlockState state)Runs when the block is removed (by an entity or explosion).voidrandomDisplayTick(World world, BlockPos pos, BlockState state, Random rand)Runs every random display Tick.voidrandomDropAsItem(World world, BlockPos pos, BlockState state, float chance, int id)Called when the block must be dropped as an item bydropAsItem, but luck is taken into consideration here.voidscheduledTick(World world, BlockPos pos, BlockState state, Random rand)Runs when the block is updated as per a scheduleMethods inherited from class net.minecraft.block.BaseLeavesBlock
isSideInvisibleMethods inherited from class net.minecraft.block.Block
appendCollisionBoxes, appendItemStacks, appendProperties, areBlocksEqual, blocksMovement, calcBlockBreakingData, canBePlacedAdjacent, canBePlacedAtPos, canBeReplaced, canCollide, canMobSpawnInside, createStackFromBlock, disableStats, dropAsItem, dropExperience, emitsRedstonePower, get, getAmbientOcclusionLightLevel, getBlastResistance, getBlendColor, getBlockFromItem, getBlockState, getBlockType, getBonusDrops, getBrightness, getByBlockState, getById, getCollisionBox, getComparatorOutput, getData, getDefaultState, getIdByBlock, getItemGroup, getLightLevel, getMaterial, getMaterialColor, getMaxX, getMaxY, getMaxZ, getMeta, getMeta, getMinX, getMinY, getMinZ, getOffsetType, getOpacity, getPickItem, getPistonInteractionType, getSelectionBox, getStateFromData, getStateFromRawId, getStateManager, getStrength, getStrongRedstonePower, getTickRate, getTranslatedName, getTranslationKey, getWeakRedstonePower, harvest, hasBlockEntity, hasCollision, hasCollision, hasComparatorOutput, hasStats, isEqualTo, isFire, isFlowerPot, isFullBlock, isFullCube, isNormalBlock, isReplaceable, isTransluscent, method_655, method_696, neighborUpdate, onBlockBreak, onBlockBreakStart, onBreakByPlayer, onBreakByPlayer, onCreation, onDestroyedByExplosion, onEntityCollision, onEntityCollision, onEvent, onLandedUpon, onPlaced, onSteppedOn, onUpdateTick, onUse, rainTick, renderAsNormalBlock, requiresSilkTouch, setBlockItemBounds, setBoundingBox, setBoundingBox, setDefaultState, setEntityVelocity, setItemGroup, setLightLevel, setOpacity, setResistance, setSound, setStrength, setTickRandomly, setTranslationKey, setUnbreakable, setup, shouldDropItemsOnExplosion, stateFromData, ticksRandomly, toString, usesNeighbourLight
-
Field Details
-
DECAYABLE
- Mappings:
Namespace Name Mixin selector official aLahs;a:Lamk;intermediary field_1011Lnet/minecraft/class_240;field_1011:Lnet/minecraft/class_388;named DECAYABLELnet/minecraft/block/LeavesBlock;DECAYABLE:Lnet/minecraft/state/property/BooleanProperty;
-
CHECK_DECAY
- Mappings:
Namespace Name Mixin selector official bLahs;b:Lamk;intermediary field_1012Lnet/minecraft/class_240;field_1012:Lnet/minecraft/class_388;named CHECK_DECAYLnet/minecraft/block/LeavesBlock;CHECK_DECAY:Lnet/minecraft/state/property/BooleanProperty;
-
field_1008
int[] field_1008- Mappings:
Namespace Name Mixin selector official NLahs;N:[Iintermediary field_1008Lnet/minecraft/class_240;field_1008:[Inamed field_1008Lnet/minecraft/block/LeavesBlock;field_1008:[I
-
field_1009
- Mappings:
Namespace Name Mixin selector official OLahs;O:Iintermediary field_1009Lnet/minecraft/class_240;field_1009:Inamed field_1009Lnet/minecraft/block/LeavesBlock;field_1009:I
-
fancyGraphicsStatus
- Mappings:
Namespace Name Mixin selector official PLahs;P:Zintermediary field_1010Lnet/minecraft/class_240;field_1010:Znamed fancyGraphicsStatusLnet/minecraft/block/LeavesBlock;fancyGraphicsStatus:Z
-
-
Constructor Details
-
LeavesBlock
public LeavesBlock()
-
-
Method Details
-
getColor
-
getColor
-
getBlockColor
Returns the current block's color- Overrides:
getBlockColorin classBlock- Parameters:
view- WorldView instancepos- The block's positionid- Id- Returns:
- Block color
- Mappings:
Namespace Name Mixin selector official aLafh;a(Ladq;Lcj;I)Iintermediary method_666Lnet/minecraft/class_160;method_666(Lnet/minecraft/class_104;Lnet/minecraft/class_1372;I)Inamed getBlockColorLnet/minecraft/block/Block;getBlockColor(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;I)I
-
onBreaking
Runs when the block is removed (by an entity or explosion).- Overrides:
onBreakingin classBlock- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockState- Mappings:
Namespace Name Mixin selector official bLafh;b(Ladm;Lcj;Lalz;)Vintermediary method_688Lnet/minecraft/class_160;method_688(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;)Vnamed onBreakingLnet/minecraft/block/Block;onBreaking(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
scheduledTick
Runs when the block is updated as per a schedule- Overrides:
scheduledTickin classBlock- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockStaterand- Random object- Mappings:
Namespace Name Mixin selector official bLafh;b(Ladm;Lcj;Lalz;Ljava/util/Random;)Vintermediary method_690Lnet/minecraft/class_160;method_690(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;Ljava/util/Random;)Vnamed scheduledTickLnet/minecraft/block/Block;scheduledTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Ljava/util/Random;)V
-
randomDisplayTick
@Environment(CLIENT) public void randomDisplayTick(World world, BlockPos pos, BlockState state, Random rand)Runs every random display Tick. Useful for displaying particles around a block, like Redstone Ore.- Overrides:
randomDisplayTickin classBlock- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockStaterand- Random object- Mappings:
Namespace Name Mixin selector official cLafh;c(Ladm;Lcj;Lalz;Ljava/util/Random;)Vintermediary method_704Lnet/minecraft/class_160;method_704(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;Ljava/util/Random;)Vnamed randomDisplayTickLnet/minecraft/block/Block;randomDisplayTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Ljava/util/Random;)V
-
method_894
- Mappings:
Namespace Name Mixin selector official eLahs;e(Ladm;Lcj;)Vintermediary method_894Lnet/minecraft/class_240;method_894(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;)Vnamed method_894Lnet/minecraft/block/LeavesBlock;method_894(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
-
getDropCount
Returns the amount of items the block should drop on breaking without bonus rolls.- Overrides:
getDropCountin classBlock- Parameters:
rand- Random object- Returns:
- Amount of items to be dropped
- Mappings:
Namespace Name Mixin selector official aLafh;a(Ljava/util/Random;)Iintermediary method_677Lnet/minecraft/class_160;method_677(Ljava/util/Random;)Inamed getDropCountLnet/minecraft/block/Block;getDropCount(Ljava/util/Random;)I
-
getDropItem
Returns the item that must be dropped when the block is broken- Overrides:
getDropItemin classBlock- Parameters:
blockState- The block's BlockStaterandom- Random objectstate- State- Returns:
- The Item that drops after the block breaks
- Mappings:
Namespace Name Mixin selector official aLafh;a(Lalz;Ljava/util/Random;I)Lzw;intermediary method_674Lnet/minecraft/class_160;method_674(Lnet/minecraft/class_376;Ljava/util/Random;I)Lnet/minecraft/class_2054;named getDropItemLnet/minecraft/block/Block;getDropItem(Lnet/minecraft/block/BlockState;Ljava/util/Random;I)Lnet/minecraft/item/Item;
-
randomDropAsItem
Called when the block must be dropped as an item bydropAsItem, but luck is taken into consideration here.- Overrides:
randomDropAsItemin classBlock- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockStatechance- The chance (luck factor)id- Id- Mappings:
Namespace Name Mixin selector official aLafh;a(Ladm;Lcj;Lalz;FI)Vintermediary method_646Lnet/minecraft/class_160;method_646(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;FI)Vnamed randomDropAsItemLnet/minecraft/block/Block;randomDropAsItem(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;FI)V
-
method_890
- Mappings:
Namespace Name Mixin selector official aLahs;a(Ladm;Lcj;Lalz;I)Vintermediary method_890Lnet/minecraft/class_240;method_890(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;I)Vnamed method_890Lnet/minecraft/block/LeavesBlock;method_890(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;I)V
-
method_893
- Mappings:
Namespace Name Mixin selector official dLahs;d(Lalz;)Iintermediary method_893Lnet/minecraft/class_240;method_893(Lnet/minecraft/class_376;)Inamed method_893Lnet/minecraft/block/LeavesBlock;method_893(Lnet/minecraft/block/BlockState;)I
-
hasTransperancy
public boolean hasTransperancy()- Overrides:
hasTransperancyin classBaseLeavesBlock- Mappings:
Namespace Name Mixin selector official cLafh;c()Zintermediary method_699Lnet/minecraft/class_160;method_699()Znamed hasTransperancyLnet/minecraft/block/Block;hasTransperancy()Z
-
method_892
- Mappings:
Namespace Name Mixin selector official bLahs;b(Z)Vintermediary method_892Lnet/minecraft/class_240;method_892(Z)Vnamed method_892Lnet/minecraft/block/LeavesBlock;method_892(Z)V
-
getRenderLayerType
Returns the appropriate RenderLayer for a block. Only called on the client.- Overrides:
getRenderLayerTypein classBlock- Returns:
- The block's RenderLayer
- Mappings:
Namespace Name Mixin selector official mLafh;m()Ladf;intermediary method_731Lnet/minecraft/class_160;method_731()Lnet/minecraft/class_91;named getRenderLayerTypeLnet/minecraft/block/Block;getRenderLayerType()Lnet/minecraft/client/render/RenderLayer;
-
isLeafBlock
public boolean isLeafBlock()Checks whether the current block is a normal block (used only byLeavesBlock)- Overrides:
isLeafBlockin classBlock- Returns:
- Whether the current block is a normal block
- Mappings:
Namespace Name Mixin selector official wLafh;w()Zintermediary method_740Lnet/minecraft/class_160;method_740()Znamed isLeafBlockLnet/minecraft/block/Block;isLeafBlock()Z
-
getWoodType
- Mappings:
Namespace Name Mixin selector official bLahs;b(I)Laio$a;intermediary method_891Lnet/minecraft/class_240;method_891(I)Lnet/minecraft/class_266$class_267;named getWoodTypeLnet/minecraft/block/LeavesBlock;getWoodType(I)Lnet/minecraft/block/PlanksBlock$WoodType;
-