Enum Class TenPatch

java.lang.Object
java.lang.Enum<TenPatch>
com.lightning.northstar.block.tech.large_fan.TenPatch
All Implemented Interfaces:
Serializable, Comparable<TenPatch>, Constable, net.minecraft.util.StringRepresentable

public enum TenPatch extends Enum<TenPatch> implements net.minecraft.util.StringRepresentable
nine-patch but with an extra value for single block structures
  • Enum Constant Details

    • SINGLE

      public static final TenPatch SINGLE
    • CENTER

      public static final TenPatch CENTER
    • SIDE_T

      public static final TenPatch SIDE_T
    • SIDE_R

      public static final TenPatch SIDE_R
    • SIDE_B

      public static final TenPatch SIDE_B
    • SIDE_L

      public static final TenPatch SIDE_L
    • CORNER_TR

      public static final TenPatch CORNER_TR
    • CORNER_BR

      public static final TenPatch CORNER_BR
    • CORNER_BL

      public static final TenPatch CORNER_BL
    • CORNER_TL

      public static final TenPatch CORNER_TL
  • Field Details

    • PROPERTY

      public static final net.minecraft.world.level.block.state.properties.EnumProperty<TenPatch> PROPERTY
    • type

      public final TenPatch.PatchType type
    • rotation

      public final int rotation
    • directions

      public final net.minecraft.core.Direction[] directions
  • Method Details

    • values

      public static TenPatch[] 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 TenPatch 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
    • getDirection

      public net.minecraft.core.Direction getDirection(net.minecraft.core.Direction.Axis axis)
    • pickPatch

      public static TenPatch pickPatch(net.minecraft.core.Direction.Axis axis, Predicate<net.minecraft.core.Direction> predicate)
    • getSerializedName

      @NotNull public @NotNull String getSerializedName()
      Specified by:
      getSerializedName in interface net.minecraft.util.StringRepresentable