Class ContainerSlot
java.lang.Object
net.minecraft.world.inventory.Slot
net.ixdarklord.coolcatcore.api.container.ContainerSlot
public class ContainerSlot
extends net.minecraft.world.inventory.Slot
A menu slot of a
SlotContainer that follows its layout: filters and SlotRole.OUTPUT decide what a
player may put in, and slot limits how much.-
Field Summary
Fields inherited from class net.minecraft.world.inventory.Slot
container, index, x, y -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintgetMaxStackSize(net.minecraft.world.item.ItemStack stack) booleanmayPlace(net.minecraft.world.item.ItemStack stack) Methods inherited from class net.minecraft.world.inventory.Slot
allowModification, checkTakeAchievements, getContainerSlot, getItem, getNoItemIcon, hasItem, isActive, isHighlightable, mayPickup, onQuickCraft, onQuickCraft, onSwapCraft, onTake, remove, safeInsert, safeInsert, safeTake, set, setByPlayer, setChanged, tryRemove
-
Constructor Details
-
ContainerSlot
-
-
Method Details
-
getHolder
-
mayPlace
public boolean mayPlace(net.minecraft.world.item.ItemStack stack) - Overrides:
mayPlacein classnet.minecraft.world.inventory.Slot
-
getMaxStackSize
public int getMaxStackSize()- Overrides:
getMaxStackSizein classnet.minecraft.world.inventory.Slot
-
getMaxStackSize
public int getMaxStackSize(net.minecraft.world.item.ItemStack stack) - Overrides:
getMaxStackSizein classnet.minecraft.world.inventory.Slot
-