Interface Taggable<T extends Taggable<T>>

All Superinterfaces:
DefaultedRegistryValue<T>
All Known Subinterfaces:
Biome, BlockType, DamageType, EnchantmentType, EntityType<A>, FluidType, ItemType

public interface Taggable<T extends Taggable<T>> extends DefaultedRegistryValue<T>
A type that may be included in one or more Tag collections.
  • Method Details

    • tags

      Stream<Tag<T>> tags(DefaultedRegistryType<T> registryType)
      Gets all Tags that have been associated with this object in the given registry.
      Returns:
      The Stream of Tags.
    • is

      default boolean is(DefaultedTag<T> tag)
      Returns whether the given tag is associated with this object.
      Parameters:
      tag - The tag
      Returns:
      true if the given tag is associated with this object