Package net.minecraft.world.inventory
Class BrewingStandMenu.PotionSlot
java.lang.Object
net.minecraft.world.inventory.Slot
net.minecraft.world.inventory.BrewingStandMenu.PotionSlot
- Enclosing class:
BrewingStandMenu
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPotionSlot
(Container pContainer, int pSlot, int pX, int pY) PotionSlot
(PotionBrewing potionBrewing, Container p_39123_, int p_39124_, int p_39125_, int p_39126_) -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
Check if the stack is allowed to be placed in this slot, used for armor slots as well as furnace fuel.static boolean
mayPlaceItem
(PotionBrewing potionBrewing, ItemStack p_39134_) static boolean
mayPlaceItem
(ItemStack pStack) Deprecated.void
Methods inherited from class net.minecraft.world.inventory.Slot
allowModification, checkTakeAchievements, getContainerSlot, getItem, getMaxStackSize, getNoItemIcon, getSlotIndex, hasItem, isActive, isFake, isHighlightable, isSameInventory, mayPickup, onQuickCraft, onQuickCraft, onSwapCraft, remove, safeInsert, safeInsert, safeTake, set, setBackground, setByPlayer, setByPlayer, setChanged, tryRemove
-
Field Details
-
potionBrewing
-
-
Constructor Details
-
PotionSlot
-
PotionSlot
public PotionSlot(PotionBrewing potionBrewing, Container p_39123_, int p_39124_, int p_39125_, int p_39126_)
-
-
Method Details
-
mayPlace
Check if the stack is allowed to be placed in this slot, used for armor slots as well as furnace fuel. -
getMaxStackSize
public int getMaxStackSize()- Overrides:
getMaxStackSize
in classSlot
-
onTake
-
mayPlaceItem
Deprecated.Returnstrue
if thisItemStack
can be filled with a potion. -
mayPlaceItem
-