Class ChestMenuContainerSlot
java.lang.Object
net.minecraft.world.inventory.Slot
dev.latvian.mods.kubejs.gui.chest.ChestMenuContainerSlot
public class ChestMenuContainerSlot
extends net.minecraft.world.inventory.Slot
-
Field Summary
FieldsFields inherited from class net.minecraft.world.inventory.Slot
container, index, x, y -
Constructor Summary
ConstructorsConstructorDescriptionChestMenuContainerSlot(CustomChestMenu menu, int index, 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) Methods 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, setChanged, tryRemove
-
Field Details
-
_index
public final int _index
-
Constructor Details
-
ChestMenuContainerSlot
-
-
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
-
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
-