Package net.minecraft.block
Class LeavesBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.LeavesBlock
- Direct Known Subclasses:
Leaves1Block,Leaves2Block
- Mappings:
Namespace Name official amlintermediary net/minecraft/class_150named net/minecraft/block/LeavesBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.OffsetType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BooleanPropertystatic final BooleanPropertyprotected boolean(package private) int[]Fields inherited from class net.minecraft.block.Block
blastResistance, BLOCK_STATES, blockEntity, blockSoundGroup, collisionBox, EMPTY_BOX, fullBlock, hardness, lightLevel, material, materialColor, opacity, particleGravity, randomTicks, REGISTRY, slipperiness, stateManager, stats, transluscent, useNeighbourLight -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetDropCount(Random rand) Returns the amount of items the block should drop on breaking without bonus rolls.getDropItem(BlockState blockState, Random random, int state) Returns the item that must be dropped when the block is brokenReturns the appropriate RenderLayer for a block.abstract PlanksBlock.WoodTypegetWoodType(int state) booleanisFullBoundsCubeForCulling(BlockState blockState) booleanChecks whether the current block is a normal block (used only byLeavesBlock)voidmethod_325(boolean bool) booleanmethod_8654(BlockState state, BlockView view, BlockPos pos, Direction direction) voidmethod_8669(BlockState blockState, World world, BlockPos blockPos, Random random) protected voidmethod_8804(World world, BlockPos blockPos, BlockState blockState, int int2) protected intmethod_8806(BlockState blockState) private voidmethod_8807(World world, BlockPos blockPos) voidonBreaking(World world, BlockPos pos, BlockState state) Runs when the block is removed (by an entity or explosion).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.Block
appendCollisionBoxes, appendCollisionBoxes, appendItemStacks, appendProperties, areBlocksEqual, blocksMovement, canBePlacedAdjacent, canBePlacedAtPos, canBeReplaced, canCollide, canMobSpawnInside, createStackFromBlock, disableStats, dropAsItem, dropExperience, get, getBlastResistance, getBlockFromItem, getBlockRenderType, getBlockState, getBonusDrops, getByBlockState, getById, getCollisionBox, getCollisionBox, getComparatorOutput, getData, getDefaultState, getHardness, getIdByBlock, getItemGroup, getLuminance, getMaterial, getMaterialColor, getMeta, getOffsetType, getOpacity, getPistonBehavior, getSoundGroup, getStateFromData, getStateFromRawId, getStateManager, getTickRate, getTranslatedName, getTranslationKey, hasBlockEntity, hasCollision, hasCollision, hasStats, isEqualTo, isFire, isFullBlock, isTransluscent, method_11557, method_11559, method_11562, method_11563, method_11564, method_11565, method_11566, method_11568, method_11575, method_11576, method_11577, method_414, method_421, method_435, method_8638, method_8640, method_8641, method_8651, method_8653, method_8664, onBlockBreak, onBlockBreakStart, onBreakByPlayer, onBreakByPlayer, onCreation, onDestroyedByExplosion, onEntityCollision, onEntityCollision, onLandedUpon, onPlaced, onSteppedOn, onUpdateTick, rainTick, requiresSilkTouch, setBlockSoundGroup, setDefaultState, setEntityVelocity, setItemGroup, setLightLevel, setOpacity, setResistance, setStrength, setTickRandomly, setTranslationKey, setUnbreakable, setup, shouldDropItemsOnExplosion, stateFromData, ticksRandomly, toString, useNeighbourLight, withMirror, withRotation
-
Field Details
-
DECAYABLE
- Mappings:
Namespace Name Mixin selector official aLaml;a:Laro;intermediary field_9503Lnet/minecraft/class_150;field_9503:Lnet/minecraft/class_2243;named DECAYABLELnet/minecraft/block/LeavesBlock;DECAYABLE:Lnet/minecraft/state/property/BooleanProperty;
-
CHECK_DECAY
- Mappings:
Namespace Name Mixin selector official bLaml;b:Laro;intermediary field_9504Lnet/minecraft/class_150;field_9504:Lnet/minecraft/class_2243;named CHECK_DECAYLnet/minecraft/block/LeavesBlock;CHECK_DECAY:Lnet/minecraft/state/property/BooleanProperty;
-
fancyGraphicsStatus
protected boolean fancyGraphicsStatus- Mappings:
Namespace Name Mixin selector official cLaml;c:Zintermediary field_9502Lnet/minecraft/class_150;field_9502:Znamed fancyGraphicsStatusLnet/minecraft/block/LeavesBlock;fancyGraphicsStatus:Z
-
field_287
int[] field_287- Mappings:
Namespace Name Mixin selector official dLaml;d:[Iintermediary field_287Lnet/minecraft/class_150;field_287:[Inamed field_287Lnet/minecraft/block/LeavesBlock;field_287:[I
-
-
Constructor Details
-
LeavesBlock
public LeavesBlock()
-
-
Method Details
-
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 bLajt;b(Laht;Lcl;Lard;)Vintermediary method_8659Lnet/minecraft/class_197;method_8659(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)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 bLajt;b(Laht;Lcl;Lard;Ljava/util/Random;)Vintermediary method_8661Lnet/minecraft/class_197;method_8661(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;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
-
method_8669
@Environment(CLIENT) public void method_8669(BlockState blockState, World world, BlockPos blockPos, Random random) - Overrides:
method_8669in classBlock- Mappings:
Namespace Name Mixin selector official aLajt;a(Lard;Laht;Lcl;Ljava/util/Random;)Vintermediary method_8669Lnet/minecraft/class_197;method_8669(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Ljava/util/Random;)Vnamed method_8669Lnet/minecraft/block/Block;method_8669(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
-
method_8807
- Mappings:
Namespace Name Mixin selector official bLaml;b(Laht;Lcl;)Vintermediary method_8807Lnet/minecraft/class_150;method_8807(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Vnamed method_8807Lnet/minecraft/block/LeavesBlock;method_8807(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 aLajt;a(Ljava/util/Random;)Iintermediary method_403Lnet/minecraft/class_197;method_403(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 aLajt;a(Lard;Ljava/util/Random;I)Lado;intermediary method_398Lnet/minecraft/class_197;method_398(Lnet/minecraft/class_2232;Ljava/util/Random;I)Lnet/minecraft/class_1069;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 aLajt;a(Laht;Lcl;Lard;FI)Vintermediary method_410Lnet/minecraft/class_197;method_410(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;FI)Vnamed randomDropAsItemLnet/minecraft/block/Block;randomDropAsItem(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;FI)V
-
method_8804
- Mappings:
Namespace Name Mixin selector official aLaml;a(Laht;Lcl;Lard;I)Vintermediary method_8804Lnet/minecraft/class_150;method_8804(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;I)Vnamed method_8804Lnet/minecraft/block/LeavesBlock;method_8804(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;I)V
-
method_8806
- Mappings:
Namespace Name Mixin selector official iLaml;i(Lard;)Iintermediary method_8806Lnet/minecraft/class_150;method_8806(Lnet/minecraft/class_2232;)Inamed method_8806Lnet/minecraft/block/LeavesBlock;method_8806(Lnet/minecraft/block/BlockState;)I
-
isFullBoundsCubeForCulling
- Overrides:
isFullBoundsCubeForCullingin classBlock- Mappings:
Namespace Name Mixin selector official bLajt;b(Lard;)Zintermediary method_11560Lnet/minecraft/class_197;method_11560(Lnet/minecraft/class_2232;)Znamed isFullBoundsCubeForCullingLnet/minecraft/block/Block;isFullBoundsCubeForCulling(Lnet/minecraft/block/BlockState;)Z
-
method_325
- Mappings:
Namespace Name Mixin selector official bLaml;b(Z)Vintermediary method_325Lnet/minecraft/class_150;method_325(Z)Vnamed method_325Lnet/minecraft/block/LeavesBlock;method_325(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 fLajt;f()Lahm;intermediary method_8687Lnet/minecraft/class_197;method_8687()Lnet/minecraft/class_2165;named getRenderLayerTypeLnet/minecraft/block/Block;getRenderLayerType()Lnet/minecraft/client/render/BlockRenderLayer;
-
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 jLajt;j()Zintermediary method_8688Lnet/minecraft/class_197;method_8688()Znamed isLeafBlockLnet/minecraft/block/Block;isLeafBlock()Z
-
getWoodType
- Mappings:
Namespace Name Mixin selector official eLaml;e(I)Lanj$a;intermediary method_8805Lnet/minecraft/class_150;method_8805(I)Lnet/minecraft/class_213$class_2202;named getWoodTypeLnet/minecraft/block/LeavesBlock;getWoodType(I)Lnet/minecraft/block/PlanksBlock$WoodType;
-
method_8654
@Environment(CLIENT) public boolean method_8654(BlockState state, BlockView view, BlockPos pos, Direction direction) - Overrides:
method_8654in classBlock- Mappings:
Namespace Name Mixin selector official aLajt;a(Lard;Lahx;Lcl;Lcs;)Zintermediary method_8654Lnet/minecraft/class_197;method_8654(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Znamed method_8654Lnet/minecraft/block/Block;method_8654(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
-