Package com.beansgalaxy.backpacks.screen
Class MenuSlot
java.lang.Object
net.minecraft.world.inventory.Slot
com.beansgalaxy.backpacks.screen.MenuSlot
public class MenuSlot
extends net.minecraft.world.inventory.Slot
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intfinal intstatic final intstatic final net.minecraft.resources.ResourceLocationstatic final intstatic final intstatic final intFields inherited from class net.minecraft.world.inventory.Slot
container, index, x, y -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintnet.minecraft.world.item.ItemStackgetItem()com.mojang.datafixers.util.Pair<net.minecraft.resources.ResourceLocation,net.minecraft.resources.ResourceLocation> static int[]getXY(BackpackInventory inventory, int slot, boolean hasSpace) booleanisActive()booleanbooleanmayPickup(net.minecraft.world.entity.player.Player $$0) voidonTake(net.minecraft.world.entity.player.Player $$0, net.minecraft.world.item.ItemStack $$1) net.minecraft.world.item.ItemStackremove(int $$0) voidset(net.minecraft.world.item.ItemStack $$0) voidMethods inherited from class net.minecraft.world.inventory.Slot
allowModification, checkTakeAchievements, getMaxStackSize, getMaxStackSize, hasItem, mayPlace, onQuickCraft, onQuickCraft, onSwapCraft, safeInsert, safeInsert, safeTake, setByPlayer, tryRemove
-
Field Details
-
SPACING
public static final int SPACING- See Also:
-
COLUMN_START
public static final int COLUMN_START- See Also:
-
MAX_ROWS
public static final int MAX_ROWS- See Also:
-
ADD_ROW
public static final int ADD_ROW- See Also:
-
MAX_SLOTS
public static final int MAX_SLOTS- See Also:
-
INPUT
public static final net.minecraft.resources.ResourceLocation INPUT -
backIndex
public final int backIndex -
state
-
-
Constructor Details
-
MenuSlot
-
-
Method Details
-
isActive
public boolean isActive()- Overrides:
isActivein classnet.minecraft.world.inventory.Slot
-
isHighlightable
public boolean isHighlightable()- Overrides:
isHighlightablein classnet.minecraft.world.inventory.Slot
-
getNoItemIcon
public com.mojang.datafixers.util.Pair<net.minecraft.resources.ResourceLocation,net.minecraft.resources.ResourceLocation> getNoItemIcon()- Overrides:
getNoItemIconin classnet.minecraft.world.inventory.Slot
-
setChanged
public void setChanged()- Overrides:
setChangedin classnet.minecraft.world.inventory.Slot
-
getItem
public net.minecraft.world.item.ItemStack getItem()- Overrides:
getItemin classnet.minecraft.world.inventory.Slot
-
set
public void set(net.minecraft.world.item.ItemStack $$0) - Overrides:
setin classnet.minecraft.world.inventory.Slot
-
remove
public net.minecraft.world.item.ItemStack remove(int $$0) - Overrides:
removein classnet.minecraft.world.inventory.Slot
-
mayPickup
public boolean mayPickup(net.minecraft.world.entity.player.Player $$0) - Overrides:
mayPickupin classnet.minecraft.world.inventory.Slot
-
getContainerSlot
public int getContainerSlot()- Overrides:
getContainerSlotin classnet.minecraft.world.inventory.Slot
-
onTake
public void onTake(net.minecraft.world.entity.player.Player $$0, net.minecraft.world.item.ItemStack $$1) - Overrides:
onTakein classnet.minecraft.world.inventory.Slot
-
getXY
-