Enum Class MinecraftTag

java.lang.Object
java.lang.Enum<MinecraftTag>
net.guizhanss.guizhanlib.minecraft.MinecraftTag
All Implemented Interfaces:
Serializable, Comparable<MinecraftTag>, Constable

public enum MinecraftTag extends Enum<MinecraftTag>
This enum contains some useful tags that Tag does not have.
Author:
ybw0014, haiman233
  • Enum Constant Details

    • HELMET

      public static final MinecraftTag HELMET
      This includes all types of helmets
    • CHESTPLATE

      public static final MinecraftTag CHESTPLATE
      This includes all types of chestplates
    • LEGGINGS

      public static final MinecraftTag LEGGINGS
      This includes all types of leggings
    • BOOTS

      public static final MinecraftTag BOOTS
      This include all types of boots
    • ARMOR

      public static final MinecraftTag ARMOR
      This includes any armor
    • SWORD

      public static final MinecraftTag SWORD
      This includes all types of swords
    • AXE

      public static final MinecraftTag AXE
      This includes all types of axes
    • PICKAXE

      public static final MinecraftTag PICKAXE
      This includes all types of pickaxes
    • SHOVEL

      public static final MinecraftTag SHOVEL
      This includes all types of shovel
    • HOE

      public static final MinecraftTag HOE
      This includes all types of hoe
    • SKULL

      public static final MinecraftTag SKULL
      This includes all types of skull
    • HORSE_ARMOR

      public static final MinecraftTag HORSE_ARMOR
      This includes all types of horse armor
    • BOW

      public static final MinecraftTag BOW
      This includes all types of bow
    • FISHING_ROD

      public static final MinecraftTag FISHING_ROD
      This includes all types of fishing rod
    • POTION

      public static final MinecraftTag POTION
      This includes all types of potions
    • POTION_WITH_TIPPED_ARROW

      public static final MinecraftTag POTION_WITH_TIPPED_ARROW
      This includes all types of potions and tipped arrow
  • Method Details

    • values

      public static MinecraftTag[] 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 MinecraftTag 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
    • isTagged

      public abstract boolean isTagged(Material type)
      This method returns if given Material is tagged.
      Parameters:
      type - the Material to be determined
      Returns:
      if given Material is tagged
    • isTagged

      public boolean isTagged(ItemStack itemStack)
      This method returns if given ItemStack is tagged.
      Parameters:
      itemStack - the ItemStack to be determined
      Returns:
      if given ItemStack is tagged