Enum Class BannerPattern

java.lang.Object
java.lang.Enum<BannerPattern>
net.minecraft.world.level.block.entity.BannerPattern
All Implemented Interfaces:
Serializable, Comparable<BannerPattern>, Constable, IExtensibleEnum

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

  • Field Details

  • Constructor Details

    • BannerPattern

      private BannerPattern(String p_58564_, String p_58565_)
    • BannerPattern

      private BannerPattern(String p_58569_, String p_58570_, boolean p_58571_)
  • 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_58578_)
    • getFilename

      public String getFilename()
    • getHashname

      public String getHashname()
    • byHash

      @Nullable public static BannerPattern byHash(String p_58576_)
    • byFilename

      @Nullable public static BannerPattern byFilename(String p_155046_)
    • create

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

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

      public void init()
      Description copied from interface: IExtensibleEnum
      Called by generated factory code to do any post-constructor setup required by the enum. Should not be called manually.
      Specified by:
      init in interface IExtensibleEnum