java.lang.Object
java.lang.Enum<ReactorMode>
io.github.thebusybiscuit.slimefun4.implementation.items.electric.reactors.ReactorMode
All Implemented Interfaces:
Serializable, Comparable<ReactorMode>, Constable

public enum ReactorMode extends Enum<ReactorMode>
This enum holds the various modes a Reactor can operate as. Each mode has a different focus of operation.
Author:
TheBusyBiscuit
  • Enum Constant Details

    • PRODUCTION

      public static final ReactorMode PRODUCTION
      If a Reactor is operation in production mode, the focus will be set on the production of nuclear byproducts, such as Neptunium or Plutonium. The key difference here is that a Reactor in production mode will still continue to operate, even if the energy buffer is full.
    • GENERATOR

      public static final ReactorMode GENERATOR
      If a Reactor is operating in generator mode, the focus will be the generation of power. If the energy buffer is full, the Reactor will no longer consume fuel.
  • Method Details

    • values

      public static ReactorMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ReactorMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<ReactorMode>