Class RangedWrapper

java.lang.Object
dev.latvian.mods.kubejs.item.RangedWrapper
All Implemented Interfaces:
InventoryKJS
Direct Known Subclasses:
PlayerMainInvWrapper

public class RangedWrapper extends Object implements InventoryKJS
  • Constructor Details

    • RangedWrapper

      public RangedWrapper(InventoryKJS compose, int minSlot, int maxSlotExclusive)
  • Method Details

    • kjs$isMutable

      public boolean kjs$isMutable()
      Specified by:
      kjs$isMutable in interface InventoryKJS
    • kjs$getSlots

      public int kjs$getSlots()
      Specified by:
      kjs$getSlots in interface InventoryKJS
    • kjs$getStackInSlot

      @NotNull public @NotNull net.minecraft.world.item.ItemStack kjs$getStackInSlot(int slot)
      Specified by:
      kjs$getStackInSlot in interface InventoryKJS
    • kjs$insertItem

      @NotNull public @NotNull net.minecraft.world.item.ItemStack kjs$insertItem(int slot, @NotNull @NotNull net.minecraft.world.item.ItemStack stack, boolean simulate)
      Specified by:
      kjs$insertItem in interface InventoryKJS
    • kjs$extractItem

      @NotNull public @NotNull net.minecraft.world.item.ItemStack kjs$extractItem(int slot, int amount, boolean simulate)
      Specified by:
      kjs$extractItem in interface InventoryKJS
    • kjs$setStackInSlot

      public void kjs$setStackInSlot(int slot, @NotNull @NotNull net.minecraft.world.item.ItemStack stack)
      Specified by:
      kjs$setStackInSlot in interface InventoryKJS
    • kjs$getSlotLimit

      public int kjs$getSlotLimit(int slot)
      Specified by:
      kjs$getSlotLimit in interface InventoryKJS
    • kjs$isItemValid

      public boolean kjs$isItemValid(int slot, @NotNull @NotNull net.minecraft.world.item.ItemStack stack)
      Specified by:
      kjs$isItemValid in interface InventoryKJS