Enum Class WorldMode

java.lang.Object
java.lang.Enum<WorldMode>
fr.robie.machineengine.api.resource.fluid.WorldMode
All Implemented Interfaces:
Serializable, Comparable<WorldMode>, Constable

public enum WorldMode extends Enum<WorldMode>
Where a fluid can exist outside machines and pipes (docs/FLUID_TYPES_PLAN.md ยง2.2).
  • Enum Constant Details

    • NONE

      public static final WorldMode NONE
      Only in tanks, pipes and items: it has no block in the world.
    • VANILLA

      public static final WorldMode VANILLA
      A vanilla fluid (water, lava): its own world block, handled by the game.
    • PLACEABLE

      public static final WorldMode PLACEABLE
      A custom fluid that can be placed and flows in the world: carried by water blocks, tracked by MachineEngine, drawn with its own look (D46).
  • Method Details

    • values

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