Enum Class PatternType

java.lang.Object
java.lang.Enum<PatternType>
net.darkhax.additionalbanners.common.PatternType
All Implemented Interfaces:
Serializable, Comparable<PatternType>, Constable

public enum PatternType extends Enum<PatternType>
  • Enum Constant Details

  • Field Details

    • main

      public final String main
    • variants

      public final String[] variants
    • rarity

      public final net.minecraft.world.item.Rarity rarity
    • bannerTag

      public final net.minecraft.tags.TagKey<net.minecraft.world.level.block.entity.BannerPattern> bannerTag
    • itemId

      public final net.minecraft.resources.Identifier itemId
    • item

      public final Supplier<net.minecraft.world.item.Item> item
  • Method Details

    • values

      public static PatternType[] 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 PatternType 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
    • hasVariants

      public boolean hasVariants()