Interface ContainerKJS

All Superinterfaces:
InventoryKJS
All Known Subinterfaces:
ContainerMixin

@RemapPrefixForJS("kjs$") public interface ContainerKJS extends InventoryKJS
  • Method Details

    • kjs$self

      default net.minecraft.world.Container kjs$self()
    • kjs$isMutable

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

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

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

      @NotNull default @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 default @NotNull net.minecraft.world.item.ItemStack kjs$extractItem(int slot, int amount, boolean simulate)
      Specified by:
      kjs$extractItem in interface InventoryKJS
    • kjs$setStackInSlot

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

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

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

      default int kjs$getWidth()
      Specified by:
      kjs$getWidth in interface InventoryKJS
    • kjs$getHeight

      default int kjs$getHeight()
      Specified by:
      kjs$getHeight in interface InventoryKJS
    • kjs$clear

      default void kjs$clear()
      Specified by:
      kjs$clear in interface InventoryKJS
    • kjs$setChanged

      default void kjs$setChanged()
      Specified by:
      kjs$setChanged in interface InventoryKJS
    • kjs$getBlock

      @Nullable default @Nullable LevelBlock kjs$getBlock(net.minecraft.world.level.Level level)
      Specified by:
      kjs$getBlock in interface InventoryKJS
    • kjs$asContainer

      default net.minecraft.world.Container kjs$asContainer()
      Specified by:
      kjs$asContainer in interface InventoryKJS