Enum Class BannerPattern

java.lang.Object
java.lang.Enum<BannerPattern>
net.minecraft.tileentity.BannerPattern
All Implemented Interfaces:
Serializable, Comparable<BannerPattern>, Constable, IExtensibleEnum

public enum BannerPattern extends Enum<BannerPattern> implements IExtensibleEnum
  • Enum Constant Details

  • Field Details

    • VALUES

      private static final BannerPattern[] VALUES
    • COUNT

      public static final int COUNT
    • PATTERN_ITEM_COUNT

      public static final int PATTERN_ITEM_COUNT
    • AVAILABLE_PATTERNS

      public static final int AVAILABLE_PATTERNS
    • hasPatternItem

      private final boolean hasPatternItem
    • filename

      private final String filename
    • hashname

      private final String hashname
  • Constructor Details

    • BannerPattern

      private BannerPattern(String p_i47245_3_, String p_i47245_4_)
    • BannerPattern

      private BannerPattern(String p_i231861_3_, String p_i231861_4_, boolean p_i231861_5_)
  • Method Details

    • values

      public static BannerPattern[] 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 BannerPattern 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
    • location

      public ResourceLocation location(boolean p_226957_1_)
    • getFilename

      public String getFilename()
    • getHashname

      public String getHashname()
    • byHash

      @Nullable public static BannerPattern byHash(String p_190994_0_)
    • create

      public static BannerPattern create(String enumName, String fileNameIn, String hashNameIn)
    • create

      public static BannerPattern create(String enumName, String fileNameIn, String hashNameIn, boolean hasPatternItem)