类 HopperBlockEntity

    • 字段详细资料

      • field_31341

        public static final int field_31341
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official c Lcih;c:I
        intermediary field_31341 Lnet/minecraft/class_2614;field_31341:I
        named field_31341 Lnet/minecraft/block/entity/HopperBlockEntity;field_31341:I
      • field_31342

        public static final int field_31342
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official f Lcih;f:I
        intermediary field_31342 Lnet/minecraft/class_2614;field_31342:I
        named field_31342 Lnet/minecraft/block/entity/HopperBlockEntity;field_31342:I
      • inventory

        private DefaultedList<ItemStack> inventory
        Mappings:
        Namespace Name Mixin selector
        official i Lcih;i:Lgn;
        intermediary field_12024 Lnet/minecraft/class_2614;field_12024:Lnet/minecraft/class_2371;
        named inventory Lnet/minecraft/block/entity/HopperBlockEntity;inventory:Lnet/minecraft/util/collection/DefaultedList;
      • transferCooldown

        private int transferCooldown
        Mappings:
        Namespace Name Mixin selector
        official j Lcih;j:I
        intermediary field_12023 Lnet/minecraft/class_2614;field_12023:I
        named transferCooldown Lnet/minecraft/block/entity/HopperBlockEntity;transferCooldown:I
      • lastTickTime

        private long lastTickTime
        Mappings:
        Namespace Name Mixin selector
        official k Lcih;k:J
        intermediary field_12022 Lnet/minecraft/class_2614;field_12022:J
        named lastTickTime Lnet/minecraft/block/entity/HopperBlockEntity;lastTickTime:J
    • 构造器详细资料

      • HopperBlockEntity

        public HopperBlockEntity​(BlockPos pos,
                                 BlockState state)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lcih;<init>(Lgb;Lcjr;)V
        intermediary <init> Lnet/minecraft/class_2614;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
        named <init> Lnet/minecraft/block/entity/HopperBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
    • 方法详细资料

      • readNbt

        public void readNbt​(CompoundTag nbt)
        覆盖:
        readNbt 在类中 LockableContainerBlockEntity
        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 在类中 LockableContainerBlockEntity
        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;
      • size

        public int size()
        指定者:
        size 在接口中 Inventory
        Mappings:
        Namespace Name Mixin selector
        official ab_ Laqz;ab_()I
        intermediary method_5439 Lnet/minecraft/class_1263;method_5439()I
        named size Lnet/minecraft/inventory/Inventory;size()I
      • removeStack

        public ItemStack removeStack​(int slot,
                                     int amount)
        Removes a specific number of items from the given slot.
        指定者:
        removeStack 在接口中 Inventory
        覆盖:
        removeStack 在类中 LootableContainerBlockEntity
        返回:
        the removed items as a stack
        Mappings:
        Namespace Name Mixin selector
        official a Laqz;a(II)Lbpr;
        intermediary method_5434 Lnet/minecraft/class_1263;method_5434(II)Lnet/minecraft/class_1799;
        named removeStack Lnet/minecraft/inventory/Inventory;removeStack(II)Lnet/minecraft/item/ItemStack;
      • setStack

        public void setStack​(int slot,
                             ItemStack stack)
        指定者:
        setStack 在接口中 Inventory
        覆盖:
        setStack 在类中 LootableContainerBlockEntity
        Mappings:
        Namespace Name Mixin selector
        official a Laqz;a(ILbpr;)V
        intermediary method_5447 Lnet/minecraft/class_1263;method_5447(ILnet/minecraft/class_1799;)V
        named setStack Lnet/minecraft/inventory/Inventory;setStack(ILnet/minecraft/item/ItemStack;)V
      • getContainerName

        protected Text getContainerName()
        指定者:
        getContainerName 在类中 LockableContainerBlockEntity
        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;
      • serverTick

        public static void serverTick​(World world,
                                      BlockPos pos,
                                      BlockState state,
                                      HopperBlockEntity blockEntity)
        Mappings:
        Namespace Name Mixin selector
        official a Lcih;a(Lbvr;Lgb;Lcjr;Lcih;)V
        intermediary method_31692 Lnet/minecraft/class_2614;method_31692(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2614;)V
        named serverTick Lnet/minecraft/block/entity/HopperBlockEntity;serverTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/HopperBlockEntity;)V
      • insertAndExtract

        private static boolean insertAndExtract​(World world,
                                                BlockPos pos,
                                                BlockState state,
                                                HopperBlockEntity blockEntity,
                                                BooleanSupplier booleanSupplier)
        Mappings:
        Namespace Name Mixin selector
        official a Lcih;a(Lbvr;Lgb;Lcjr;Lcih;Ljava/util/function/BooleanSupplier;)Z
        intermediary method_11243 Lnet/minecraft/class_2614;method_11243(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2614;Ljava/util/function/BooleanSupplier;)Z
        named insertAndExtract Lnet/minecraft/block/entity/HopperBlockEntity;insertAndExtract(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/HopperBlockEntity;Ljava/util/function/BooleanSupplier;)Z
      • isFull

        private boolean isFull()
        Mappings:
        Namespace Name Mixin selector
        official i Lcih;i()Z
        intermediary method_11256 Lnet/minecraft/class_2614;method_11256()Z
        named isFull Lnet/minecraft/block/entity/HopperBlockEntity;isFull()Z
      • insert

        private static boolean insert​(World world,
                                      BlockPos pos,
                                      BlockState state,
                                      Inventory inventory)
        Mappings:
        Namespace Name Mixin selector
        official a Lcih;a(Lbvr;Lgb;Lcjr;Laqz;)Z
        intermediary method_11246 Lnet/minecraft/class_2614;method_11246(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_1263;)Z
        named insert Lnet/minecraft/block/entity/HopperBlockEntity;insert(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/inventory/Inventory;)Z
      • getAvailableSlots

        private static IntStream getAvailableSlots​(Inventory inventory,
                                                   Direction side)
        Mappings:
        Namespace Name Mixin selector
        official a Lcih;a(Laqz;Lgg;)Ljava/util/stream/IntStream;
        intermediary method_17767 Lnet/minecraft/class_2614;method_17767(Lnet/minecraft/class_1263;Lnet/minecraft/class_2350;)Ljava/util/stream/IntStream;
        named getAvailableSlots Lnet/minecraft/block/entity/HopperBlockEntity;getAvailableSlots(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/util/math/Direction;)Ljava/util/stream/IntStream;
      • isInventoryFull

        private static boolean isInventoryFull​(Inventory inventory,
                                               Direction direction)
        Mappings:
        Namespace Name Mixin selector
        official b Lcih;b(Laqz;Lgg;)Z
        intermediary method_11258 Lnet/minecraft/class_2614;method_11258(Lnet/minecraft/class_1263;Lnet/minecraft/class_2350;)Z
        named isInventoryFull Lnet/minecraft/block/entity/HopperBlockEntity;isInventoryFull(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/util/math/Direction;)Z
      • isInventoryEmpty

        private static boolean isInventoryEmpty​(Inventory inv,
                                                Direction facing)
        Mappings:
        Namespace Name Mixin selector
        official c Lcih;c(Laqz;Lgg;)Z
        intermediary method_11257 Lnet/minecraft/class_2614;method_11257(Lnet/minecraft/class_1263;Lnet/minecraft/class_2350;)Z
        named isInventoryEmpty Lnet/minecraft/block/entity/HopperBlockEntity;isInventoryEmpty(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/util/math/Direction;)Z
      • extract

        public static boolean extract​(World world,
                                      Hopper hopper)
        Mappings:
        Namespace Name Mixin selector
        official a Lcih;a(Lbvr;Lcig;)Z
        intermediary method_11241 Lnet/minecraft/class_2614;method_11241(Lnet/minecraft/class_1937;Lnet/minecraft/class_2615;)Z
        named extract Lnet/minecraft/block/entity/HopperBlockEntity;extract(Lnet/minecraft/world/World;Lnet/minecraft/block/entity/Hopper;)Z
      • extract

        private static boolean extract​(Hopper hopper,
                                       Inventory inventory,
                                       int slot,
                                       Direction side)
        Mappings:
        Namespace Name Mixin selector
        official a Lcih;a(Lcig;Laqz;ILgg;)Z
        intermediary method_11261 Lnet/minecraft/class_2614;method_11261(Lnet/minecraft/class_2615;Lnet/minecraft/class_1263;ILnet/minecraft/class_2350;)Z
        named extract Lnet/minecraft/block/entity/HopperBlockEntity;extract(Lnet/minecraft/block/entity/Hopper;Lnet/minecraft/inventory/Inventory;ILnet/minecraft/util/math/Direction;)Z
      • extract

        public static boolean extract​(Inventory inventory,
                                      ItemEntity itemEntity)
        Mappings:
        Namespace Name Mixin selector
        official a Lcih;a(Laqz;Lbge;)Z
        intermediary method_11247 Lnet/minecraft/class_2614;method_11247(Lnet/minecraft/class_1263;Lnet/minecraft/class_1542;)Z
        named extract Lnet/minecraft/block/entity/HopperBlockEntity;extract(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/entity/ItemEntity;)Z
      • transfer

        public static ItemStack transfer​(@Nullable
                                         @Nullable Inventory from,
                                         Inventory to,
                                         ItemStack stack,
                                         @Nullable
                                         @Nullable Direction side)
        Mappings:
        Namespace Name Mixin selector
        official a Lcih;a(Laqz;Laqz;Lbpr;Lgg;)Lbpr;
        intermediary method_11260 Lnet/minecraft/class_2614;method_11260(Lnet/minecraft/class_1263;Lnet/minecraft/class_1263;Lnet/minecraft/class_1799;Lnet/minecraft/class_2350;)Lnet/minecraft/class_1799;
        named transfer Lnet/minecraft/block/entity/HopperBlockEntity;transfer(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/inventory/Inventory;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/Direction;)Lnet/minecraft/item/ItemStack;
      • canInsert

        private static boolean canInsert​(Inventory inventory,
                                         ItemStack stack,
                                         int slot,
                                         @Nullable
                                         @Nullable Direction side)
        Mappings:
        Namespace Name Mixin selector
        official a Lcih;a(Laqz;Lbpr;ILgg;)Z
        intermediary method_11244 Lnet/minecraft/class_2614;method_11244(Lnet/minecraft/class_1263;Lnet/minecraft/class_1799;ILnet/minecraft/class_2350;)Z
        named canInsert Lnet/minecraft/block/entity/HopperBlockEntity;canInsert(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/item/ItemStack;ILnet/minecraft/util/math/Direction;)Z
      • canExtract

        private static boolean canExtract​(Inventory inv,
                                          ItemStack stack,
                                          int slot,
                                          Direction facing)
        Mappings:
        Namespace Name Mixin selector
        official b Lcih;b(Laqz;Lbpr;ILgg;)Z
        intermediary method_11252 Lnet/minecraft/class_2614;method_11252(Lnet/minecraft/class_1263;Lnet/minecraft/class_1799;ILnet/minecraft/class_2350;)Z
        named canExtract Lnet/minecraft/block/entity/HopperBlockEntity;canExtract(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/item/ItemStack;ILnet/minecraft/util/math/Direction;)Z
      • transfer

        private static ItemStack transfer​(@Nullable
                                          @Nullable Inventory from,
                                          Inventory to,
                                          ItemStack stack,
                                          int slot,
                                          @Nullable
                                          @Nullable Direction direction)
        Mappings:
        Namespace Name Mixin selector
        official a Lcih;a(Laqz;Laqz;Lbpr;ILgg;)Lbpr;
        intermediary method_11253 Lnet/minecraft/class_2614;method_11253(Lnet/minecraft/class_1263;Lnet/minecraft/class_1263;Lnet/minecraft/class_1799;ILnet/minecraft/class_2350;)Lnet/minecraft/class_1799;
        named transfer Lnet/minecraft/block/entity/HopperBlockEntity;transfer(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/inventory/Inventory;Lnet/minecraft/item/ItemStack;ILnet/minecraft/util/math/Direction;)Lnet/minecraft/item/ItemStack;
      • getOutputInventory

        @Nullable
        private static @Nullable Inventory getOutputInventory​(World world,
                                                              BlockPos pos,
                                                              BlockState state)
        Mappings:
        Namespace Name Mixin selector
        official b Lcih;b(Lbvr;Lgb;Lcjr;)Laqz;
        intermediary method_11255 Lnet/minecraft/class_2614;method_11255(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Lnet/minecraft/class_1263;
        named getOutputInventory Lnet/minecraft/block/entity/HopperBlockEntity;getOutputInventory(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/inventory/Inventory;
      • getInputInventory

        @Nullable
        private static @Nullable Inventory getInputInventory​(World world,
                                                             Hopper hopper)
        Mappings:
        Namespace Name Mixin selector
        official c Lcih;c(Lbvr;Lcig;)Laqz;
        intermediary method_11248 Lnet/minecraft/class_2614;method_11248(Lnet/minecraft/class_1937;Lnet/minecraft/class_2615;)Lnet/minecraft/class_1263;
        named getInputInventory Lnet/minecraft/block/entity/HopperBlockEntity;getInputInventory(Lnet/minecraft/world/World;Lnet/minecraft/block/entity/Hopper;)Lnet/minecraft/inventory/Inventory;
      • getInputItemEntities

        public static List<ItemEntity> getInputItemEntities​(World world,
                                                            Hopper hopper)
        Mappings:
        Namespace Name Mixin selector
        official b Lcih;b(Lbvr;Lcig;)Ljava/util/List;
        intermediary method_11237 Lnet/minecraft/class_2614;method_11237(Lnet/minecraft/class_1937;Lnet/minecraft/class_2615;)Ljava/util/List;
        named getInputItemEntities Lnet/minecraft/block/entity/HopperBlockEntity;getInputItemEntities(Lnet/minecraft/world/World;Lnet/minecraft/block/entity/Hopper;)Ljava/util/List;
      • getInventoryAt

        @Nullable
        public static @Nullable Inventory getInventoryAt​(World world,
                                                         BlockPos pos)
        Mappings:
        Namespace Name Mixin selector
        official a Lcih;a(Lbvr;Lgb;)Laqz;
        intermediary method_11250 Lnet/minecraft/class_2614;method_11250(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Lnet/minecraft/class_1263;
        named getInventoryAt Lnet/minecraft/block/entity/HopperBlockEntity;getInventoryAt(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/inventory/Inventory;
      • getInventoryAt

        @Nullable
        private static @Nullable Inventory getInventoryAt​(World world,
                                                          double x,
                                                          double y,
                                                          double z)
        Mappings:
        Namespace Name Mixin selector
        official a Lcih;a(Lbvr;DDD)Laqz;
        intermediary method_11251 Lnet/minecraft/class_2614;method_11251(Lnet/minecraft/class_1937;DDD)Lnet/minecraft/class_1263;
        named getInventoryAt Lnet/minecraft/block/entity/HopperBlockEntity;getInventoryAt(Lnet/minecraft/world/World;DDD)Lnet/minecraft/inventory/Inventory;
      • canMergeItems

        private static boolean canMergeItems​(ItemStack first,
                                             ItemStack second)
        Mappings:
        Namespace Name Mixin selector
        official a Lcih;a(Lbpr;Lbpr;)Z
        intermediary method_11254 Lnet/minecraft/class_2614;method_11254(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Z
        named canMergeItems Lnet/minecraft/block/entity/HopperBlockEntity;canMergeItems(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Z
      • getHopperX

        public double getHopperX()
        指定者:
        getHopperX 在接口中 Hopper
        Mappings:
        Namespace Name Mixin selector
        official w Lcig;w()D
        intermediary method_11266 Lnet/minecraft/class_2615;method_11266()D
        named getHopperX Lnet/minecraft/block/entity/Hopper;getHopperX()D
      • getHopperY

        public double getHopperY()
        指定者:
        getHopperY 在接口中 Hopper
        Mappings:
        Namespace Name Mixin selector
        official y Lcig;y()D
        intermediary method_11264 Lnet/minecraft/class_2615;method_11264()D
        named getHopperY Lnet/minecraft/block/entity/Hopper;getHopperY()D
      • getHopperZ

        public double getHopperZ()
        指定者:
        getHopperZ 在接口中 Hopper
        Mappings:
        Namespace Name Mixin selector
        official z Lcig;z()D
        intermediary method_11265 Lnet/minecraft/class_2615;method_11265()D
        named getHopperZ Lnet/minecraft/block/entity/Hopper;getHopperZ()D
      • setCooldown

        private void setCooldown​(int cooldown)
        Mappings:
        Namespace Name Mixin selector
        official c Lcih;c(I)V
        intermediary method_11238 Lnet/minecraft/class_2614;method_11238(I)V
        named setCooldown Lnet/minecraft/block/entity/HopperBlockEntity;setCooldown(I)V
      • needsCooldown

        private boolean needsCooldown()
        Mappings:
        Namespace Name Mixin selector
        official j Lcih;j()Z
        intermediary method_11239 Lnet/minecraft/class_2614;method_11239()Z
        named needsCooldown Lnet/minecraft/block/entity/HopperBlockEntity;needsCooldown()Z
      • isDisabled

        private boolean isDisabled()
        Mappings:
        Namespace Name Mixin selector
        official s Lcih;s()Z
        intermediary method_11242 Lnet/minecraft/class_2614;method_11242()Z
        named isDisabled Lnet/minecraft/block/entity/HopperBlockEntity;isDisabled()Z
      • getInvStackList

        protected DefaultedList<ItemStack> getInvStackList()
        指定者:
        getInvStackList 在类中 LootableContainerBlockEntity
        Mappings:
        Namespace Name Mixin selector
        official f Lcim;f()Lgn;
        intermediary method_11282 Lnet/minecraft/class_2621;method_11282()Lnet/minecraft/class_2371;
        named getInvStackList Lnet/minecraft/block/entity/LootableContainerBlockEntity;getInvStackList()Lnet/minecraft/util/collection/DefaultedList;
      • setInvStackList

        protected void setInvStackList​(DefaultedList<ItemStack> list)
        指定者:
        setInvStackList 在类中 LootableContainerBlockEntity
        Mappings:
        Namespace Name Mixin selector
        official a Lcim;a(Lgn;)V
        intermediary method_11281 Lnet/minecraft/class_2621;method_11281(Lnet/minecraft/class_2371;)V
        named setInvStackList Lnet/minecraft/block/entity/LootableContainerBlockEntity;setInvStackList(Lnet/minecraft/util/collection/DefaultedList;)V
      • onEntityCollided

        public static void onEntityCollided​(World world,
                                            BlockPos pos,
                                            BlockState state,
                                            Entity entity,
                                            HopperBlockEntity blockEntity)
        Mappings:
        Namespace Name Mixin selector
        official a Lcih;a(Lbvr;Lgb;Lcjr;Lasl;Lcih;)V
        intermediary method_11236 Lnet/minecraft/class_2614;method_11236(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_1297;Lnet/minecraft/class_2614;)V
        named onEntityCollided Lnet/minecraft/block/entity/HopperBlockEntity;onEntityCollided(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/Entity;Lnet/minecraft/block/entity/HopperBlockEntity;)V
      • createScreenHandler

        protected ScreenHandler createScreenHandler​(int syncId,
                                                    PlayerInventory playerInventory)
        指定者:
        createScreenHandler 在类中 LockableContainerBlockEntity
        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;