Package net.minecraft.tag
Interface Tag<T>
- All Known Subinterfaces:
Tag.Identified<T>
- All Known Implementing Classes:
GlobalTagAccessor.CachedTag,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.TagEntrystatic classTag.TrackedEntry -
Method Summary