Package com.beansgalaxy.backpacks.screen
Class BackSlot
java.lang.Object
net.minecraft.world.inventory.Slot
com.beansgalaxy.backpacks.screen.BackSlot
public class BackSlot
extends net.minecraft.world.inventory.Slot
-
Field Summary
FieldsFields inherited from class net.minecraft.world.inventory.Slot
container, index, x, y -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanisActive()booleanmayPickup(net.minecraft.world.entity.player.Player player) booleanmayPlace(net.minecraft.world.item.ItemStack stack) static net.minecraft.world.InteractionResultopenPlayerBackpackMenu(net.minecraft.world.entity.player.Player viewer, net.minecraft.world.entity.player.Player owner) voidset(net.minecraft.world.item.ItemStack $$0) Methods inherited from class net.minecraft.world.inventory.Slot
allowModification, checkTakeAchievements, getContainerSlot, getItem, getMaxStackSize, getNoItemIcon, getSlotIndex, hasItem, isHighlightable, isSameInventory, onQuickCraft, onQuickCraft, onSwapCraft, onTake, remove, safeInsert, safeInsert, safeTake, setBackground, setByPlayer, setChanged, tryRemove
-
Field Details
-
backData
-
slotIndex
public int slotIndex
-
-
Constructor Details
-
BackSlot
-
-
Method Details
-
isActive
public boolean isActive()- Overrides:
isActivein classnet.minecraft.world.inventory.Slot
-
mayPickup
public boolean mayPickup(net.minecraft.world.entity.player.Player player) - Overrides:
mayPickupin classnet.minecraft.world.inventory.Slot
-
getMaxStackSize
public int getMaxStackSize()- Overrides:
getMaxStackSizein classnet.minecraft.world.inventory.Slot
-
mayPlace
public boolean mayPlace(net.minecraft.world.item.ItemStack stack) - Overrides:
mayPlacein classnet.minecraft.world.inventory.Slot
-
set
public void set(net.minecraft.world.item.ItemStack $$0) - Overrides:
setin classnet.minecraft.world.inventory.Slot
-
openPlayerBackpackMenu
public static net.minecraft.world.InteractionResult openPlayerBackpackMenu(net.minecraft.world.entity.player.Player viewer, net.minecraft.world.entity.player.Player owner)
-