Package net.minecraft.tag
Interface Tag<T>
- All Known Subinterfaces:
Tag.Identified<T>
- All Known Implementing Classes:
RequiredTagList.TagWrapper
,SetTag
public interface 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 ahl
intermediary net/minecraft/class_3494
named net/minecraft/tag/Tag
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
A builder class to ease the creation of tags.static interface
static interface
static class
static class
static class
static class
static class
-
Method Summary
-
Method Details
-
codec
- Mappings:
Namespace Name Mixin selector official a
Lahl;a(Ljava/util/function/Supplier;)Lcom/mojang/serialization/Codec;
intermediary method_28134
Lnet/minecraft/class_3494;method_28134(Ljava/util/function/Supplier;)Lcom/mojang/serialization/Codec;
named codec
Lnet/minecraft/tag/Tag;codec(Ljava/util/function/Supplier;)Lcom/mojang/serialization/Codec;
-
contains
- Mappings:
Namespace Name Mixin selector official a
Lahl;a(Ljava/lang/Object;)Z
intermediary method_15141
Lnet/minecraft/class_3494;method_15141(Ljava/lang/Object;)Z
named contains
Lnet/minecraft/tag/Tag;contains(Ljava/lang/Object;)Z
-
values
- Mappings:
Namespace Name Mixin selector official b
Lahl;b()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;
-
getRandom
- Mappings:
Namespace Name Mixin selector official a
Lahl;a(Ljava/util/Random;)Ljava/lang/Object;
intermediary method_15142
Lnet/minecraft/class_3494;method_15142(Ljava/util/Random;)Ljava/lang/Object;
named getRandom
Lnet/minecraft/tag/Tag;getRandom(Ljava/util/Random;)Ljava/lang/Object;
-
of
- Mappings:
Namespace Name Mixin selector official b
Lahl;b(Ljava/util/Set;)Lahl;
intermediary method_26777
Lnet/minecraft/class_3494;method_26777(Ljava/util/Set;)Lnet/minecraft/class_3494;
named of
Lnet/minecraft/tag/Tag;of(Ljava/util/Set;)Lnet/minecraft/tag/Tag;
-