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 container, int slot, int x, int y) PotionSlot(PotionBrewing potionBrewing, Container container, int slot, int x, int y) -
Method Summary
Modifier and TypeMethodDescriptionintbooleanCheck if the stack is allowed to be placed in this slot, used for armor slots as well as furnace fuel.static booleanmayPlaceItem(PotionBrewing potionBrewing, ItemStack itemStack) static booleanmayPlaceItem(ItemStack itemStack) Deprecated.voidMethods inherited from class Slot
allowModification, checkTakeAchievements, getContainerSlot, getItem, getMaxStackSize, 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
-
-
Method Details
-
mayPlace
-
getMaxStackSize
public int getMaxStackSize()- Overrides:
getMaxStackSizein classSlot
-
onTake
-
mayPlaceItem
Deprecated.Returnstrueif thisItemStackcan be filled with a potion. -
mayPlaceItem
-
getNoItemIcon
- Overrides:
getNoItemIconin classSlot
-