Enum Class EmptyShape

java.lang.Object
java.lang.Enum<EmptyShape>
dev.latvian.mods.klib.shape.EmptyShape
All Implemented Interfaces:
Shape, Serializable, Comparable<EmptyShape>, Constable

public enum EmptyShape extends Enum<EmptyShape> implements Shape
  • Enum Constant Details

    • INSTANCE

      public static final EmptyShape INSTANCE
  • Field Details

  • Method Details

    • values

      public static EmptyShape[] 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 EmptyShape 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
    • type

      public CustomRegistryType<io.netty.buffer.ByteBuf, Shape> type()
      Specified by:
      type in interface Shape
    • buildLines

      public void buildLines(float x, float y, float z, VertexCallback callback)
      Specified by:
      buildLines in interface Shape
    • buildQuads

      public void buildQuads(float x, float y, float z, VertexCallback callback)
      Specified by:
      buildQuads in interface Shape
    • contains

      public boolean contains(org.joml.Vector3fc p)
      Specified by:
      contains in interface Shape
    • isVisible

      public boolean isVisible(double x, double y, double z, FrustumCheck frustum)
      Specified by:
      isVisible in interface Shape
    • toString

      public String toString()
      Overrides:
      toString in class Enum<EmptyShape>