Enum Class AspectUpdateType

java.lang.Object
java.lang.Enum<AspectUpdateType>
org.cyclops.integrateddynamics.api.part.aspect.AspectUpdateType
All Implemented Interfaces:
Serializable, Comparable<AspectUpdateType>, Constable

public enum AspectUpdateType extends Enum<AspectUpdateType>
  • Enum Constant Details

    • NETWORK_TICK

      public static final AspectUpdateType NETWORK_TICK
      Update per network tick.
    • BLOCK_UPDATE

      public static final AspectUpdateType BLOCK_UPDATE
      Update its value on block neigbour changes, i.e., if BlockBehaviour.neighborChanged(BlockState, Level, BlockPos, Block, BlockPos, boolean), IForgeBlock.onNeighborChange(BlockState, LevelReader, BlockPos, BlockPos) or BlockBehaviour.updateShape(BlockState, Direction, BlockState, LevelAccessor, BlockPos, BlockPos) is called.
    • NEVER

      public static final AspectUpdateType NEVER
      If the update method should never be called.
  • Method Details

    • values

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