Class ProcessingBenchWindow
java.lang.Object
com.hypixel.hytale.server.core.entity.entities.player.windows.Window
com.hypixel.hytale.server.core.entity.entities.player.windows.BlockWindow
com.hypixel.hytale.builtin.crafting.window.BenchWindow
com.hypixel.hytale.builtin.crafting.window.ProcessingBenchWindow
- All Implemented Interfaces:
ItemContainerWindow,MaterialContainerWindow,ValidatedWindow
-
Nested Class Summary
Nested classes/interfaces inherited from class com.hypixel.hytale.server.core.entity.entities.player.windows.Window
Window.WindowCloseEvent -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate floatprivate EventRegistration<?, ?> private CombinedItemContainerprivate intprivate floatFields inherited from class com.hypixel.hytale.builtin.crafting.window.BenchWindow
bench, BENCH_UPGRADING, benchState, windowDataFields inherited from class com.hypixel.hytale.server.core.entity.entities.player.windows.BlockWindow
blockType, rotationIndex, x, y, zFields inherited from class com.hypixel.hytale.server.core.entity.entities.player.windows.Window
CLIENT_REQUESTABLE_WINDOW_TYPES, closeEventRegistry, isDirty, LOGGER, needRebuild, windowType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static com.google.gson.JsonArraygenerateInventoryHints(Bench bench, CombinedItemContainer combinedInputItemContainer) com.google.gson.JsonObjectgetData()voidhandleAction(Ref<EntityStore> ref, Store<EntityStore> store, WindowAction action) voidonClose0()protected booleanonOpen0()voidsetActive(boolean active) voidsetFuelTime(float fuelTime) voidsetMaxFuel(int maxFuel) voidsetProcessingFuelSlots(Set<Short> slots) voidsetProcessingSlots(Set<Short> slots) voidsetProgress(float progress) voidupdateBenchTierLevel(int newValue) private voidupdateInputSlots(int tierLevel) private voidupdateOutputSlots(int tierLevel) Methods inherited from class com.hypixel.hytale.builtin.crafting.window.BenchWindow
getBenchTierLevel, getExtraResourcesSection, invalidateExtraResources, isValid, updateBenchUpgradeJob, updateCraftingJobMethods inherited from class com.hypixel.hytale.server.core.entity.entities.player.windows.BlockWindow
getBlockType, getMaxDistance, getRotationIndex, getX, getY, getZ, setMaxDistance, validateMethods inherited from class com.hypixel.hytale.server.core.entity.entities.player.windows.Window
close, consumeIsDirty, consumeNeedRebuild, equals, getId, getPlayerRef, getType, hashCode, init, invalidate, onClose, onOpen, registerCloseEvent, registerCloseEvent, registerCloseEvent, setId, setNeedRebuild
-
Field Details
-
itemContainer
-
inventoryRegistration
-
fuelTime
private float fuelTime -
maxFuel
private int maxFuel -
progress
private float progress -
active
private boolean active -
processingSlots
-
processingFuelSlots
-
-
Constructor Details
-
ProcessingBenchWindow
-
-
Method Details
-
getData
@Nonnull public com.google.gson.JsonObject getData()- Overrides:
getDatain classBenchWindow
-
getItemContainer
- Specified by:
getItemContainerin interfaceItemContainerWindow
-
setActive
public void setActive(boolean active) -
setFuelTime
public void setFuelTime(float fuelTime) -
setMaxFuel
public void setMaxFuel(int maxFuel) -
setProgress
public void setProgress(float progress) -
setProcessingSlots
-
setProcessingFuelSlots
-
handleAction
public void handleAction(@Nonnull Ref<EntityStore> ref, @Nonnull Store<EntityStore> store, @Nonnull WindowAction action) - Overrides:
handleActionin classWindow
-
onOpen0
protected boolean onOpen0()- Overrides:
onOpen0in classBenchWindow
-
updateOutputSlots
private void updateOutputSlots(int tierLevel) -
updateInputSlots
private void updateInputSlots(int tierLevel) -
updateBenchTierLevel
public void updateBenchTierLevel(int newValue) - Overrides:
updateBenchTierLevelin classBenchWindow
-
onClose0
public void onClose0()- Overrides:
onClose0in classBenchWindow
-
generateInventoryHints
@Nonnull private static com.google.gson.JsonArray generateInventoryHints(@Nonnull Bench bench, @Nonnull CombinedItemContainer combinedInputItemContainer)
-