Class ProcessingBenchWindow

All Implemented Interfaces:
ItemContainerWindow, MaterialContainerWindow, ValidatedWindow

public class ProcessingBenchWindow extends BenchWindow implements ItemContainerWindow
Since:
22/4/17.
Version:
1.0
  • Constructor Details

  • Method Details

    • getData

      @Nonnull public com.google.gson.JsonObject getData()
      Overrides:
      getData in class BenchWindow
      Returns:
      the JsonObject data affiliated with this window
    • getItemContainer

      @Nonnull public CombinedItemContainer getItemContainer()
      Specified by:
      getItemContainer in interface ItemContainerWindow
      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: Window
      Called to handle the given action for this window
      Overrides:
      handleAction in class Window
      Parameters:
      ref - The entity ref of the affiliated entity
      store - The entity store for component access
      action - The window action to handle
    • updateBenchTierLevel

      public void updateBenchTierLevel(int newValue)
      Overrides:
      updateBenchTierLevel in class BenchWindow
    • onClose0

      public void onClose0(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
      Overrides:
      onClose0 in class BenchWindow