类 LockableContainerBlockEntity

    • 字段详细资料

      • lock

        private ContainerLock lock
        Mappings:
        Namespace Name Mixin selector
        official b Lchj;b:Lari;
        intermediary field_12045 Lnet/minecraft/class_2624;field_12045:Lnet/minecraft/class_1273;
        named lock Lnet/minecraft/block/entity/LockableContainerBlockEntity;lock:Lnet/minecraft/inventory/ContainerLock;
      • customName

        private Text customName
        Mappings:
        Namespace Name Mixin selector
        official c Lchj;c:Lon;
        intermediary field_17376 Lnet/minecraft/class_2624;field_17376:Lnet/minecraft/class_2561;
        named customName Lnet/minecraft/block/entity/LockableContainerBlockEntity;customName:Lnet/minecraft/text/Text;
    • 构造器详细资料

      • LockableContainerBlockEntity

        protected LockableContainerBlockEntity​(BlockEntityType<?> type,
                                               BlockPos pos,
                                               BlockState state)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lchp;<init>(Lchr;Lgb;Lcjr;)V
        intermediary <init> Lnet/minecraft/class_2586;<init>(Lnet/minecraft/class_2591;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
        named <init> Lnet/minecraft/block/entity/BlockEntity;<init>(Lnet/minecraft/block/entity/BlockEntityType;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
    • 方法详细资料

      • readNbt

        public void readNbt​(CompoundTag nbt)
        覆盖:
        readNbt 在类中 BlockEntity
        Mappings:
        Namespace Name Mixin selector
        official a Lchp;a(Lmv;)V
        intermediary method_11014 Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)V
        named readNbt Lnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/CompoundTag;)V
      • writeNbt

        public CompoundTag writeNbt​(CompoundTag nbt)
        覆盖:
        writeNbt 在类中 BlockEntity
        Mappings:
        Namespace Name Mixin selector
        official b Lchp;b(Lmv;)Lmv;
        intermediary method_11007 Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;
        named writeNbt Lnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/nbt/CompoundTag;
      • setCustomName

        public void setCustomName​(Text customName)
        Mappings:
        Namespace Name Mixin selector
        official a Lchj;a(Lon;)V
        intermediary method_17488 Lnet/minecraft/class_2624;method_17488(Lnet/minecraft/class_2561;)V
        named setCustomName Lnet/minecraft/block/entity/LockableContainerBlockEntity;setCustomName(Lnet/minecraft/text/Text;)V
      • getName

        public Text getName()
        指定者:
        getName 在接口中 Nameable
        Mappings:
        Namespace Name Mixin selector
        official R Lark;R()Lon;
        intermediary method_5477 Lnet/minecraft/class_1275;method_5477()Lnet/minecraft/class_2561;
        named getName Lnet/minecraft/util/Nameable;getName()Lnet/minecraft/text/Text;
      • getDisplayName

        public Text getDisplayName()
        Returns the title of this screen handler; will be a part of the open screen packet sent to the client.
        指定者:
        getDisplayName 在接口中 Nameable
        指定者:
        getDisplayName 在接口中 NamedScreenHandlerFactory
        Mappings:
        Namespace Name Mixin selector
        official d Larj;d()Lon;
        intermediary method_5476 Lnet/minecraft/class_3908;method_5476()Lnet/minecraft/class_2561;
        named getDisplayName Lnet/minecraft/screen/NamedScreenHandlerFactory;getDisplayName()Lnet/minecraft/text/Text;
      • getCustomName

        @Nullable
        public @Nullable Text getCustomName()
        指定者:
        getCustomName 在接口中 Nameable
        Mappings:
        Namespace Name Mixin selector
        official T Lark;T()Lon;
        intermediary method_5797 Lnet/minecraft/class_1275;method_5797()Lnet/minecraft/class_2561;
        named getCustomName Lnet/minecraft/util/Nameable;getCustomName()Lnet/minecraft/text/Text;
      • getContainerName

        protected abstract Text getContainerName()
        Mappings:
        Namespace Name Mixin selector
        official g Lchj;g()Lon;
        intermediary method_17823 Lnet/minecraft/class_2624;method_17823()Lnet/minecraft/class_2561;
        named getContainerName Lnet/minecraft/block/entity/LockableContainerBlockEntity;getContainerName()Lnet/minecraft/text/Text;
      • checkUnlocked

        public boolean checkUnlocked​(PlayerEntity player)
        Mappings:
        Namespace Name Mixin selector
        official d Lchj;d(Lbjf;)Z
        intermediary method_17489 Lnet/minecraft/class_2624;method_17489(Lnet/minecraft/class_1657;)Z
        named checkUnlocked Lnet/minecraft/block/entity/LockableContainerBlockEntity;checkUnlocked(Lnet/minecraft/entity/player/PlayerEntity;)Z
      • checkUnlocked

        public static boolean checkUnlocked​(PlayerEntity player,
                                            ContainerLock lock,
                                            Text containerName)
        Mappings:
        Namespace Name Mixin selector
        official a Lchj;a(Lbjf;Lari;Lon;)Z
        intermediary method_17487 Lnet/minecraft/class_2624;method_17487(Lnet/minecraft/class_1657;Lnet/minecraft/class_1273;Lnet/minecraft/class_2561;)Z
        named checkUnlocked Lnet/minecraft/block/entity/LockableContainerBlockEntity;checkUnlocked(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/inventory/ContainerLock;Lnet/minecraft/text/Text;)Z
      • createMenu

        @Nullable
        public @Nullable ScreenHandler createMenu​(int syncId,
                                                  PlayerInventory inv,
                                                  PlayerEntity player)
        指定者:
        createMenu 在接口中 ScreenHandlerFactory
        Mappings:
        Namespace Name Mixin selector
        official createMenu Lbmo;createMenu(ILbje;Lbjf;)Lbll;
        intermediary createMenu Lnet/minecraft/class_1270;createMenu(ILnet/minecraft/class_1661;Lnet/minecraft/class_1657;)Lnet/minecraft/class_1703;
        named createMenu Lnet/minecraft/screen/ScreenHandlerFactory;createMenu(ILnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/screen/ScreenHandler;
      • createScreenHandler

        protected abstract ScreenHandler createScreenHandler​(int syncId,
                                                             PlayerInventory playerInventory)
        Mappings:
        Namespace Name Mixin selector
        official a Lchj;a(ILbje;)Lbll;
        intermediary method_5465 Lnet/minecraft/class_2624;method_5465(ILnet/minecraft/class_1661;)Lnet/minecraft/class_1703;
        named createScreenHandler Lnet/minecraft/block/entity/LockableContainerBlockEntity;createScreenHandler(ILnet/minecraft/entity/player/PlayerInventory;)Lnet/minecraft/screen/ScreenHandler;