Class LeavesBlock

All Implemented Interfaces:
ItemConvertible

public class LeavesBlock extends Block
Mappings:
Namespace Name
official cgp
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 Lcgp;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 Lcgp;b:Lcow;
      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 Lcgp;c:Lcom;
      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;
    • field_31112

      private static final int field_31112
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Lcgp;d: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> Lcnu;<init>(Lcnu$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 Lcnu;f(Lcnv;Lbzc;Lgh;)Ldos;
      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_ Lccr;e_(Lcnv;)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 Lcnu;b(Lcnv;Ladc;Lgh;Ljava/util/Random;)V
      intermediary method_9514 Lnet/minecraft/class_4970;method_9514(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Ljava/util/Random;)V
      named randomTick Lnet/minecraft/block/AbstractBlock;randomTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
    • scheduledTick

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

      public int getOpacity(BlockState state, BlockView world, BlockPos pos)
      Overrides:
      getOpacity in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official g Lcnu;g(Lcnv;Lbzc;Lgh;)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 Lcnu;a(Lcnv;Lgm;Lcnv;Lbzx;Lgh;Lgh;)Lcnv;
      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 Lcgp;a(Lcnv;Lbzx;Lgh;)Lcnv;
      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 h Lcgp;h(Lcnv;)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
    • randomDisplayTick

      public void randomDisplayTick(BlockState state, World world, BlockPos pos, Random random)
      Overrides:
      randomDisplayTick in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lccr;a(Lcnv;Lbzw;Lgh;Ljava/util/Random;)V
      intermediary method_9496 Lnet/minecraft/class_2248;method_9496(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Ljava/util/Random;)V
      named randomDisplayTick Lnet/minecraft/block/Block;randomDisplayTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
    • appendProperties

      protected void appendProperties(StateManager.Builder<Block,BlockState> builder)
      Overrides:
      appendProperties in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lccr;a(Lcnw$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 Lccr;a(Lbvx;)Lcnv;
      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;