Package net.minecraft.util.registry
Interface RegistryEntry<T>
- All Known Implementing Classes:
RegistryEntry.Direct
,RegistryEntry.Reference
public interface RegistryEntry<T>
- Mappings:
Namespace Name official hc
intermediary net/minecraft/class_6880
named net/minecraft/util/registry/RegistryEntry
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final record
static class
static enum
-
Method Summary
Modifier and TypeMethodDescriptiongetKey()
com.mojang.datafixers.util.Either<RegistryKey<T>,
T> getType()
boolean
boolean
boolean
matches
(Predicate<RegistryKey<T>> predicate) boolean
matchesId
(Identifier id) boolean
matchesKey
(RegistryKey<T> key) boolean
matchesRegistry
(Registry<T> registry) static <T> RegistryEntry<T>
of
(T value) static <T> RegistryEntry<T>
upcast
(RegistryEntry<? extends T> entry) value()
-
Method Details
-
value
T value()- Mappings:
Namespace Name Mixin selector official a
Lhc;a()Ljava/lang/Object;
intermediary comp_349
Lnet/minecraft/class_6880;comp_349()Ljava/lang/Object;
named value
Lnet/minecraft/util/registry/RegistryEntry;value()Ljava/lang/Object;
-
hasKeyAndValue
boolean hasKeyAndValue()- Mappings:
Namespace Name Mixin selector official b
Lhc;b()Z
intermediary method_40227
Lnet/minecraft/class_6880;method_40227()Z
named hasKeyAndValue
Lnet/minecraft/util/registry/RegistryEntry;hasKeyAndValue()Z
-
matchesId
- Mappings:
Namespace Name Mixin selector official a
Lhc;a(Labb;)Z
intermediary method_40226
Lnet/minecraft/class_6880;method_40226(Lnet/minecraft/class_2960;)Z
named matchesId
Lnet/minecraft/util/registry/RegistryEntry;matchesId(Lnet/minecraft/util/Identifier;)Z
-
matchesKey
- Mappings:
Namespace Name Mixin selector official a
Lhc;a(Laba;)Z
intermediary method_40225
Lnet/minecraft/class_6880;method_40225(Lnet/minecraft/class_5321;)Z
named matchesKey
Lnet/minecraft/util/registry/RegistryEntry;matchesKey(Lnet/minecraft/util/registry/RegistryKey;)Z
-
matches
- Mappings:
Namespace Name Mixin selector official a
Lhc;a(Ljava/util/function/Predicate;)Z
intermediary method_40224
Lnet/minecraft/class_6880;method_40224(Ljava/util/function/Predicate;)Z
named matches
Lnet/minecraft/util/registry/RegistryEntry;matches(Ljava/util/function/Predicate;)Z
-
isIn
- Mappings:
Namespace Name Mixin selector official a
Lhc;a(Lakz;)Z
intermediary method_40220
Lnet/minecraft/class_6880;method_40220(Lnet/minecraft/class_6862;)Z
named isIn
Lnet/minecraft/util/registry/RegistryEntry;isIn(Lnet/minecraft/tag/TagKey;)Z
-
streamTags
- Mappings:
Namespace Name Mixin selector official c
Lhc;c()Ljava/util/stream/Stream;
intermediary method_40228
Lnet/minecraft/class_6880;method_40228()Ljava/util/stream/Stream;
named streamTags
Lnet/minecraft/util/registry/RegistryEntry;streamTags()Ljava/util/stream/Stream;
-
getKeyOrValue
com.mojang.datafixers.util.Either<RegistryKey<T>,T> getKeyOrValue()- Mappings:
Namespace Name Mixin selector official d
Lhc;d()Lcom/mojang/datafixers/util/Either;
intermediary method_40229
Lnet/minecraft/class_6880;method_40229()Lcom/mojang/datafixers/util/Either;
named getKeyOrValue
Lnet/minecraft/util/registry/RegistryEntry;getKeyOrValue()Lcom/mojang/datafixers/util/Either;
-
getKey
Optional<RegistryKey<T>> getKey()- Mappings:
Namespace Name Mixin selector official e
Lhc;e()Ljava/util/Optional;
intermediary method_40230
Lnet/minecraft/class_6880;method_40230()Ljava/util/Optional;
named getKey
Lnet/minecraft/util/registry/RegistryEntry;getKey()Ljava/util/Optional;
-
getType
RegistryEntry.Type getType()- Mappings:
Namespace Name Mixin selector official f
Lhc;f()Lhc$b;
intermediary method_40231
Lnet/minecraft/class_6880;method_40231()Lnet/minecraft/class_6880$class_6882;
named getType
Lnet/minecraft/util/registry/RegistryEntry;getType()Lnet/minecraft/util/registry/RegistryEntry$Type;
-
matchesRegistry
- Mappings:
Namespace Name Mixin selector official a
Lhc;a(Lhm;)Z
intermediary method_40222
Lnet/minecraft/class_6880;method_40222(Lnet/minecraft/class_2378;)Z
named matchesRegistry
Lnet/minecraft/util/registry/RegistryEntry;matchesRegistry(Lnet/minecraft/util/registry/Registry;)Z
-
of
- Mappings:
Namespace Name Mixin selector official a
Lhc;a(Ljava/lang/Object;)Lhc;
intermediary method_40223
Lnet/minecraft/class_6880;method_40223(Ljava/lang/Object;)Lnet/minecraft/class_6880;
named of
Lnet/minecraft/util/registry/RegistryEntry;of(Ljava/lang/Object;)Lnet/minecraft/util/registry/RegistryEntry;
-
upcast
- Mappings:
Namespace Name Mixin selector official a
Lhc;a(Lhc;)Lhc;
intermediary method_40221
Lnet/minecraft/class_6880;method_40221(Lnet/minecraft/class_6880;)Lnet/minecraft/class_6880;
named upcast
Lnet/minecraft/util/registry/RegistryEntry;upcast(Lnet/minecraft/util/registry/RegistryEntry;)Lnet/minecraft/util/registry/RegistryEntry;
-