Package dev.latvian.mods.kubejs.item
Class RangedWrapper
java.lang.Object
dev.latvian.mods.kubejs.item.RangedWrapper
- All Implemented Interfaces:
InventoryKJS
- Direct Known Subclasses:
PlayerMainInvWrapper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull net.minecraft.world.item.ItemStackkjs$extractItem(int slot, int amount, boolean simulate) intkjs$getSlotLimit(int slot) int@NotNull net.minecraft.world.item.ItemStackkjs$getStackInSlot(int slot) @NotNull net.minecraft.world.item.ItemStackkjs$insertItem(int slot, @NotNull net.minecraft.world.item.ItemStack stack, boolean simulate) booleankjs$isItemValid(int slot, @NotNull net.minecraft.world.item.ItemStack stack) booleanvoidkjs$setStackInSlot(int slot, @NotNull net.minecraft.world.item.ItemStack stack) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.latvian.mods.kubejs.core.InventoryKJS
kjs$asContainer, kjs$clear, kjs$clear, kjs$count, kjs$count, kjs$countNonEmpty, kjs$countNonEmpty, kjs$find, kjs$find, kjs$getAllItems, kjs$getBlock, kjs$getHeight, kjs$getWidth, kjs$insertItem, kjs$isEmpty, kjs$setChanged
-
Constructor Details
-
RangedWrapper
-
-
Method Details
-
kjs$isMutable
public boolean kjs$isMutable()- Specified by:
kjs$isMutablein interfaceInventoryKJS
-
kjs$getSlots
public int kjs$getSlots()- Specified by:
kjs$getSlotsin interfaceInventoryKJS
-
kjs$getStackInSlot
@NotNull public @NotNull net.minecraft.world.item.ItemStack kjs$getStackInSlot(int slot) - Specified by:
kjs$getStackInSlotin interfaceInventoryKJS
-
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$insertItemin interfaceInventoryKJS
-
kjs$extractItem
@NotNull public @NotNull net.minecraft.world.item.ItemStack kjs$extractItem(int slot, int amount, boolean simulate) - Specified by:
kjs$extractItemin interfaceInventoryKJS
-
kjs$setStackInSlot
public void kjs$setStackInSlot(int slot, @NotNull @NotNull net.minecraft.world.item.ItemStack stack) - Specified by:
kjs$setStackInSlotin interfaceInventoryKJS
-
kjs$getSlotLimit
public int kjs$getSlotLimit(int slot) - Specified by:
kjs$getSlotLimitin interfaceInventoryKJS
-
kjs$isItemValid
public boolean kjs$isItemValid(int slot, @NotNull @NotNull net.minecraft.world.item.ItemStack stack) - Specified by:
kjs$isItemValidin interfaceInventoryKJS
-