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.
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTag.BuilderA builder class to ease the creation of tags.static interfaceTag.Entrystatic interfaceTag.Identified<T>static classTag.ObjectEntrystatic classTag.OptionalObjectEntrystatic classTag.OptionalTagEntrystatic classTag.TagEntrystatic classTag.TrackedEntry -
Method Summary
-
Method Details
-
codec
-
contains
-
values
-
getRandom
-
of
-