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> pPredicate) default HolderLookup.RegistryLookup<T> filterFeatures(FeatureFlagSet pEnabledFeatures) default <A> 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.ResourceKey<? extends Registry<? extends T>> key()com.mojang.serialization.LifecycleMethods inherited from interface net.minecraft.core.HolderGetter
get, get, getOrThrow, getOrThrowMethods inherited from interface net.minecraft.core.HolderLookup
listElementIds, listElements, listTagIds, listTagsMethods 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, 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
-