net.minecraft.registry

public class CachedRegistryWrapper<T>

implements RegistryEntryLookup<T>

net.minecraft.core.registries.ConcurrentHolderGetter
net.minecraft.class_1_42
net.minecraft.registry.CachedRegistryWrapper

Field summary

Modifier and TypeField
private final Object
lock
field_1_643
lock
private final RegistryEntryLookup<T>
original
field_1_644
lookup
private final Map<RegistryKey<T>, Optional<RegistryEntry$Reference<T>>>
elementCache
field_1_642
cachedEntries
private final Map<TagKey<T>, Optional<RegistryEntryList$Named<T>>>
tagCache
field_1_645
cachedTags

Constructor summary

ModifierConstructor
public (Object lock, RegistryEntryLookup<T> lookup)

Method summary

Modifier and TypeMethod
public Optional<RegistryEntry$Reference<T>>
get(ResourceKey<T> elementId)
method_46746(class_5321<T> arg0)
getOptional(RegistryKey<T> arg0)
public Optional<RegistryEntryList$Named<T>>
get(TagKey<T> tagId)
method_46733(class_6862<T> arg0)
getOptional(TagKey<T> arg0)
private Optional
lambda$get$1(TagKey arg0)
method_1_608(class_6862 arg0)
method_1_608(TagKey k)
private Optional
lambda$get$0(ResourceKey arg0)
method_1_607(class_5321 arg0)
method_1_607(RegistryKey k)