类 AbstractButtonBlock

    • 字段详细资料

      • POWERED

        public static final BooleanProperty POWERED
        Mappings:
        Namespace Name Mixin selector
        official a Lbyy;a:Lcki;
        intermediary field_10729 Lnet/minecraft/class_2269;field_10729:Lnet/minecraft/class_2746;
        named POWERED Lnet/minecraft/block/AbstractButtonBlock;POWERED:Lnet/minecraft/state/property/BooleanProperty;
      • field_31040

        private static final int field_31040
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official L Lbyy;L:I
        intermediary field_31040 Lnet/minecraft/class_2269;field_31040:I
        named field_31040 Lnet/minecraft/block/AbstractButtonBlock;field_31040:I
      • field_31041

        private static final int field_31041
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official M Lbyy;M:I
        intermediary field_31041 Lnet/minecraft/class_2269;field_31041:I
        named field_31041 Lnet/minecraft/block/AbstractButtonBlock;field_31041:I
      • field_31042

        protected static final int field_31042
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official b Lbyy;b:I
        intermediary field_31042 Lnet/minecraft/class_2269;field_31042:I
        named field_31042 Lnet/minecraft/block/AbstractButtonBlock;field_31042:I
      • field_31043

        protected static final int field_31043
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official c Lbyy;c:I
        intermediary field_31043 Lnet/minecraft/class_2269;field_31043:I
        named field_31043 Lnet/minecraft/block/AbstractButtonBlock;field_31043:I
      • CEILING_X_SHAPE

        protected static final VoxelShape CEILING_X_SHAPE
        Mappings:
        Namespace Name Mixin selector
        official d Lbyy;d:Ldmt;
        intermediary field_10721 Lnet/minecraft/class_2269;field_10721:Lnet/minecraft/class_265;
        named CEILING_X_SHAPE Lnet/minecraft/block/AbstractButtonBlock;CEILING_X_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
      • CEILING_Z_SHAPE

        protected static final VoxelShape CEILING_Z_SHAPE
        Mappings:
        Namespace Name Mixin selector
        official e Lbyy;e:Ldmt;
        intermediary field_10727 Lnet/minecraft/class_2269;field_10727:Lnet/minecraft/class_265;
        named CEILING_Z_SHAPE Lnet/minecraft/block/AbstractButtonBlock;CEILING_Z_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
      • FLOOR_X_SHAPE

        protected static final VoxelShape FLOOR_X_SHAPE
        Mappings:
        Namespace Name Mixin selector
        official f Lbyy;f:Ldmt;
        intermediary field_10723 Lnet/minecraft/class_2269;field_10723:Lnet/minecraft/class_265;
        named FLOOR_X_SHAPE Lnet/minecraft/block/AbstractButtonBlock;FLOOR_X_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
      • FLOOR_Z_SHAPE

        protected static final VoxelShape FLOOR_Z_SHAPE
        Mappings:
        Namespace Name Mixin selector
        official g Lbyy;g:Ldmt;
        intermediary field_10716 Lnet/minecraft/class_2269;field_10716:Lnet/minecraft/class_265;
        named FLOOR_Z_SHAPE Lnet/minecraft/block/AbstractButtonBlock;FLOOR_Z_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
      • NORTH_SHAPE

        protected static final VoxelShape NORTH_SHAPE
        Mappings:
        Namespace Name Mixin selector
        official h Lbyy;h:Ldmt;
        intermediary field_10728 Lnet/minecraft/class_2269;field_10728:Lnet/minecraft/class_265;
        named NORTH_SHAPE Lnet/minecraft/block/AbstractButtonBlock;NORTH_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
      • SOUTH_SHAPE

        protected static final VoxelShape SOUTH_SHAPE
        Mappings:
        Namespace Name Mixin selector
        official i Lbyy;i:Ldmt;
        intermediary field_10715 Lnet/minecraft/class_2269;field_10715:Lnet/minecraft/class_265;
        named SOUTH_SHAPE Lnet/minecraft/block/AbstractButtonBlock;SOUTH_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
      • WEST_SHAPE

        protected static final VoxelShape WEST_SHAPE
        Mappings:
        Namespace Name Mixin selector
        official j Lbyy;j:Ldmt;
        intermediary field_10731 Lnet/minecraft/class_2269;field_10731:Lnet/minecraft/class_265;
        named WEST_SHAPE Lnet/minecraft/block/AbstractButtonBlock;WEST_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
      • EAST_SHAPE

        protected static final VoxelShape EAST_SHAPE
        Mappings:
        Namespace Name Mixin selector
        official k Lbyy;k:Ldmt;
        intermediary field_10720 Lnet/minecraft/class_2269;field_10720:Lnet/minecraft/class_265;
        named EAST_SHAPE Lnet/minecraft/block/AbstractButtonBlock;EAST_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
      • CEILING_X_PRESSED_SHAPE

        protected static final VoxelShape CEILING_X_PRESSED_SHAPE
        Mappings:
        Namespace Name Mixin selector
        official l Lbyy;l:Ldmt;
        intermediary field_10717 Lnet/minecraft/class_2269;field_10717:Lnet/minecraft/class_265;
        named CEILING_X_PRESSED_SHAPE Lnet/minecraft/block/AbstractButtonBlock;CEILING_X_PRESSED_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
      • CEILING_Z_PRESSED_SHAPE

        protected static final VoxelShape CEILING_Z_PRESSED_SHAPE
        Mappings:
        Namespace Name Mixin selector
        official m Lbyy;m:Ldmt;
        intermediary field_10726 Lnet/minecraft/class_2269;field_10726:Lnet/minecraft/class_265;
        named CEILING_Z_PRESSED_SHAPE Lnet/minecraft/block/AbstractButtonBlock;CEILING_Z_PRESSED_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
      • FLOOR_X_PRESSED_SHAPE

        protected static final VoxelShape FLOOR_X_PRESSED_SHAPE
        Mappings:
        Namespace Name Mixin selector
        official n Lbyy;n:Ldmt;
        intermediary field_10722 Lnet/minecraft/class_2269;field_10722:Lnet/minecraft/class_265;
        named FLOOR_X_PRESSED_SHAPE Lnet/minecraft/block/AbstractButtonBlock;FLOOR_X_PRESSED_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
      • FLOOR_Z_PRESSED_SHAPE

        protected static final VoxelShape FLOOR_Z_PRESSED_SHAPE
        Mappings:
        Namespace Name Mixin selector
        official F Lbyy;F:Ldmt;
        intermediary field_10730 Lnet/minecraft/class_2269;field_10730:Lnet/minecraft/class_265;
        named FLOOR_Z_PRESSED_SHAPE Lnet/minecraft/block/AbstractButtonBlock;FLOOR_Z_PRESSED_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
      • NORTH_PRESSED_SHAPE

        protected static final VoxelShape NORTH_PRESSED_SHAPE
        Mappings:
        Namespace Name Mixin selector
        official G Lbyy;G:Ldmt;
        intermediary field_10719 Lnet/minecraft/class_2269;field_10719:Lnet/minecraft/class_265;
        named NORTH_PRESSED_SHAPE Lnet/minecraft/block/AbstractButtonBlock;NORTH_PRESSED_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
      • SOUTH_PRESSED_SHAPE

        protected static final VoxelShape SOUTH_PRESSED_SHAPE
        Mappings:
        Namespace Name Mixin selector
        official H Lbyy;H:Ldmt;
        intermediary field_10724 Lnet/minecraft/class_2269;field_10724:Lnet/minecraft/class_265;
        named SOUTH_PRESSED_SHAPE Lnet/minecraft/block/AbstractButtonBlock;SOUTH_PRESSED_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
      • WEST_PRESSED_SHAPE

        protected static final VoxelShape WEST_PRESSED_SHAPE
        Mappings:
        Namespace Name Mixin selector
        official I Lbyy;I:Ldmt;
        intermediary field_10732 Lnet/minecraft/class_2269;field_10732:Lnet/minecraft/class_265;
        named WEST_PRESSED_SHAPE Lnet/minecraft/block/AbstractButtonBlock;WEST_PRESSED_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
      • EAST_PRESSED_SHAPE

        protected static final VoxelShape EAST_PRESSED_SHAPE
        Mappings:
        Namespace Name Mixin selector
        official J Lbyy;J:Ldmt;
        intermediary field_10718 Lnet/minecraft/class_2269;field_10718:Lnet/minecraft/class_265;
        named EAST_PRESSED_SHAPE Lnet/minecraft/block/AbstractButtonBlock;EAST_PRESSED_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
      • wooden

        private final boolean wooden
        Mappings:
        Namespace Name Mixin selector
        official N Lbyy;N:Z
        intermediary field_10725 Lnet/minecraft/class_2269;field_10725:Z
        named wooden Lnet/minecraft/block/AbstractButtonBlock;wooden:Z
    • 构造器详细资料

      • AbstractButtonBlock

        protected AbstractButtonBlock​(boolean wooden,
                                      AbstractBlock.Settings settings)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lbyy;<init>(ZLcjq$c;)V
        intermediary <init> Lnet/minecraft/class_2269;<init>(ZLnet/minecraft/class_4970$class_2251;)V
        named <init> Lnet/minecraft/block/AbstractButtonBlock;<init>(ZLnet/minecraft/block/AbstractBlock$Settings;)V
    • 方法详细资料

      • getPressTicks

        private int getPressTicks()
        Mappings:
        Namespace Name Mixin selector
        official c Lbyy;c()I
        intermediary method_26153 Lnet/minecraft/class_2269;method_26153()I
        named getPressTicks Lnet/minecraft/block/AbstractButtonBlock;getPressTicks()I
      • getOutlineShape

        public VoxelShape getOutlineShape​(BlockState state,
                                          BlockView world,
                                          BlockPos pos,
                                          ShapeContext context)
        覆盖:
        getOutlineShape 在类中 AbstractBlock
        Mappings:
        Namespace Name Mixin selector
        official a Lcjq;a(Lcjr;Lbuv;Lgb;Ldmf;)Ldmt;
        intermediary method_9530 Lnet/minecraft/class_4970;method_9530(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_3726;)Lnet/minecraft/class_265;
        named getOutlineShape Lnet/minecraft/block/AbstractBlock;getOutlineShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/ShapeContext;)Lnet/minecraft/util/shape/VoxelShape;
      • onUse

        public ActionResult onUse​(BlockState state,
                                  World world,
                                  BlockPos pos,
                                  PlayerEntity player,
                                  Hand hand,
                                  BlockHitResult hit)
        Called when this block is used by a player. This, by default, is bound to using the right mouse button.

        This method is called on both the logical client and logical server, so take caution when overriding this method. The logical side can be checked using world.isClient().

        If the action result is successful on a logical client, then the action will be sent to the logical server for processing.

        覆盖:
        onUse 在类中 AbstractBlock
        返回:
        an action result that specifies if using the block was successful.
        Mappings:
        Namespace Name Mixin selector
        official a Lcjq;a(Lcjr;Lbvr;Lgb;Lbjf;Larf;Ldlw;)Larg;
        intermediary method_9534 Lnet/minecraft/class_4970;method_9534(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_3965;)Lnet/minecraft/class_1269;
        named onUse Lnet/minecraft/block/AbstractBlock;onUse(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/util/hit/BlockHitResult;)Lnet/minecraft/util/ActionResult;
      • powerOn

        public void powerOn​(BlockState state,
                            World world,
                            BlockPos pos)
        Mappings:
        Namespace Name Mixin selector
        official d Lbyy;d(Lcjr;Lbvr;Lgb;)V
        intermediary method_21845 Lnet/minecraft/class_2269;method_21845(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V
        named powerOn Lnet/minecraft/block/AbstractButtonBlock;powerOn(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
      • playClickSound

        protected void playClickSound​(@Nullable
                                      @Nullable PlayerEntity player,
                                      WorldAccess world,
                                      BlockPos pos,
                                      boolean powered)
        Mappings:
        Namespace Name Mixin selector
        official a Lbyy;a(Lbjf;Lbvs;Lgb;Z)V
        intermediary method_9714 Lnet/minecraft/class_2269;method_9714(Lnet/minecraft/class_1657;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Z)V
        named playClickSound Lnet/minecraft/block/AbstractButtonBlock;playClickSound(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Z)V
      • getClickSound

        protected abstract SoundEvent getClickSound​(boolean powered)
        Mappings:
        Namespace Name Mixin selector
        official a Lbyy;a(Z)Laev;
        intermediary method_9712 Lnet/minecraft/class_2269;method_9712(Z)Lnet/minecraft/class_3414;
        named getClickSound Lnet/minecraft/block/AbstractButtonBlock;getClickSound(Z)Lnet/minecraft/sound/SoundEvent;
      • onStateReplaced

        public void onStateReplaced​(BlockState state,
                                    World world,
                                    BlockPos pos,
                                    BlockState newState,
                                    boolean moved)
        Called in WorldChunk.setBlockState(BlockPos, BlockState, boolean) if newState is different from state. Vanilla blocks perform removal cleanups here.
        覆盖:
        onStateReplaced 在类中 AbstractBlock
        Mappings:
        Namespace Name Mixin selector
        official a Lcjq;a(Lcjr;Lbvr;Lgb;Lcjr;Z)V
        intermediary method_9536 Lnet/minecraft/class_4970;method_9536(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)V
        named onStateReplaced Lnet/minecraft/block/AbstractBlock;onStateReplaced(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)V
      • getWeakRedstonePower

        public int getWeakRedstonePower​(BlockState state,
                                        BlockView world,
                                        BlockPos pos,
                                        Direction direction)
        覆盖:
        getWeakRedstonePower 在类中 AbstractBlock
        Mappings:
        Namespace Name Mixin selector
        official a Lcjq;a(Lcjr;Lbuv;Lgb;Lgg;)I
        intermediary method_9524 Lnet/minecraft/class_4970;method_9524(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)I
        named getWeakRedstonePower Lnet/minecraft/block/AbstractBlock;getWeakRedstonePower(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)I
      • getStrongRedstonePower

        public int getStrongRedstonePower​(BlockState state,
                                          BlockView world,
                                          BlockPos pos,
                                          Direction direction)
        覆盖:
        getStrongRedstonePower 在类中 AbstractBlock
        Mappings:
        Namespace Name Mixin selector
        official b Lcjq;b(Lcjr;Lbuv;Lgb;Lgg;)I
        intermediary method_9603 Lnet/minecraft/class_4970;method_9603(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)I
        named getStrongRedstonePower Lnet/minecraft/block/AbstractBlock;getStrongRedstonePower(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)I
      • emitsRedstonePower

        public boolean emitsRedstonePower​(BlockState state)
        覆盖:
        emitsRedstonePower 在类中 AbstractBlock
        Mappings:
        Namespace Name Mixin selector
        official e_ Lcjq;e_(Lcjr;)Z
        intermediary method_9506 Lnet/minecraft/class_4970;method_9506(Lnet/minecraft/class_2680;)Z
        named emitsRedstonePower Lnet/minecraft/block/AbstractBlock;emitsRedstonePower(Lnet/minecraft/block/BlockState;)Z
      • 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
      • onEntityCollision

        public void onEntityCollision​(BlockState state,
                                      World world,
                                      BlockPos pos,
                                      Entity entity)
        覆盖:
        onEntityCollision 在类中 AbstractBlock
        Mappings:
        Namespace Name Mixin selector
        official a Lcjq;a(Lcjr;Lbvr;Lgb;Lasl;)V
        intermediary method_9548 Lnet/minecraft/class_4970;method_9548(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;)V
        named onEntityCollision Lnet/minecraft/block/AbstractBlock;onEntityCollision(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;)V
      • tryPowerWithProjectiles

        private void tryPowerWithProjectiles​(BlockState state,
                                             World world,
                                             BlockPos pos)
        Mappings:
        Namespace Name Mixin selector
        official e Lbyy;e(Lcjr;Lbvr;Lgb;)V
        intermediary method_9715 Lnet/minecraft/class_2269;method_9715(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V
        named tryPowerWithProjectiles Lnet/minecraft/block/AbstractButtonBlock;tryPowerWithProjectiles(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
      • updateNeighbors

        private void updateNeighbors​(BlockState state,
                                     World world,
                                     BlockPos pos)
        Mappings:
        Namespace Name Mixin selector
        official f Lbyy;f(Lcjr;Lbvr;Lgb;)V
        intermediary method_9713 Lnet/minecraft/class_2269;method_9713(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V
        named updateNeighbors Lnet/minecraft/block/AbstractButtonBlock;updateNeighbors(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)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