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 net.minestom.server.registry.HolderSet
HolderSet.Direct<T extends Holder.Direct<T>>
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> @NotNull Codec
<RegistryTag<T>> codec
(Registries.Selector<T> selector) boolean
contains
(@NotNull RegistryKey<T> value) static <T> @NotNull RegistryTag
<T> direct
(@NotNull Collection<RegistryKey<T>> values) static <T> @NotNull RegistryTag
<T> direct
(@NotNull RegistryKey<T>... keys) static <T> @NotNull RegistryTag
<T> empty()
key()
static <T> @NotNull NetworkBuffer.Type
<RegistryTag<T>> networkType
(Registries.Selector<T> selector) int
size()
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
networkType
static <T> @NotNull NetworkBuffer.Type<RegistryTag<T>> networkType(@NotNull Registries.Selector<T> selector) -
codec
-
empty
-
direct
@SafeVarargs @NotNull static <T> @NotNull RegistryTag<T> direct(@NotNull @NotNull RegistryKey<T>... keys) -
direct
@NotNull static <T> @NotNull RegistryTag<T> direct(@NotNull @NotNull Collection<RegistryKey<T>> values) -
key
-
contains
-
size
int size()
-