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 class
Tag.Builder
A builder class to ease the creation of tags.static interface
Tag.Entry
static interface
Tag.Identified<T>
static class
Tag.ObjectEntry
static class
Tag.OptionalObjectEntry
static class
Tag.OptionalTagEntry
static class
Tag.TagEntry
static class
Tag.TrackedEntry
-
Method Summary
-
Method Details
-
codec
-
contains
-
values
-
getRandom
-
of
-