Enum Class CalculationResult

java.lang.Object
java.lang.Enum<CalculationResult>
com.hypixel.hytale.server.core.universe.world.lighting.CalculationResult
All Implemented Interfaces:
Serializable, Comparable<CalculationResult>, Constable

public enum CalculationResult extends Enum<CalculationResult>
The result of a lighting calculation step.
  • Enum Constant Details

    • NOT_LOADED

      public static final CalculationResult NOT_LOADED
      If the chunk wasn't loaded we abort with this result.
    • DONE

      public static final CalculationResult DONE
      If the lighting calculation has completed.
    • INVALIDATED

      public static final CalculationResult INVALIDATED
      If the chunk got invalidated while we are processing then we will need to start the calculation again for the new changes.
    • WAITING_FOR_NEIGHBOUR

      public static final CalculationResult WAITING_FOR_NEIGHBOUR
      If the chunk is waiting for a neighbour to finish processing or to load.
  • Method Details

    • values

      public static CalculationResult[] 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 CalculationResult 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