Package net.minecraft.tag
Class Tag<T>
java.lang.Object
net.minecraft.tag.Tag<T>
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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A builder class to ease the creation of tags.static interface
private static class
private static class
private static class
private static class
static final record
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
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
- 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
- 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
- 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
- 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;
-