Package net.minecraft.command
Class CommandRegistryWrapper.Impl<T>
java.lang.Object
net.minecraft.command.CommandRegistryWrapper.Impl<T>
- All Implemented Interfaces:
CommandRegistryWrapper<T>
- Enclosing interface:
CommandRegistryWrapper<T>
public static class CommandRegistryWrapper.Impl<T>
extends Object
implements CommandRegistryWrapper<T>
- Mappings:
Namespace Name official hd$a
intermediary net/minecraft/class_7225$class_7226
named net/minecraft/command/CommandRegistryWrapper$Impl
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.command.CommandRegistryWrapper
CommandRegistryWrapper.Impl<T>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetEntry
(RegistryKey<T> key) Optional<? extends RegistryEntryList<T>>
getEntryList
(TagKey<T> tag) Returns the entry list for the provided tag.Returns a stream of registry keys defined in the wrapped registry.
-
Field Details
-
registry
- Mappings:
Namespace Name Mixin selector official b
Lhd$a;b:Lhm;
intermediary field_37996
Lnet/minecraft/class_7225$class_7226;field_37996:Lnet/minecraft/class_2378;
named registry
Lnet/minecraft/command/CommandRegistryWrapper$Impl;registry:Lnet/minecraft/util/registry/Registry;
-
-
Constructor Details
-
Impl
- Mappings:
Namespace Name Mixin selector official <init>
Lhd$a;<init>(Lhm;)V
intermediary <init>
Lnet/minecraft/class_7225$class_7226;<init>(Lnet/minecraft/class_2378;)V
named <init>
Lnet/minecraft/command/CommandRegistryWrapper$Impl;<init>(Lnet/minecraft/util/registry/Registry;)V
-
-
Method Details
-
getEntry
- Specified by:
getEntry
in interfaceCommandRegistryWrapper<T>
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lhd;a(Laba;)Ljava/util/Optional;
intermediary method_42019
Lnet/minecraft/class_7225;method_42019(Lnet/minecraft/class_5321;)Ljava/util/Optional;
named getEntry
Lnet/minecraft/command/CommandRegistryWrapper;getEntry(Lnet/minecraft/util/registry/RegistryKey;)Ljava/util/Optional;
-
streamKeys
Returns a stream of registry keys defined in the wrapped registry.- Specified by:
streamKeys
in interfaceCommandRegistryWrapper<T>
- Returns:
- a stream of registry keys defined in the wrapped registry
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lhd;a()Ljava/util/stream/Stream;
intermediary method_42017
Lnet/minecraft/class_7225;method_42017()Ljava/util/stream/Stream;
named streamKeys
Lnet/minecraft/command/CommandRegistryWrapper;streamKeys()Ljava/util/stream/Stream;
-
getEntryList
Returns the entry list for the provided tag.Implementations have different behaviors for unrecognized tags. The default implementation returns
Optional.empty()
; however, the ones created byCommandRegistryAccess.createWrapper(net.minecraft.util.registry.RegistryKey<? extends net.minecraft.util.registry.Registry<T>>)
can create and return a new entry list, or return an empty entry list.- Specified by:
getEntryList
in interfaceCommandRegistryWrapper<T>
- Returns:
- the entry list for the provided tag
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lhd;a(Lakz;)Ljava/util/Optional;
intermediary method_41700
Lnet/minecraft/class_7225;method_41700(Lnet/minecraft/class_6862;)Ljava/util/Optional;
named getEntryList
Lnet/minecraft/command/CommandRegistryWrapper;getEntryList(Lnet/minecraft/tag/TagKey;)Ljava/util/Optional;
-
streamTags
- Specified by:
streamTags
in interfaceCommandRegistryWrapper<T>
- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lhd;b()Ljava/util/stream/Stream;
intermediary method_42020
Lnet/minecraft/class_7225;method_42020()Ljava/util/stream/Stream;
named streamTags
Lnet/minecraft/command/CommandRegistryWrapper;streamTags()Ljava/util/stream/Stream;
-