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 againtermediary net/minecraft/class_3494named net/minecraft/tag/Tag
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classA builder class to ease the creation of tags.static interfacestatic interfacestatic classstatic classstatic classstatic classstatic class -
Method Summary
-
Method Details
-
codec
- Mappings:
Namespace Name Mixin selector official aLaga;a(Ljava/util/function/Supplier;)Lcom/mojang/serialization/Codec;intermediary method_28134Lnet/minecraft/class_3494;method_28134(Ljava/util/function/Supplier;)Lcom/mojang/serialization/Codec;named codecLnet/minecraft/tag/Tag;codec(Ljava/util/function/Supplier;)Lcom/mojang/serialization/Codec;
-
contains
- Mappings:
Namespace Name Mixin selector official aLaga;a(Ljava/lang/Object;)Zintermediary method_15141Lnet/minecraft/class_3494;method_15141(Ljava/lang/Object;)Znamed containsLnet/minecraft/tag/Tag;contains(Ljava/lang/Object;)Z
-
values
- Mappings:
Namespace Name Mixin selector official bLaga;b()Ljava/util/List;intermediary method_15138Lnet/minecraft/class_3494;method_15138()Ljava/util/List;named valuesLnet/minecraft/tag/Tag;values()Ljava/util/List;
-
getRandom
- Mappings:
Namespace Name Mixin selector official aLaga;a(Ljava/util/Random;)Ljava/lang/Object;intermediary method_15142Lnet/minecraft/class_3494;method_15142(Ljava/util/Random;)Ljava/lang/Object;named getRandomLnet/minecraft/tag/Tag;getRandom(Ljava/util/Random;)Ljava/lang/Object;
-
of
- Mappings:
Namespace Name Mixin selector official bLaga;b(Ljava/util/Set;)Laga;intermediary method_26777Lnet/minecraft/class_3494;method_26777(Ljava/util/Set;)Lnet/minecraft/class_3494;named ofLnet/minecraft/tag/Tag;of(Ljava/util/Set;)Lnet/minecraft/tag/Tag;
-