Package dev.latvian.mods.kubejs.gui
Class InventoryKJSSlot
java.lang.Object
net.minecraft.world.inventory.Slot
dev.latvian.mods.kubejs.gui.InventoryKJSSlot
public class InventoryKJSSlot
extends net.minecraft.world.inventory.Slot
-
Field Summary
FieldsFields inherited from class net.minecraft.world.inventory.Slot
container, index, x, y -
Constructor Summary
ConstructorsConstructorDescriptionInventoryKJSSlot(InventoryKJS inventory, int invIndex, int xPosition, int yPosition) -
Method Summary
Modifier and TypeMethodDescription@NotNull net.minecraft.world.item.ItemStackgetItem()intintgetMaxStackSize(@NotNull net.minecraft.world.item.ItemStack stack) booleanmayPickup(net.minecraft.world.entity.player.Player playerIn) booleanmayPlace(@NotNull net.minecraft.world.item.ItemStack stack) voidonQuickCraft(@NotNull net.minecraft.world.item.ItemStack oldStackIn, @NotNull net.minecraft.world.item.ItemStack newStackIn) @NotNull net.minecraft.world.item.ItemStackremove(int amount) voidset(@NotNull net.minecraft.world.item.ItemStack stack) voidMethods inherited from class net.minecraft.world.inventory.Slot
allowModification, checkTakeAchievements, getContainerSlot, getNoItemIcon, getSlotIndex, hasItem, isActive, isFake, isHighlightable, isSameInventory, onQuickCraft, onSwapCraft, onTake, safeInsert, safeInsert, safeTake, setBackground, setByPlayer, setByPlayer, tryRemove
-
Field Details
-
inventory
-
invIndex
public final int invIndex
-
-
Constructor Details
-
InventoryKJSSlot
-
-
Method Details
-
mayPlace
public boolean mayPlace(@NotNull @NotNull net.minecraft.world.item.ItemStack stack) - Overrides:
mayPlacein classnet.minecraft.world.inventory.Slot
-
getItem
@NotNull public @NotNull net.minecraft.world.item.ItemStack getItem()- Overrides:
getItemin classnet.minecraft.world.inventory.Slot
-
set
public void set(@NotNull @NotNull net.minecraft.world.item.ItemStack stack) - Overrides:
setin classnet.minecraft.world.inventory.Slot
-
onQuickCraft
public void onQuickCraft(@NotNull @NotNull net.minecraft.world.item.ItemStack oldStackIn, @NotNull @NotNull net.minecraft.world.item.ItemStack newStackIn) - Overrides:
onQuickCraftin classnet.minecraft.world.inventory.Slot
-
setChanged
public void setChanged()- Overrides:
setChangedin classnet.minecraft.world.inventory.Slot
-
getMaxStackSize
public int getMaxStackSize()- Overrides:
getMaxStackSizein classnet.minecraft.world.inventory.Slot
-
getMaxStackSize
public int getMaxStackSize(@NotNull @NotNull net.minecraft.world.item.ItemStack stack) - Overrides:
getMaxStackSizein classnet.minecraft.world.inventory.Slot
-
mayPickup
public boolean mayPickup(net.minecraft.world.entity.player.Player playerIn) - Overrides:
mayPickupin classnet.minecraft.world.inventory.Slot
-
remove
@NotNull public @NotNull net.minecraft.world.item.ItemStack remove(int amount) - Overrides:
removein classnet.minecraft.world.inventory.Slot
-