Package net.minecraft.registry
Class DynamicRegistryManager.ImmutableImpl
java.lang.Object
net.minecraft.registry.DynamicRegistryManager.ImmutableImpl
- All Implemented Interfaces:
DynamicRegistryManager
,RegistryEntryLookup.RegistryLookup
,RegistryWrapper.WrapperLookup
- Enclosing interface:
DynamicRegistryManager
public static class DynamicRegistryManager.ImmutableImpl
extends Object
implements DynamicRegistryManager
- Mappings:
Namespace Name named net/minecraft/registry/DynamicRegistryManager$ImmutableImpl
intermediary net/minecraft/class_5455$class_6891
official ke$c
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.registry.DynamicRegistryManager
DynamicRegistryManager.Entry<T>, DynamicRegistryManager.Immutable, DynamicRegistryManager.ImmutableImpl
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map
<? extends RegistryKey<? extends Registry<?>>, ? extends Registry<?>> Fields inherited from interface net.minecraft.registry.DynamicRegistryManager
EMPTY, LOGGER
-
Constructor Summary
ConstructorDescriptionImmutableImpl
(List<? extends Registry<?>> registries) ImmutableImpl
(Map<? extends RegistryKey<? extends Registry<?>>, ? extends Registry<?>> registries) ImmutableImpl
(Stream<DynamicRegistryManager.Entry<?>> entryStream) -
Method Summary
Modifier and TypeMethodDescriptiongetOptional
(RegistryKey<? extends Registry<? extends E>> registryRef) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.registry.DynamicRegistryManager
getOrThrow, streamAllRegistryKeys, toImmutable
Methods inherited from interface net.minecraft.registry.RegistryEntryLookup.RegistryLookup
getOptionalEntry
Methods inherited from interface net.minecraft.registry.RegistryWrapper.WrapperLookup
getLifecycle, getOps, stream
-
Field Details
-
registries
- Mappings:
Namespace Name Mixin selector named registries
Lnet/minecraft/registry/DynamicRegistryManager$ImmutableImpl;registries:Ljava/util/Map;
intermediary field_36471
Lnet/minecraft/class_5455$class_6891;field_36471:Ljava/util/Map;
official c
Lke$c;c:Ljava/util/Map;
-
-
Constructor Details
-
ImmutableImpl
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/registry/DynamicRegistryManager$ImmutableImpl;<init>(Ljava/util/List;)V
intermediary <init>
Lnet/minecraft/class_5455$class_6891;<init>(Ljava/util/List;)V
official <init>
Lke$c;<init>(Ljava/util/List;)V
-
ImmutableImpl
public ImmutableImpl(Map<? extends RegistryKey<? extends Registry<?>>, ? extends Registry<?>> registries) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/registry/DynamicRegistryManager$ImmutableImpl;<init>(Ljava/util/Map;)V
intermediary <init>
Lnet/minecraft/class_5455$class_6891;<init>(Ljava/util/Map;)V
official <init>
Lke$c;<init>(Ljava/util/Map;)V
-
ImmutableImpl
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/registry/DynamicRegistryManager$ImmutableImpl;<init>(Ljava/util/stream/Stream;)V
intermediary <init>
Lnet/minecraft/class_5455$class_6891;<init>(Ljava/util/stream/Stream;)V
official <init>
Lke$c;<init>(Ljava/util/stream/Stream;)V
-
-
Method Details
-
getOptional
public <E> Optional<Registry<E>> getOptional(RegistryKey<? extends Registry<? extends E>> registryRef) - Specified by:
getOptional
in interfaceDynamicRegistryManager
- Specified by:
getOptional
in interfaceRegistryEntryLookup.RegistryLookup
- Specified by:
getOptional
in interfaceRegistryWrapper.WrapperLookup
- Mappings:
Namespace Name Mixin selector named getOptional
Lnet/minecraft/registry/RegistryEntryLookup$RegistryLookup;getOptional(Lnet/minecraft/registry/RegistryKey;)Ljava/util/Optional;
intermediary method_46759
Lnet/minecraft/class_7871$class_7872;method_46759(Lnet/minecraft/class_5321;)Ljava/util/Optional;
official a
Ljr$a;a(Laly;)Ljava/util/Optional;
-
streamAllRegistries
- Specified by:
streamAllRegistries
in interfaceDynamicRegistryManager
- Mappings:
Namespace Name Mixin selector named streamAllRegistries
Lnet/minecraft/registry/DynamicRegistryManager;streamAllRegistries()Ljava/util/stream/Stream;
intermediary method_40311
Lnet/minecraft/class_5455;method_40311()Ljava/util/stream/Stream;
official a
Lke;a()Ljava/util/stream/Stream;
-