Class ProcessingBenchWindow

All Implemented Interfaces:
ItemContainerWindow, MaterialContainerWindow, ValidatedWindow

public class ProcessingBenchWindow extends BenchWindow implements ItemContainerWindow
  • Field Details

    • itemContainer

      private CombinedItemContainer itemContainer
    • inventoryRegistration

      @Nullable private EventRegistration<?,?> inventoryRegistration
    • fuelTime

      private float fuelTime
    • maxFuel

      private int maxFuel
    • progress

      private float progress
    • active

      private boolean active
    • processingSlots

      private final Set<Short> processingSlots
    • processingFuelSlots

      private final Set<Short> processingFuelSlots
  • Constructor Details

  • Method Details

    • getData

      @Nonnull public com.google.gson.JsonObject getData()
      Overrides:
      getData in class BenchWindow
    • getItemContainer

      @Nonnull public CombinedItemContainer getItemContainer()
      Specified by:
      getItemContainer in interface ItemContainerWindow
    • 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(Set<Short> slots)
    • setProcessingFuelSlots

      public void setProcessingFuelSlots(Set<Short> slots)
    • handleAction

      public void handleAction(@Nonnull Ref<EntityStore> ref, @Nonnull Store<EntityStore> store, @Nonnull WindowAction action)
      Overrides:
      handleAction in class Window
    • onOpen0

      protected boolean onOpen0()
      Overrides:
      onOpen0 in class BenchWindow
    • updateOutputSlots

      private void updateOutputSlots(int tierLevel)
    • updateInputSlots

      private void updateInputSlots(int tierLevel)
    • updateBenchTierLevel

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

      public void onClose0()
      Overrides:
      onClose0 in class BenchWindow
    • generateInventoryHints

      @Nonnull private static com.google.gson.JsonArray generateInventoryHints(@Nonnull Bench bench, @Nonnull CombinedItemContainer combinedInputItemContainer)