Package net.minecraft.core
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
,DefaultedMappedRegistry
,MappedRegistry
,RegistrySetBuilder.EmptyTagLookupWrapper
,RegistrySetBuilder.EmptyTagRegistryLookup
- Enclosing interface:
HolderLookup<T>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.core.HolderLookup
HolderLookup.Provider, HolderLookup.RegistryLookup<T>
-
Method Summary
Modifier and TypeMethodDescriptiondefault HolderLookup.RegistryLookup
<T> filterElements
(Predicate<T> p_324043_) default HolderLookup.RegistryLookup
<T> filterFeatures
(FeatureFlagSet p_249397_) default <A> A
getData
(DataMapType<T, A> type, ResourceKey<T> key) Returns the data map value attached with the object with the key, ornull
if there's no attached value.ResourceKey
<? extends Registry<? extends T>> key()
com.mojang.serialization.Lifecycle
Methods inherited from interface net.minecraft.core.HolderGetter
get, get, getOrThrow, getOrThrow
Methods inherited from interface net.minecraft.core.HolderLookup
listElementIds, listElements, listTagIds, listTags
Methods inherited from interface net.minecraft.core.HolderOwner
canSerializeIn
-
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, ornull
if 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
null
if there's no attached value
-