类 StructureBlock

    • 字段详细资料

      • MODE

        public static final EnumProperty<StructureBlockMode> MODE
        Mappings:
        Namespace Name Mixin selector
        official a Lcfr;a:Lckp;
        intermediary field_11586 Lnet/minecraft/class_2515;field_11586:Lnet/minecraft/class_2754;
        named MODE Lnet/minecraft/block/StructureBlock;MODE:Lnet/minecraft/state/property/EnumProperty;
    • 构造器详细资料

      • StructureBlock

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

      • createBlockEntity

        public BlockEntity createBlockEntity​(BlockPos pos,
                                             BlockState state)
        指定者:
        createBlockEntity 在接口中 BlockEntityProvider
        Mappings:
        Namespace Name Mixin selector
        official a Lcax;a(Lgb;Lcjr;)Lchp;
        intermediary method_10123 Lnet/minecraft/class_2343;method_10123(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Lnet/minecraft/class_2586;
        named createBlockEntity Lnet/minecraft/block/BlockEntityProvider;createBlockEntity(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/entity/BlockEntity;
      • 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;
      • onPlaced

        public void onPlaced​(World world,
                             BlockPos pos,
                             BlockState state,
                             @Nullable
                             @Nullable LivingEntity placer,
                             ItemStack itemStack)
        覆盖:
        onPlaced 在类中 Block
        Mappings:
        Namespace Name Mixin selector
        official a Lbyq;a(Lbvr;Lgb;Lcjr;Lasy;Lbpr;)V
        intermediary method_9567 Lnet/minecraft/class_2248;method_9567(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;)V
        named onPlaced Lnet/minecraft/block/Block;onPlaced(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;)V
      • getRenderType

        public BlockRenderType getRenderType​(BlockState state)
        覆盖:
        getRenderType 在类中 BlockWithEntity
        Mappings:
        Namespace Name Mixin selector
        official b_ Lcjq;b_(Lcjr;)Lced;
        intermediary method_9604 Lnet/minecraft/class_4970;method_9604(Lnet/minecraft/class_2680;)Lnet/minecraft/class_2464;
        named getRenderType Lnet/minecraft/block/AbstractBlock;getRenderType(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockRenderType;
      • 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
      • neighborUpdate

        public void neighborUpdate​(BlockState state,
                                   World world,
                                   BlockPos pos,
                                   Block block,
                                   BlockPos fromPos,
                                   boolean notify)
        覆盖:
        neighborUpdate 在类中 AbstractBlock
        Mappings:
        Namespace Name Mixin selector
        official a Lcjq;a(Lcjr;Lbvr;Lgb;Lbyq;Lgb;Z)V
        intermediary method_9612 Lnet/minecraft/class_4970;method_9612(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2248;Lnet/minecraft/class_2338;Z)V
        named neighborUpdate Lnet/minecraft/block/AbstractBlock;neighborUpdate(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;Lnet/minecraft/util/math/BlockPos;Z)V
      • doAction

        private void doAction​(ServerWorld world,
                              StructureBlockBlockEntity blockEntity)
        Mappings:
        Namespace Name Mixin selector
        official a Lcfr;a(Labj;Lcit;)V
        intermediary method_10703 Lnet/minecraft/class_2515;method_10703(Lnet/minecraft/class_3218;Lnet/minecraft/class_2633;)V
        named doAction Lnet/minecraft/block/StructureBlock;doAction(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/block/entity/StructureBlockBlockEntity;)V