接口 SidedInventory

    • 方法详细资料

      • getAvailableSlots

        int[] getAvailableSlots​(Direction side)
        Gets the available slot positions that are reachable from a given side.
        Mappings:
        Namespace Name Mixin selector
        official a Larp;a(Lgg;)[I
        intermediary method_5494 Lnet/minecraft/class_1278;method_5494(Lnet/minecraft/class_2350;)[I
        named getAvailableSlots Lnet/minecraft/inventory/SidedInventory;getAvailableSlots(Lnet/minecraft/util/math/Direction;)[I
      • canInsert

        boolean canInsert​(int slot,
                          ItemStack stack,
                          @Nullable
                          @Nullable Direction dir)
        Determines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.
        Mappings:
        Namespace Name Mixin selector
        official a Larp;a(ILbpr;Lgg;)Z
        intermediary method_5492 Lnet/minecraft/class_1278;method_5492(ILnet/minecraft/class_1799;Lnet/minecraft/class_2350;)Z
        named canInsert Lnet/minecraft/inventory/SidedInventory;canInsert(ILnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/Direction;)Z
      • canExtract

        boolean canExtract​(int slot,
                           ItemStack stack,
                           Direction dir)
        Determines whether the given stack can be removed from this inventory at the specified slot position from the given direction.
        Mappings:
        Namespace Name Mixin selector
        official b Larp;b(ILbpr;Lgg;)Z
        intermediary method_5493 Lnet/minecraft/class_1278;method_5493(ILnet/minecraft/class_1799;Lnet/minecraft/class_2350;)Z
        named canExtract Lnet/minecraft/inventory/SidedInventory;canExtract(ILnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/Direction;)Z