Class LeavesBlock

All Implemented Interfaces:
FluidDrainable, FluidFillable, Waterloggable, ItemConvertible
Direct Known Subclasses:
MangroveLeavesBlock

public class LeavesBlock extends Block implements Waterloggable
Mappings:
Namespace Name
official cmw
intermediary net/minecraft/class_2397
named net/minecraft/block/LeavesBlock
  • Field Details

    • MAX_DISTANCE

      public static final int MAX_DISTANCE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lcmw;a:I
      intermediary field_31111 Lnet/minecraft/class_2397;field_31111:I
      named MAX_DISTANCE Lnet/minecraft/block/LeavesBlock;MAX_DISTANCE:I
    • DISTANCE

      public static final IntProperty DISTANCE
      Mappings:
      Namespace Name Mixin selector
      official b Lcmw;b:Lcvr;
      intermediary field_11199 Lnet/minecraft/class_2397;field_11199:Lnet/minecraft/class_2758;
      named DISTANCE Lnet/minecraft/block/LeavesBlock;DISTANCE:Lnet/minecraft/state/property/IntProperty;
    • PERSISTENT

      public static final BooleanProperty PERSISTENT
      Mappings:
      Namespace Name Mixin selector
      official c Lcmw;c:Lcvi;
      intermediary field_11200 Lnet/minecraft/class_2397;field_11200:Lnet/minecraft/class_2746;
      named PERSISTENT Lnet/minecraft/block/LeavesBlock;PERSISTENT:Lnet/minecraft/state/property/BooleanProperty;
    • WATERLOGGED

      public static final BooleanProperty WATERLOGGED
      Mappings:
      Namespace Name Mixin selector
      official d Lcmw;d:Lcvi;
      intermediary field_38227 Lnet/minecraft/class_2397;field_38227:Lnet/minecraft/class_2746;
      named WATERLOGGED Lnet/minecraft/block/LeavesBlock;WATERLOGGED:Lnet/minecraft/state/property/BooleanProperty;
    • field_31112

      private static final int field_31112
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official e Lcmw;e:I
      intermediary field_31112 Lnet/minecraft/class_2397;field_31112:I
      named field_31112 Lnet/minecraft/block/LeavesBlock;field_31112:I
  • Constructor Details

    • LeavesBlock

      public LeavesBlock(AbstractBlock.Settings settings)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcuq;<init>(Lcuq$c;)V
      intermediary <init> Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)V
      named <init> Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V
  • Method Details

    • getSidesShape

      public VoxelShape getSidesShape(BlockState state, BlockView world, BlockPos pos)
      Overrides:
      getSidesShape in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official f Lcuq;f(Lcur;Lcfg;Lgt;)Ldwm;
      intermediary method_25959 Lnet/minecraft/class_4970;method_25959(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Lnet/minecraft/class_265;
      named getSidesShape Lnet/minecraft/block/AbstractBlock;getSidesShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/shape/VoxelShape;
    • hasRandomTicks

      public boolean hasRandomTicks(BlockState state)
      Overrides:
      hasRandomTicks in class Block
      Mappings:
      Namespace Name Mixin selector
      official e_ Lciw;e_(Lcur;)Z
      intermediary method_9542 Lnet/minecraft/class_2248;method_9542(Lnet/minecraft/class_2680;)Z
      named hasRandomTicks Lnet/minecraft/block/Block;hasRandomTicks(Lnet/minecraft/block/BlockState;)Z
    • randomTick

      public void randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random)
      Overrides:
      randomTick in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official b Lcuq;b(Lcur;Lafo;Lgt;Lalu;)V
      intermediary method_9514 Lnet/minecraft/class_4970;method_9514(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)V
      named randomTick Lnet/minecraft/block/AbstractBlock;randomTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)V
    • shouldDecay

      protected boolean shouldDecay(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official h Lcmw;h(Lcur;)Z
      intermediary method_42311 Lnet/minecraft/class_2397;method_42311(Lnet/minecraft/class_2680;)Z
      named shouldDecay Lnet/minecraft/block/LeavesBlock;shouldDecay(Lnet/minecraft/block/BlockState;)Z
    • scheduledTick

      public void scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random)
      Overrides:
      scheduledTick in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcuq;a(Lcur;Lafo;Lgt;Lalu;)V
      intermediary method_9588 Lnet/minecraft/class_4970;method_9588(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)V
      named scheduledTick Lnet/minecraft/block/AbstractBlock;scheduledTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)V
    • getOpacity

      public int getOpacity(BlockState state, BlockView world, BlockPos pos)
      Overrides:
      getOpacity in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official g Lcuq;g(Lcur;Lcfg;Lgt;)I
      intermediary method_9505 Lnet/minecraft/class_4970;method_9505(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)I
      named getOpacity Lnet/minecraft/block/AbstractBlock;getOpacity(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)I
    • getStateForNeighborUpdate

      public BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos)
      Gets the possibly updated block state of this block when a neighboring block is updated.
      Overrides:
      getStateForNeighborUpdate in class AbstractBlock
      Parameters:
      state - the state of this block
      direction - the direction from this block to the neighbor
      neighborState - the state of the updated neighbor block
      world - the world
      pos - the position of this block
      neighborPos - the position of the neighbor block
      Returns:
      the new state of this block
      Mappings:
      Namespace Name Mixin selector
      official a Lcuq;a(Lcur;Lgy;Lcur;Lcgb;Lgt;Lgt;)Lcur;
      intermediary method_9559 Lnet/minecraft/class_4970;method_9559(Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
      named getStateForNeighborUpdate Lnet/minecraft/block/AbstractBlock;getStateForNeighborUpdate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
    • updateDistanceFromLogs

      private static BlockState updateDistanceFromLogs(BlockState state, WorldAccess world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lcmw;a(Lcur;Lcgb;Lgt;)Lcur;
      intermediary method_10300 Lnet/minecraft/class_2397;method_10300(Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
      named updateDistanceFromLogs Lnet/minecraft/block/LeavesBlock;updateDistanceFromLogs(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
    • getDistanceFromLog

      private static int getDistanceFromLog(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official n Lcmw;n(Lcur;)I
      intermediary method_10302 Lnet/minecraft/class_2397;method_10302(Lnet/minecraft/class_2680;)I
      named getDistanceFromLog Lnet/minecraft/block/LeavesBlock;getDistanceFromLog(Lnet/minecraft/block/BlockState;)I
    • getFluidState

      public FluidState getFluidState(BlockState state)
      Overrides:
      getFluidState in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official c_ Lcuq;c_(Lcur;)Ldoy;
      intermediary method_9545 Lnet/minecraft/class_4970;method_9545(Lnet/minecraft/class_2680;)Lnet/minecraft/class_3610;
      named getFluidState Lnet/minecraft/block/AbstractBlock;getFluidState(Lnet/minecraft/block/BlockState;)Lnet/minecraft/fluid/FluidState;
    • randomDisplayTick

      public void randomDisplayTick(BlockState state, World world, BlockPos pos, Random random)
      Overrides:
      randomDisplayTick in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lciw;a(Lcur;Lcga;Lgt;Lalu;)V
      intermediary method_9496 Lnet/minecraft/class_2248;method_9496(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)V
      named randomDisplayTick Lnet/minecraft/block/Block;randomDisplayTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)V
    • appendProperties

      protected void appendProperties(StateManager.Builder<Block,BlockState> builder)
      Overrides:
      appendProperties in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lciw;a(Lcus$a;)V
      intermediary method_9515 Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)V
      named appendProperties Lnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
    • getPlacementState

      public BlockState getPlacementState(ItemPlacementContext ctx)
      Overrides:
      getPlacementState in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lciw;a(Lcca;)Lcur;
      intermediary method_9605 Lnet/minecraft/class_2248;method_9605(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;
      named getPlacementState Lnet/minecraft/block/Block;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;