Interface RegistryTag<T>
- Type Parameters:
T- The type of the registry object.
- All Superinterfaces:
HolderSet<T>, Iterable<RegistryKey<T>>
RegistryTag is a collection of keys from a particular registry.
The collection may be backed by a registry (synced, referenced by TagKey), or direct (list backed).
Note that all elements of a direct tag must still be members of the registry.
-
Nested Class Summary
Nested classes/interfaces inherited from interface HolderSet
HolderSet.Direct<T> -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Codec<RegistryTag<T>> codec(Registries.Selector<T> selector) booleancontains(RegistryKey<T> value) static <T> RegistryTag<T> direct(Collection<RegistryKey<T>> values) static <T> RegistryTag<T> direct(RegistryKey<T>... keys) static <T> RegistryTag<T> empty()key()static <T> NetworkBuffer.Type<RegistryTag<T>> networkType(Registries.Selector<T> selector) intsize()Methods inherited from interface Iterable
forEach, iterator, spliterator
-
Method Details
-
networkType
-
codec
-
empty
-
direct
-
direct
-
key
-
contains
-
size
int size()
-