Package net.minecraft.screen
Class BrewingStandScreenHandler
java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.BrewingStandScreenHandler
public class BrewingStandScreenHandler extends ScreenHandler
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
BrewingStandScreenHandler.FuelSlot
(package private) static class
BrewingStandScreenHandler.IngredientSlot
(package private) static class
BrewingStandScreenHandler.PotionSlot
-
Field Summary
Fields Modifier and Type Field Description private Slot
ingredientSlot
private Inventory
inventory
private PropertyDelegate
propertyDelegate
Fields inherited from class net.minecraft.screen.ScreenHandler
slots, syncId
-
Constructor Summary
Constructors Constructor Description BrewingStandScreenHandler(int syncId, PlayerInventory playerInventory)
BrewingStandScreenHandler(int syncId, PlayerInventory playerInventory, Inventory inventory, PropertyDelegate propertyDelegate)
-
Method Summary
Modifier and Type Method Description boolean
canUse(PlayerEntity player)
int
getBrewTime()
int
getFuel()
ItemStack
transferSlot(PlayerEntity player, int index)
Methods inherited from class net.minecraft.screen.ScreenHandler
addListener, addProperties, addProperty, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertIntoSlot, canInsertItemIntoSlot, canUse, checkDataCount, checkSize, close, dropInventory, endQuickCraft, getNextActionId, getSlot, getStacks, getType, insertItem, isNotRestricted, onButtonClick, onContentChanged, onSlotClick, packQuickCraftData, removeListener, sendContentUpdates, setPlayerRestriction, setProperty, setStackInSlot, shouldQuickCraftContinue, unpackQuickCraftButton, unpackQuickCraftStage, updateSlotStacks
-
Field Details
-
inventory
-
propertyDelegate
-
ingredientSlot
-
-
Constructor Details
-
BrewingStandScreenHandler
-
BrewingStandScreenHandler
public BrewingStandScreenHandler(int syncId, PlayerInventory playerInventory, Inventory inventory, PropertyDelegate propertyDelegate)
-
-
Method Details
-
canUse
- Specified by:
canUse
in classScreenHandler
-
transferSlot
- Overrides:
transferSlot
in classScreenHandler
-
getFuel
@Environment(CLIENT) public int getFuel() -
getBrewTime
@Environment(CLIENT) public int getBrewTime()
-