类 AnvilBlock

  • 所有已实现的接口:
    LandingBlock, ItemConvertible

    public class AnvilBlock
    extends FallingBlock
    Mappings:
    Namespace Name
    official bxr
    intermediary net/minecraft/class_2199
    named net/minecraft/block/AnvilBlock
    • 字段详细资料

      • FACING

        public static final DirectionProperty FACING
        Mappings:
        Namespace Name Mixin selector
        official a Lbxr;a:Lckl;
        intermediary field_9883 Lnet/minecraft/class_2199;field_9883:Lnet/minecraft/class_2753;
        named FACING Lnet/minecraft/block/AnvilBlock;FACING:Lnet/minecraft/state/property/DirectionProperty;
      • BASE_SHAPE

        private static final VoxelShape BASE_SHAPE
        Mappings:
        Namespace Name Mixin selector
        official b Lbxr;b:Ldmt;
        intermediary field_9882 Lnet/minecraft/class_2199;field_9882:Lnet/minecraft/class_265;
        named BASE_SHAPE Lnet/minecraft/block/AnvilBlock;BASE_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
      • X_STEP_SHAPE

        private static final VoxelShape X_STEP_SHAPE
        Mappings:
        Namespace Name Mixin selector
        official c Lbxr;c:Ldmt;
        intermediary field_9885 Lnet/minecraft/class_2199;field_9885:Lnet/minecraft/class_265;
        named X_STEP_SHAPE Lnet/minecraft/block/AnvilBlock;X_STEP_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
      • X_STEM_SHAPE

        private static final VoxelShape X_STEM_SHAPE
        Mappings:
        Namespace Name Mixin selector
        official d Lbxr;d:Ldmt;
        intermediary field_9888 Lnet/minecraft/class_2199;field_9888:Lnet/minecraft/class_265;
        named X_STEM_SHAPE Lnet/minecraft/block/AnvilBlock;X_STEM_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
      • X_FACE_SHAPE

        private static final VoxelShape X_FACE_SHAPE
        Mappings:
        Namespace Name Mixin selector
        official e Lbxr;e:Ldmt;
        intermediary field_9884 Lnet/minecraft/class_2199;field_9884:Lnet/minecraft/class_265;
        named X_FACE_SHAPE Lnet/minecraft/block/AnvilBlock;X_FACE_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
      • Z_STEP_SHAPE

        private static final VoxelShape Z_STEP_SHAPE
        Mappings:
        Namespace Name Mixin selector
        official f Lbxr;f:Ldmt;
        intermediary field_9891 Lnet/minecraft/class_2199;field_9891:Lnet/minecraft/class_265;
        named Z_STEP_SHAPE Lnet/minecraft/block/AnvilBlock;Z_STEP_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
      • Z_STEM_SHAPE

        private static final VoxelShape Z_STEM_SHAPE
        Mappings:
        Namespace Name Mixin selector
        official g Lbxr;g:Ldmt;
        intermediary field_9889 Lnet/minecraft/class_2199;field_9889:Lnet/minecraft/class_265;
        named Z_STEM_SHAPE Lnet/minecraft/block/AnvilBlock;Z_STEM_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
      • Z_FACE_SHAPE

        private static final VoxelShape Z_FACE_SHAPE
        Mappings:
        Namespace Name Mixin selector
        official h Lbxr;h:Ldmt;
        intermediary field_9886 Lnet/minecraft/class_2199;field_9886:Lnet/minecraft/class_265;
        named Z_FACE_SHAPE Lnet/minecraft/block/AnvilBlock;Z_FACE_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
      • X_AXIS_SHAPE

        private static final VoxelShape X_AXIS_SHAPE
        Mappings:
        Namespace Name Mixin selector
        official i Lbxr;i:Ldmt;
        intermediary field_9887 Lnet/minecraft/class_2199;field_9887:Lnet/minecraft/class_265;
        named X_AXIS_SHAPE Lnet/minecraft/block/AnvilBlock;X_AXIS_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
      • Z_AXIS_SHAPE

        private static final VoxelShape Z_AXIS_SHAPE
        Mappings:
        Namespace Name Mixin selector
        official j Lbxr;j:Ldmt;
        intermediary field_9892 Lnet/minecraft/class_2199;field_9892:Lnet/minecraft/class_265;
        named Z_AXIS_SHAPE Lnet/minecraft/block/AnvilBlock;Z_AXIS_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
      • TITLE

        private static final Text TITLE
        Mappings:
        Namespace Name Mixin selector
        official k Lbxr;k:Lon;
        intermediary field_17349 Lnet/minecraft/class_2199;field_17349:Lnet/minecraft/class_2561;
        named TITLE Lnet/minecraft/block/AnvilBlock;TITLE:Lnet/minecraft/text/Text;
      • FALLING_BLOCK_ENTITY_DAMAGE_MULTIPLIER

        private static final float FALLING_BLOCK_ENTITY_DAMAGE_MULTIPLIER
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official l Lbxr;l:F
        intermediary field_30993 Lnet/minecraft/class_2199;field_30993:F
        named FALLING_BLOCK_ENTITY_DAMAGE_MULTIPLIER Lnet/minecraft/block/AnvilBlock;FALLING_BLOCK_ENTITY_DAMAGE_MULTIPLIER:F
      • FALLING_BLOCK_ENTITY_MAX_DAMAGE

        private static final int FALLING_BLOCK_ENTITY_MAX_DAMAGE
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official m Lbxr;m:I
        intermediary field_30994 Lnet/minecraft/class_2199;field_30994:I
        named FALLING_BLOCK_ENTITY_MAX_DAMAGE Lnet/minecraft/block/AnvilBlock;FALLING_BLOCK_ENTITY_MAX_DAMAGE:I
    • 构造器详细资料

      • AnvilBlock

        public AnvilBlock​(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
    • 方法详细资料

      • 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;
      • 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;
      • createScreenHandlerFactory

        @Nullable
        public @Nullable NamedScreenHandlerFactory createScreenHandlerFactory​(BlockState state,
                                                                              World world,
                                                                              BlockPos pos)
        覆盖:
        createScreenHandlerFactory 在类中 AbstractBlock
        Mappings:
        Namespace Name Mixin selector
        official b Lcjq;b(Lcjr;Lbvr;Lgb;)Larj;
        intermediary method_17454 Lnet/minecraft/class_4970;method_17454(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Lnet/minecraft/class_3908;
        named createScreenHandlerFactory Lnet/minecraft/block/AbstractBlock;createScreenHandlerFactory(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/screen/NamedScreenHandlerFactory;
      • 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;
      • configureFallingBlockEntity

        protected void configureFallingBlockEntity​(FallingBlockEntity entity)
        覆盖:
        configureFallingBlockEntity 在类中 FallingBlock
        Mappings:
        Namespace Name Mixin selector
        official a Lcba;a(Lbgd;)V
        intermediary method_10132 Lnet/minecraft/class_2346;method_10132(Lnet/minecraft/class_1540;)V
        named configureFallingBlockEntity Lnet/minecraft/block/FallingBlock;configureFallingBlockEntity(Lnet/minecraft/entity/FallingBlockEntity;)V
      • onLanding

        public void onLanding​(World world,
                              BlockPos pos,
                              BlockState fallingBlockState,
                              BlockState currentStateInPos,
                              FallingBlockEntity fallingBlockEntity)
        Mappings:
        Namespace Name Mixin selector
        official a Lcaz;a(Lbvr;Lgb;Lcjr;Lcjr;Lbgd;)V
        intermediary method_10127 Lnet/minecraft/class_5688;method_10127(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;Lnet/minecraft/class_1540;)V
        named onLanding Lnet/minecraft/block/LandingBlock;onLanding(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/FallingBlockEntity;)V
      • onDestroyedOnLanding

        public void onDestroyedOnLanding​(World world,
                                         BlockPos pos,
                                         FallingBlockEntity fallingBlockEntity)
        Mappings:
        Namespace Name Mixin selector
        official a Lcaz;a(Lbvr;Lgb;Lbgd;)V
        intermediary method_10129 Lnet/minecraft/class_5688;method_10129(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1540;)V
        named onDestroyedOnLanding Lnet/minecraft/block/LandingBlock;onDestroyedOnLanding(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/FallingBlockEntity;)V
      • getDamageSource

        public DamageSource getDamageSource()
        Mappings:
        Namespace Name Mixin selector
        official b Lcaz;b()Larv;
        intermediary method_32898 Lnet/minecraft/class_5688;method_32898()Lnet/minecraft/class_1282;
        named getDamageSource Lnet/minecraft/block/LandingBlock;getDamageSource()Lnet/minecraft/entity/damage/DamageSource;
      • getLandingState

        @Nullable
        public static @Nullable BlockState getLandingState​(BlockState fallingState)
        Mappings:
        Namespace Name Mixin selector
        official e Lbxr;e(Lcjr;)Lcjr;
        intermediary method_9346 Lnet/minecraft/class_2199;method_9346(Lnet/minecraft/class_2680;)Lnet/minecraft/class_2680;
        named getLandingState Lnet/minecraft/block/AnvilBlock;getLandingState(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockState;
      • rotate

        public BlockState rotate​(BlockState state,
                                 BlockRotation rotation)
        Applies a block rotation to a block state.

        By default, this returns the provided block state.

        覆盖:
        rotate 在类中 AbstractBlock
        返回:
        the rotated block state
        Mappings:
        Namespace Name Mixin selector
        official a Lcjq;a(Lcjr;Lcek;)Lcjr;
        intermediary method_9598 Lnet/minecraft/class_4970;method_9598(Lnet/minecraft/class_2680;Lnet/minecraft/class_2470;)Lnet/minecraft/class_2680;
        named rotate Lnet/minecraft/block/AbstractBlock;rotate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/block/BlockState;
      • 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
      • canPathfindThrough

        public boolean canPathfindThrough​(BlockState state,
                                          BlockView world,
                                          BlockPos pos,
                                          NavigationType type)
        覆盖:
        canPathfindThrough 在类中 AbstractBlock
        Mappings:
        Namespace Name Mixin selector
        official a Lcjq;a(Lcjr;Lbuv;Lgb;Ldgb;)Z
        intermediary method_9516 Lnet/minecraft/class_4970;method_9516(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_10;)Z
        named canPathfindThrough Lnet/minecraft/block/AbstractBlock;canPathfindThrough(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/ai/pathing/NavigationType;)Z
      • getColor

        public int getColor​(BlockState state,
                            BlockView world,
                            BlockPos pos)
        覆盖:
        getColor 在类中 FallingBlock
        Mappings:
        Namespace Name Mixin selector
        official d Lcba;d(Lcjr;Lbuv;Lgb;)I
        intermediary method_10130 Lnet/minecraft/class_2346;method_10130(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)I
        named getColor Lnet/minecraft/block/FallingBlock;getColor(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)I