Interface HolderLookup.RegistryLookup<T>
- All Superinterfaces:
HolderGetter<T>, HolderLookup<T>, HolderOwner<T>
- All Known Subinterfaces:
DefaultedRegistry<T>, HolderLookup.RegistryLookup.Delegate<T>, Registry<T>, WritableRegistry<T>
- All Known Implementing Classes:
BaseMappedRegistry, BootstrapRegistry, DefaultedMappedRegistry, EmptyTagLookupWrapper, MappedRegistry, PatchedRegistry
- Enclosing interface:
HolderLookup<T>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface HolderLookup
HolderLookup.Provider, HolderLookup.RegistryLookup<T> -
Method Summary
Modifier and TypeMethodDescriptiondefault HolderLookup.RegistryLookup<T> filterElements(Predicate<T> filter) default HolderLookup.RegistryLookup<T> filterFeatures(FeatureFlagSet enabledFeatures) default <A> @Nullable AgetData(DataMapType<T, A> type, ResourceKey<T> key) Returns the data map value attached with the object with the key, ornullif there's no attached value.default <A> Map<ResourceKey<T>, A> getDataMap(DataMapType<T, A> type) Returns the data map of the giventype.ResourceKey<? extends Registry<? extends T>> key()com.mojang.serialization.LifecycleMethods inherited from interface HolderGetter
get, get, getOrThrow, getOrThrow, getRandomElementOfMethods inherited from interface HolderLookup
listElementIds, listElements, listTagIds, listTagsMethods inherited from interface HolderOwner
canSerialize
-
Method Details
-
key
ResourceKey<? extends Registry<? extends T>> key() -
registryLifecycle
com.mojang.serialization.Lifecycle registryLifecycle() -
filterFeatures
-
filterElements
-
getData
Returns the data map value attached with the object with the key, ornullif there's no attached value.- Type Parameters:
A- the data type- Parameters:
type- the type of the data mapkey- the object to get the value for- Returns:
- the data map value attached with the object with the key, or
nullif there's no attached value
-
getDataMap
Returns the data map of the giventype.- Type Parameters:
A- the data type- Parameters:
type- the type of the data map- Returns:
- the data map of the given
type
-