Package net.minecraft.util.registry
Interface RegistryEntry<T>
- All Known Implementing Classes:
RegistryEntry.Direct,RegistryEntry.Reference
public interface RegistryEntry<T>
- Mappings:
Namespace Name official hcintermediary net/minecraft/class_6880named net/minecraft/util/registry/RegistryEntry
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordstatic classstatic enum -
Method Summary
Modifier and TypeMethodDescriptiongetKey()com.mojang.datafixers.util.Either<RegistryKey<T>,T> getType()booleanbooleanbooleanmatches(Predicate<RegistryKey<T>> predicate) booleanmatchesId(Identifier id) booleanmatchesKey(RegistryKey<T> key) booleanmatchesRegistry(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 aLhc;a()Ljava/lang/Object;intermediary comp_349Lnet/minecraft/class_6880;comp_349()Ljava/lang/Object;named valueLnet/minecraft/util/registry/RegistryEntry;value()Ljava/lang/Object;
-
hasKeyAndValue
boolean hasKeyAndValue()- Mappings:
Namespace Name Mixin selector official bLhc;b()Zintermediary method_40227Lnet/minecraft/class_6880;method_40227()Znamed hasKeyAndValueLnet/minecraft/util/registry/RegistryEntry;hasKeyAndValue()Z
-
matchesId
- Mappings:
Namespace Name Mixin selector official aLhc;a(Laaj;)Zintermediary method_40226Lnet/minecraft/class_6880;method_40226(Lnet/minecraft/class_2960;)Znamed matchesIdLnet/minecraft/util/registry/RegistryEntry;matchesId(Lnet/minecraft/util/Identifier;)Z
-
matchesKey
- Mappings:
Namespace Name Mixin selector official aLhc;a(Laai;)Zintermediary method_40225Lnet/minecraft/class_6880;method_40225(Lnet/minecraft/class_5321;)Znamed matchesKeyLnet/minecraft/util/registry/RegistryEntry;matchesKey(Lnet/minecraft/util/registry/RegistryKey;)Z
-
matches
- Mappings:
Namespace Name Mixin selector official aLhc;a(Ljava/util/function/Predicate;)Zintermediary method_40224Lnet/minecraft/class_6880;method_40224(Ljava/util/function/Predicate;)Znamed matchesLnet/minecraft/util/registry/RegistryEntry;matches(Ljava/util/function/Predicate;)Z
-
isIn
- Mappings:
Namespace Name Mixin selector official aLhc;a(Lakh;)Zintermediary method_40220Lnet/minecraft/class_6880;method_40220(Lnet/minecraft/class_6862;)Znamed isInLnet/minecraft/util/registry/RegistryEntry;isIn(Lnet/minecraft/tag/TagKey;)Z
-
streamTags
- Mappings:
Namespace Name Mixin selector official cLhc;c()Ljava/util/stream/Stream;intermediary method_40228Lnet/minecraft/class_6880;method_40228()Ljava/util/stream/Stream;named streamTagsLnet/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 dLhc;d()Lcom/mojang/datafixers/util/Either;intermediary method_40229Lnet/minecraft/class_6880;method_40229()Lcom/mojang/datafixers/util/Either;named getKeyOrValueLnet/minecraft/util/registry/RegistryEntry;getKeyOrValue()Lcom/mojang/datafixers/util/Either;
-
getKey
Optional<RegistryKey<T>> getKey()- Mappings:
Namespace Name Mixin selector official eLhc;e()Ljava/util/Optional;intermediary method_40230Lnet/minecraft/class_6880;method_40230()Ljava/util/Optional;named getKeyLnet/minecraft/util/registry/RegistryEntry;getKey()Ljava/util/Optional;
-
getType
RegistryEntry.Type getType()- Mappings:
Namespace Name Mixin selector official fLhc;f()Lhc$b;intermediary method_40231Lnet/minecraft/class_6880;method_40231()Lnet/minecraft/class_6880$class_6882;named getTypeLnet/minecraft/util/registry/RegistryEntry;getType()Lnet/minecraft/util/registry/RegistryEntry$Type;
-
matchesRegistry
- Mappings:
Namespace Name Mixin selector official aLhc;a(Lhm;)Zintermediary method_40222Lnet/minecraft/class_6880;method_40222(Lnet/minecraft/class_2378;)Znamed matchesRegistryLnet/minecraft/util/registry/RegistryEntry;matchesRegistry(Lnet/minecraft/util/registry/Registry;)Z
-
of
- Mappings:
Namespace Name Mixin selector official aLhc;a(Ljava/lang/Object;)Lhc;intermediary method_40223Lnet/minecraft/class_6880;method_40223(Ljava/lang/Object;)Lnet/minecraft/class_6880;named ofLnet/minecraft/util/registry/RegistryEntry;of(Ljava/lang/Object;)Lnet/minecraft/util/registry/RegistryEntry;
-
upcast
- Mappings:
Namespace Name Mixin selector official aLhc;a(Lhc;)Lhc;intermediary method_40221Lnet/minecraft/class_6880;method_40221(Lnet/minecraft/class_6880;)Lnet/minecraft/class_6880;named upcastLnet/minecraft/util/registry/RegistryEntry;upcast(Lnet/minecraft/util/registry/RegistryEntry;)Lnet/minecraft/util/registry/RegistryEntry;
-