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 classBrewingStandScreenHandler.FuelSlot(package private) static classBrewingStandScreenHandler.IngredientSlot(package private) static classBrewingStandScreenHandler.PotionSlot -
Field Summary
Fields Modifier and Type Field Description private SlotingredientSlotprivate Inventoryinventoryprivate PropertyDelegatepropertyDelegateFields 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 booleancanUse(PlayerEntity player)intgetBrewTime()intgetFuel()ItemStacktransferSlot(PlayerEntity player, int index)Methods inherited from class net.minecraft.screen.ScreenHandler
addListener, addProperties, addProperty, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertIntoSlot, canInsertItemIntoSlot, canStacksCombine, 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:
canUsein classScreenHandler
-
transferSlot
- Overrides:
transferSlotin classScreenHandler
-
getFuel
@Environment(CLIENT) public int getFuel() -
getBrewTime
@Environment(CLIENT) public int getBrewTime()
-