Enum Class BuildMode

java.lang.Object
java.lang.Enum<BuildMode>
tschipp.linear.build.BuildMode
All Implemented Interfaces:
Serializable, Comparable<BuildMode>, Constable, net.minecraft.util.StringRepresentable

public enum BuildMode extends Enum<BuildMode> implements net.minecraft.util.StringRepresentable
The shape a drag fills, see BuildGeometry.
  • Enum Constant Details

    • LINE_3_AXES

      public static final BuildMode LINE_3_AXES
    • LINE_2_AXES

      public static final BuildMode LINE_2_AXES
    • LINE_1_AXIS

      public static final BuildMode LINE_1_AXIS
    • WALL_3_AXES

      public static final BuildMode WALL_3_AXES
    • WALL_2_AXES

      public static final BuildMode WALL_2_AXES
    • CIRCLE_2_AXES

      public static final BuildMode CIRCLE_2_AXES
    • SPHERE_3_AXES

      public static final BuildMode SPHERE_3_AXES
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<BuildMode> CODEC
    • STREAM_CODEC

      public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,BuildMode> STREAM_CODEC
  • Method Details

    • values

      public static BuildMode[] 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 BuildMode 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
    • getSerializedName

      public String getSerializedName()
      Specified by:
      getSerializedName in interface net.minecraft.util.StringRepresentable
    • translationKey

      public String translationKey()
    • byName

      public static Optional<BuildMode> byName(String name)
    • next

      public BuildMode next(Collection<BuildMode> enabled)
      The next enabled mode, wrapping around.