Enum Class KMath.NumberFormat

java.lang.Object
java.lang.Enum<KMath.NumberFormat>
dev.latvian.mods.klib.math.KMath.NumberFormat
All Implemented Interfaces:
Serializable, Comparable<KMath.NumberFormat>, Constable
Enclosing interface:
KMath

public static enum KMath.NumberFormat extends Enum<KMath.NumberFormat>
  • Enum Constant Details

  • Method Details

    • values

      public static KMath.NumberFormat[] 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 KMath.NumberFormat 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
    • format

      public String format(float value)
    • format

      public String format(double value)
    • format

      public String format(net.minecraft.core.Position pos)
    • format

      public String format(Vec3f pos)
    • format

      public String format(org.joml.Vector3fc pos)
    • format

      public String format(org.joml.Vector4fc pos)