Enum Class SpreadType

java.lang.Object
java.lang.Enum<SpreadType>
dev.latvian.mods.klib.util.SpreadType
All Implemented Interfaces:
Serializable, Comparable<SpreadType>, Constable

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

    • CIRCLE

      public static final SpreadType CIRCLE
    • FILLED_CIRCLE

      public static final SpreadType FILLED_CIRCLE
    • SQUARE

      public static final SpreadType SQUARE
    • FILLED_SQUARE

      public static final SpreadType FILLED_SQUARE
    • LINE

      public static final SpreadType LINE
  • Field Details

  • Method Details

    • values

      public static SpreadType[] 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 SpreadType 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
    • spread

      public org.joml.Vector2f[] spread(int count)
    • spread

      public org.joml.Vector2f[] spread(int count, float rotation)