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
- Mappings:
Namespace Name official ahsintermediary net/minecraft/class_150named net/minecraft/block/LeavesBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.OffsetType, Block.Sound -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BooleanPropertystatic final BooleanPropertyprotected boolean(package private) int[]protected intFields inherited from class net.minecraft.block.BaseLeavesBlock
fancyGraphicsFields inherited from class net.minecraft.block.Block
ANVIL, blastResistance, BLOCK_STATES, blockEntity, boundingBoxMaxX, boundingBoxMaxY, boundingBoxMaxZ, boundingBoxMinX, boundingBoxMinY, boundingBoxMinZ, CLOTH, fullBlock, GLASS, GRASS, GRAVEL, hardness, LADDER, lightLevel, material, materialColor, opacity, ORE, particleGravity, RAIL, randomTicks, REGISTRY, SAND, SLIME, slipperiness, SNOW, sound, stateManager, stats, STONE, transluscent, useNeighbourLight, WOOD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetBlockColor(BlockView 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.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) booleanbooleanChecks whether the current block is a normal block (used only byLeavesBlock)voidmethod_325(boolean bool) 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).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_414, method_8666, 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_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 bLahs;b:Lamk;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;
-
field_287
int[] field_287- Mappings:
Namespace Name Mixin selector official NLahs;N:[Iintermediary field_287Lnet/minecraft/class_150;field_287:[Inamed field_287Lnet/minecraft/block/LeavesBlock;field_287:[I
-
field_7461
- Mappings:
Namespace Name Mixin selector official OLahs;O:Iintermediary field_7461Lnet/minecraft/class_150;field_7461:Inamed field_7461Lnet/minecraft/block/LeavesBlock;field_7461:I
-
fancyGraphicsStatus
- Mappings:
Namespace Name Mixin selector official PLahs;P:Zintermediary field_9502Lnet/minecraft/class_150;field_9502: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- BlockView instancepos- The block's positionid- Id- Returns:
- Block color
- Mappings:
Namespace Name Mixin selector official aLafh;a(Ladq;Lcj;I)Iintermediary method_438Lnet/minecraft/class_197;method_438(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;I)Inamed getBlockColorLnet/minecraft/block/Block;getBlockColor(Lnet/minecraft/world/BlockView;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_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 bLafh;b(Ladm;Lcj;Lalz;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
-
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_8669Lnet/minecraft/class_197;method_8669(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;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_8807
- Mappings:
Namespace Name Mixin selector official eLahs;e(Ladm;Lcj;)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 aLafh;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 aLafh;a(Lalz;Ljava/util/Random;I)Lzw;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 aLafh;a(Ladm;Lcj;Lalz;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 aLahs;a(Ladm;Lcj;Lalz;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 dLahs;d(Lalz;)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
-
hasTransperancy
public boolean hasTransperancy()- Overrides:
hasTransperancyin classBaseLeavesBlock- Mappings:
Namespace Name Mixin selector official cLafh;c()Zintermediary method_449Lnet/minecraft/class_197;method_449()Znamed hasTransperancyLnet/minecraft/block/Block;hasTransperancy()Z
-
method_325
- Mappings:
Namespace Name Mixin selector official bLahs;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 mLafh;m()Ladf;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 wLafh;w()Zintermediary method_8688Lnet/minecraft/class_197;method_8688()Znamed isLeafBlockLnet/minecraft/block/Block;isLeafBlock()Z
-
getWoodType
- Mappings:
Namespace Name Mixin selector official bLahs;b(I)Laio$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;
-