Class Tag<T>

java.lang.Object
net.minecraft.tag.Tag<T>

public class Tag<T> extends Object
A tag is a set of objects.

Tags simplifies reference to multiple objects, especially for predicate (testing against) purposes.

A tag is immutable by design. It has a builder, which is a mutable equivalent.

Its entries' iteration may be ordered or unordered, depending on the configuration from the tag builder.

Mappings:
Namespace Name
official aie
intermediary net/minecraft/class_3494
named net/minecraft/tag/Tag
  • Field Details

    • EMPTY

      private static final Tag<?> EMPTY
      Mappings:
      Namespace Name Mixin selector
      official a Laie;a:Laie;
      intermediary field_36392 Lnet/minecraft/class_3494;field_36392:Lnet/minecraft/class_3494;
      named EMPTY Lnet/minecraft/tag/Tag;EMPTY:Lnet/minecraft/tag/Tag;
    • values

      final List<T> values
      Mappings:
      Namespace Name Mixin selector
      official b Laie;b:Ljava/util/List;
      intermediary field_36393 Lnet/minecraft/class_3494;field_36393:Ljava/util/List;
      named values Lnet/minecraft/tag/Tag;values:Ljava/util/List;
  • Constructor Details

    • Tag

      public Tag(Collection<T> values)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laie;<init>(Ljava/util/Collection;)V
      intermediary <init> Lnet/minecraft/class_3494;<init>(Ljava/util/Collection;)V
      named <init> Lnet/minecraft/tag/Tag;<init>(Ljava/util/Collection;)V
  • Method Details

    • values

      public List<T> values()
      Mappings:
      Namespace Name Mixin selector
      official a Laie;a()Ljava/util/List;
      intermediary method_15138 Lnet/minecraft/class_3494;method_15138()Ljava/util/List;
      named values Lnet/minecraft/tag/Tag;values()Ljava/util/List;
    • empty

      public static <T> Tag<T> empty()
      Mappings:
      Namespace Name Mixin selector
      official b Laie;b()Laie;
      intermediary method_40088 Lnet/minecraft/class_3494;method_40088()Lnet/minecraft/class_3494;
      named empty Lnet/minecraft/tag/Tag;empty()Lnet/minecraft/tag/Tag;