Class MaterialSetTag

java.lang.Object
io.papermc.paper.tag.BaseTag<Material, MaterialSetTag>
com.destroystokyo.paper.MaterialSetTag
All Implemented Interfaces:
net.kyori.adventure.key.Keyed, Keyed, Tag<Material>

public class MaterialSetTag extends BaseTag<Material, MaterialSetTag>
Since:
1.13.1
  • Constructor Details

    • MaterialSetTag

      @Deprecated public MaterialSetTag(@NotNull @NotNull Predicate<Material> filter)
      Deprecated.
      Use NamespacedKey version of constructor
      Since:
      1.13.1
    • MaterialSetTag

      @Deprecated public MaterialSetTag(@NotNull @NotNull Collection<Material> materials)
      Deprecated.
      Use NamespacedKey version of constructor
      Since:
      1.13.1
    • MaterialSetTag

      @Deprecated public MaterialSetTag(@NotNull @NotNull Material... materials)
      Deprecated.
      Use NamespacedKey version of constructor
      Since:
      1.13.1
    • MaterialSetTag

      public MaterialSetTag(@Nullable @Nullable NamespacedKey key, @NotNull @NotNull Predicate<Material> filter)
      Since:
      1.13.2
    • MaterialSetTag

      public MaterialSetTag(@Nullable @Nullable NamespacedKey key, @NotNull @NotNull Material... materials)
      Since:
      1.13.2
    • MaterialSetTag

      public MaterialSetTag(@Nullable @Nullable NamespacedKey key, @NotNull @NotNull Collection<Material> materials)
      Since:
      1.13.2
    • MaterialSetTag

      public MaterialSetTag(@Nullable @Nullable NamespacedKey key, @NotNull @NotNull Collection<Material> materials, @NotNull @NotNull Predicate<Material>... globalPredicates)
      Since:
      1.16.4
  • Method Details

    • getAllPossibleValues

      @NotNull @Internal protected @NotNull Set<Material> getAllPossibleValues()
      Specified by:
      getAllPossibleValues in class BaseTag<Material, MaterialSetTag>
    • getName

      @NotNull @Internal protected @NotNull String getName(@NotNull @NotNull Material value)
      Specified by:
      getName in class BaseTag<Material, MaterialSetTag>
    • isTagged

      public boolean isTagged(@NotNull @NotNull BlockData block)
      Since:
      1.13.1
    • isTagged

      public boolean isTagged(@NotNull @NotNull BlockState block)
      Since:
      1.13.1
    • isTagged

      public boolean isTagged(@NotNull @NotNull Block block)
      Since:
      1.13.1
    • isTagged

      public boolean isTagged(@NotNull @NotNull ItemStack item)
      Since:
      1.13.1
    • isTagged

      public boolean isTagged(@NotNull @NotNull Material material)
      Description copied from interface: Tag
      Returns whether or not this tag has an entry for the specified item.
      Specified by:
      isTagged in interface Tag<Material>
      Overrides:
      isTagged in class BaseTag<Material, MaterialSetTag>
      Parameters:
      material - to check
      Returns:
      if it is tagged
      Since:
      1.13.1