Package net.minecraft.command.argument
Interface RegistryPredicateArgumentType.RegistryPredicate<T>
- All Superinterfaces:
Predicate<RegistryEntry<T>>
- All Known Implementing Classes:
RegistryPredicateArgumentType.RegistryKeyBased
,RegistryPredicateArgumentType.TagBased
- Enclosing class:
RegistryPredicateArgumentType<T>
public static interface RegistryPredicateArgumentType.RegistryPredicate<T>
extends Predicate<RegistryEntry<T>>
- Mappings:
Namespace Name official er$c
intermediary net/minecraft/class_7066$class_7068
named net/minecraft/command/argument/RegistryPredicateArgumentType$RegistryPredicate
-
Method Summary
Modifier and TypeMethodDescriptionasString()
com.mojang.datafixers.util.Either<RegistryKey<T>,
TagKey<T>> getKey()
tryCast
(RegistryKey<? extends Registry<E>> registryRef)
-
Method Details
-
getKey
com.mojang.datafixers.util.Either<RegistryKey<T>,TagKey<T>> getKey()- Mappings:
Namespace Name Mixin selector official a
Ler$c;a()Lcom/mojang/datafixers/util/Either;
intermediary method_41173
Lnet/minecraft/class_7066$class_7068;method_41173()Lcom/mojang/datafixers/util/Either;
named getKey
Lnet/minecraft/command/argument/RegistryPredicateArgumentType$RegistryPredicate;getKey()Lcom/mojang/datafixers/util/Either;
-
tryCast
<E> Optional<RegistryPredicateArgumentType.RegistryPredicate<E>> tryCast(RegistryKey<? extends Registry<E>> registryRef) - Mappings:
Namespace Name Mixin selector official a
Ler$c;a(Ladc;)Ljava/util/Optional;
intermediary method_41175
Lnet/minecraft/class_7066$class_7068;method_41175(Lnet/minecraft/class_5321;)Ljava/util/Optional;
named tryCast
Lnet/minecraft/command/argument/RegistryPredicateArgumentType$RegistryPredicate;tryCast(Lnet/minecraft/registry/RegistryKey;)Ljava/util/Optional;
-
asString
String asString()- Mappings:
Namespace Name Mixin selector official b
Ler$c;b()Ljava/lang/String;
intermediary method_41176
Lnet/minecraft/class_7066$class_7068;method_41176()Ljava/lang/String;
named asString
Lnet/minecraft/command/argument/RegistryPredicateArgumentType$RegistryPredicate;asString()Ljava/lang/String;
-