类 LeavesBlock

  • 所有已实现的接口:
    ItemConvertible

    public class LeavesBlock
    extends Block
    Mappings:
    Namespace Name
    official ccn
    intermediary net/minecraft/class_2397
    named net/minecraft/block/LeavesBlock
    • 字段详细资料

      • field_31111

        public static final int field_31111
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official a Lccn;a:I
        intermediary field_31111 Lnet/minecraft/class_2397;field_31111:I
        named field_31111 Lnet/minecraft/block/LeavesBlock;field_31111:I
      • DISTANCE

        public static final IntProperty DISTANCE
        Mappings:
        Namespace Name Mixin selector
        official b Lccn;b:Lckr;
        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 Lccn;c:Lcki;
        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
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official d Lccn;d:I
        intermediary field_31112 Lnet/minecraft/class_2397;field_31112:I
        named field_31112 Lnet/minecraft/block/LeavesBlock;field_31112:I
    • 构造器详细资料

      • LeavesBlock

        public LeavesBlock​(AbstractBlock.Settings settings)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lcjq;<init>(Lcjq$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
    • 方法详细资料

      • getSidesShape

        public VoxelShape getSidesShape​(BlockState state,
                                        BlockView world,
                                        BlockPos pos)
        覆盖:
        getSidesShape 在类中 AbstractBlock
        Mappings:
        Namespace Name Mixin selector
        official e Lcjq;e(Lcjr;Lbuv;Lgb;)Ldmt;
        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)
        覆盖:
        hasRandomTicks 在类中 Block
        Mappings:
        Namespace Name Mixin selector
        official d_ Lbyq;d_(Lcjr;)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)
        覆盖:
        randomTick 在类中 AbstractBlock
        Mappings:
        Namespace Name Mixin selector
        official b Lcjq;b(Lcjr;Labj;Lgb;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)
        覆盖:
        scheduledTick 在类中 AbstractBlock
        Mappings:
        Namespace Name Mixin selector
        official a_ Lcjq;a_(Lcjr;Labj;Lgb;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)
        覆盖:
        getOpacity 在类中 AbstractBlock
        Mappings:
        Namespace Name Mixin selector
        official f Lcjq;f(Lcjr;Lbuv;Lgb;)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.
        覆盖:
        getStateForNeighborUpdate 在类中 AbstractBlock
        参数:
        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
        返回:
        the new state of this block
        Mappings:
        Namespace Name Mixin selector
        official a Lcjq;a(Lcjr;Lgg;Lcjr;Lbvs;Lgb;Lgb;)Lcjr;
        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 Lccn;a(Lcjr;Lbvs;Lgb;)Lcjr;
        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 Lccn;h(Lcjr;)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)
        覆盖:
        randomDisplayTick 在类中 Block
        Mappings:
        Namespace Name Mixin selector
        official a Lbyq;a(Lcjr;Lbvr;Lgb;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)
        覆盖:
        appendProperties 在类中 Block
        Mappings:
        Namespace Name Mixin selector
        official a Lbyq;a(Lcjs$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)
        覆盖:
        getPlacementState 在类中 Block
        Mappings:
        Namespace Name Mixin selector
        official a Lbyq;a(Lbrr;)Lcjr;
        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;