Contents
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
- Since:
- 22/4/17.
- Version:
- 1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class Window
Window.WindowCloseEvent -
Field Summary
Fields inherited from class Window
CLIENT_REQUESTABLE_WINDOW_TYPES -
Constructor Summary
ConstructorsConstructorDescriptionProcessingBenchWindow(ProcessingBenchBlock benchState, BenchBlock benchBlock, BlockModule.BlockStateInfo blockStateInfo, int x, int y, int z, int rotationIndex, BlockType blockType) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.gson.JsonObjectgetData()voidhandleAction(Ref<EntityStore> ref, Store<EntityStore> store, WindowAction action) Called to handle the given action for this windowvoidonClose0(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor) voidsetActive(boolean active) voidsetFuelTime(float fuelTime) voidsetMaxFuel(int maxFuel) voidsetProcessingFuelSlots(it.unimi.dsi.fastutil.shorts.ShortSet slots) voidsetProcessingSlots(it.unimi.dsi.fastutil.shorts.ShortSet slots) voidsetProgress(float progress) voidupdateBenchTierLevel(int newValue) Methods inherited from class BenchWindow
getExtraResourcesSection, invalidateExtraResources, isValid, setBlockInteractionState, updateBenchUpgradeJob, updateCraftingJob, updateQueueSizeMethods inherited from class BlockWindow
getBlockType, getMaxDistance, getRotationIndex, getX, getY, getZ, setMaxDistance, validateMethods inherited from class Window
close, equals, getId, getPlayerRef, getType, hashCode, init, registerCloseEvent, registerCloseEvent, registerCloseEvent, setId
-
Constructor Details
-
ProcessingBenchWindow
public ProcessingBenchWindow(@Nonnull ProcessingBenchBlock benchState, @Nonnull BenchBlock benchBlock, @Nullable BlockModule.BlockStateInfo blockStateInfo, int x, int y, int z, int rotationIndex, @Nonnull BlockType blockType)
-
-
Method Details
-
getData
@Nonnull public com.google.gson.JsonObject getData()- Overrides:
getDatain classBenchWindow- Returns:
- the
JsonObjectdata affiliated with this window
-
getItemContainer
- Specified by:
getItemContainerin interfaceItemContainerWindow- Returns:
- the item container instance affiliated with the window
-
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
public void setProcessingSlots(@Nonnull it.unimi.dsi.fastutil.shorts.ShortSet slots) -
setProcessingFuelSlots
public void setProcessingFuelSlots(@Nonnull it.unimi.dsi.fastutil.shorts.ShortSet slots) -
handleAction
public void handleAction(@Nonnull Ref<EntityStore> ref, @Nonnull Store<EntityStore> store, @Nonnull WindowAction action) Description copied from class:WindowCalled to handle the given action for this window- Overrides:
handleActionin classWindow- Parameters:
ref- The entity ref of the affiliated entitystore- The entity store for component accessaction- The window action to handle
-
updateBenchTierLevel
public void updateBenchTierLevel(int newValue) - Overrides:
updateBenchTierLevelin classBenchWindow
-
onClose0
public void onClose0(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> componentAccessor) - Overrides:
onClose0in classBenchWindow
-