类 BlockEntity

    • 字段详细资料

      • LOGGER

        private static final Logger LOGGER
        Mappings:
        Namespace Name Mixin selector
        official b Lchp;b:Lorg/apache/logging/log4j/Logger;
        intermediary field_11868 Lnet/minecraft/class_2586;field_11868:Lorg/apache/logging/log4j/Logger;
        named LOGGER Lnet/minecraft/block/entity/BlockEntity;LOGGER:Lorg/apache/logging/log4j/Logger;
      • type

        private final BlockEntityType<?> type
        Mappings:
        Namespace Name Mixin selector
        official c Lchp;c:Lchr;
        intermediary field_11864 Lnet/minecraft/class_2586;field_11864:Lnet/minecraft/class_2591;
        named type Lnet/minecraft/block/entity/BlockEntity;type:Lnet/minecraft/block/entity/BlockEntityType;
      • world

        @Nullable
        protected @Nullable World world
        Mappings:
        Namespace Name Mixin selector
        official n Lchp;n:Lbvr;
        intermediary field_11863 Lnet/minecraft/class_2586;field_11863:Lnet/minecraft/class_1937;
        named world Lnet/minecraft/block/entity/BlockEntity;world:Lnet/minecraft/world/World;
      • pos

        protected final BlockPos pos
        Mappings:
        Namespace Name Mixin selector
        official o Lchp;o:Lgb;
        intermediary field_11867 Lnet/minecraft/class_2586;field_11867:Lnet/minecraft/class_2338;
        named pos Lnet/minecraft/block/entity/BlockEntity;pos:Lnet/minecraft/util/math/BlockPos;
      • removed

        protected boolean removed
        Mappings:
        Namespace Name Mixin selector
        official p Lchp;p:Z
        intermediary field_11865 Lnet/minecraft/class_2586;field_11865:Z
        named removed Lnet/minecraft/block/entity/BlockEntity;removed:Z
      • cachedState

        private BlockState cachedState
        Mappings:
        Namespace Name Mixin selector
        official d Lchp;d:Lcjr;
        intermediary field_11866 Lnet/minecraft/class_2586;field_11866:Lnet/minecraft/class_2680;
        named cachedState Lnet/minecraft/block/entity/BlockEntity;cachedState:Lnet/minecraft/block/BlockState;
    • 构造器详细资料

      • BlockEntity

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

      • getWorld

        @Nullable
        public @Nullable World getWorld()
        Mappings:
        Namespace Name Mixin selector
        official k Lchp;k()Lbvr;
        intermediary method_10997 Lnet/minecraft/class_2586;method_10997()Lnet/minecraft/class_1937;
        named getWorld Lnet/minecraft/block/entity/BlockEntity;getWorld()Lnet/minecraft/world/World;
      • setWorld

        public void setWorld​(World world)
        Mappings:
        Namespace Name Mixin selector
        official a Lchp;a(Lbvr;)V
        intermediary method_31662 Lnet/minecraft/class_2586;method_31662(Lnet/minecraft/class_1937;)V
        named setWorld Lnet/minecraft/block/entity/BlockEntity;setWorld(Lnet/minecraft/world/World;)V
      • hasWorld

        public boolean hasWorld()
        Mappings:
        Namespace Name Mixin selector
        official l Lchp;l()Z
        intermediary method_11002 Lnet/minecraft/class_2586;method_11002()Z
        named hasWorld Lnet/minecraft/block/entity/BlockEntity;hasWorld()Z
      • readNbt

        public void readNbt​(CompoundTag nbt)
        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)
        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;
      • writeIdentifyingData

        private CompoundTag writeIdentifyingData​(CompoundTag nbt)
        Mappings:
        Namespace Name Mixin selector
        official c Lchp;c(Lmv;)Lmv;
        intermediary method_10999 Lnet/minecraft/class_2586;method_10999(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;
        named writeIdentifyingData Lnet/minecraft/block/entity/BlockEntity;writeIdentifyingData(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/nbt/CompoundTag;
      • createFromNbt

        @Nullable
        public static @Nullable BlockEntity createFromNbt​(BlockPos pos,
                                                          BlockState state,
                                                          CompoundTag nbt)
        Mappings:
        Namespace Name Mixin selector
        official a Lchp;a(Lgb;Lcjr;Lmv;)Lchp;
        intermediary method_11005 Lnet/minecraft/class_2586;method_11005(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2487;)Lnet/minecraft/class_2586;
        named createFromNbt Lnet/minecraft/block/entity/BlockEntity;createFromNbt(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/block/entity/BlockEntity;
      • markDirty

        public void markDirty()
        Mappings:
        Namespace Name Mixin selector
        official Z_ Lchp;Z_()V
        intermediary method_5431 Lnet/minecraft/class_2586;method_5431()V
        named markDirty Lnet/minecraft/block/entity/BlockEntity;markDirty()V
      • markDirty

        protected static void markDirty​(World world,
                                        BlockPos pos,
                                        BlockState state)
        Mappings:
        Namespace Name Mixin selector
        official a Lchp;a(Lbvr;Lgb;Lcjr;)V
        intermediary method_31663 Lnet/minecraft/class_2586;method_31663(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
        named markDirty Lnet/minecraft/block/entity/BlockEntity;markDirty(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
      • getPos

        public BlockPos getPos()
        Mappings:
        Namespace Name Mixin selector
        official m Lchp;m()Lgb;
        intermediary method_11016 Lnet/minecraft/class_2586;method_11016()Lnet/minecraft/class_2338;
        named getPos Lnet/minecraft/block/entity/BlockEntity;getPos()Lnet/minecraft/util/math/BlockPos;
      • getCachedState

        public BlockState getCachedState()
        Mappings:
        Namespace Name Mixin selector
        official n Lchp;n()Lcjr;
        intermediary method_11010 Lnet/minecraft/class_2586;method_11010()Lnet/minecraft/class_2680;
        named getCachedState Lnet/minecraft/block/entity/BlockEntity;getCachedState()Lnet/minecraft/block/BlockState;
      • toUpdatePacket

        @Nullable
        public @Nullable BlockEntityUpdateS2CPacket toUpdatePacket()
        Mappings:
        Namespace Name Mixin selector
        official a Lchp;a()Lpt;
        intermediary method_16886 Lnet/minecraft/class_2586;method_16886()Lnet/minecraft/class_2622;
        named toUpdatePacket Lnet/minecraft/block/entity/BlockEntity;toUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;
      • toInitialChunkDataNbt

        public CompoundTag toInitialChunkDataNbt()
        Mappings:
        Namespace Name Mixin selector
        official b Lchp;b()Lmv;
        intermediary method_16887 Lnet/minecraft/class_2586;method_16887()Lnet/minecraft/class_2487;
        named toInitialChunkDataNbt Lnet/minecraft/block/entity/BlockEntity;toInitialChunkDataNbt()Lnet/minecraft/nbt/CompoundTag;
      • isRemoved

        public boolean isRemoved()
        Mappings:
        Namespace Name Mixin selector
        official o Lchp;o()Z
        intermediary method_11015 Lnet/minecraft/class_2586;method_11015()Z
        named isRemoved Lnet/minecraft/block/entity/BlockEntity;isRemoved()Z
      • markRemoved

        public void markRemoved()
        Mappings:
        Namespace Name Mixin selector
        official aq_ Lchp;aq_()V
        intermediary method_11012 Lnet/minecraft/class_2586;method_11012()V
        named markRemoved Lnet/minecraft/block/entity/BlockEntity;markRemoved()V
      • cancelRemoval

        public void cancelRemoval()
        Mappings:
        Namespace Name Mixin selector
        official p Lchp;p()V
        intermediary method_10996 Lnet/minecraft/class_2586;method_10996()V
        named cancelRemoval Lnet/minecraft/block/entity/BlockEntity;cancelRemoval()V
      • onSyncedBlockEvent

        public boolean onSyncedBlockEvent​(int type,
                                          int data)
        Mappings:
        Namespace Name Mixin selector
        official a_ Lchp;a_(II)Z
        intermediary method_11004 Lnet/minecraft/class_2586;method_11004(II)Z
        named onSyncedBlockEvent Lnet/minecraft/block/entity/BlockEntity;onSyncedBlockEvent(II)Z
      • populateCrashReport

        public void populateCrashReport​(CrashReportSection crashReportSection)
        Mappings:
        Namespace Name Mixin selector
        official a Lchp;a(Lr;)V
        intermediary method_11003 Lnet/minecraft/class_2586;method_11003(Lnet/minecraft/class_129;)V
        named populateCrashReport Lnet/minecraft/block/entity/BlockEntity;populateCrashReport(Lnet/minecraft/util/crash/CrashReportSection;)V
      • copyItemDataRequiresOperator

        public boolean copyItemDataRequiresOperator()
        Mappings:
        Namespace Name Mixin selector
        official q Lchp;q()Z
        intermediary method_11011 Lnet/minecraft/class_2586;method_11011()Z
        named copyItemDataRequiresOperator Lnet/minecraft/block/entity/BlockEntity;copyItemDataRequiresOperator()Z
      • getType

        public BlockEntityType<?> getType()
        Mappings:
        Namespace Name Mixin selector
        official r Lchp;r()Lchr;
        intermediary method_11017 Lnet/minecraft/class_2586;method_11017()Lnet/minecraft/class_2591;
        named getType Lnet/minecraft/block/entity/BlockEntity;getType()Lnet/minecraft/block/entity/BlockEntityType;
      • setCachedState

        @Deprecated
        public void setCachedState​(BlockState state)
        已过时。
        Mappings:
        Namespace Name Mixin selector
        official b Lchp;b(Lcjr;)V
        intermediary method_31664 Lnet/minecraft/class_2586;method_31664(Lnet/minecraft/class_2680;)V
        named setCachedState Lnet/minecraft/block/entity/BlockEntity;setCachedState(Lnet/minecraft/block/BlockState;)V