net.minecraft.command.argument

record RegistryPredicateArgumentType$RegistryKeyBased<T>

implements RegistryPredicateArgumentType$RegistryPredicate<T>

net.minecraft.commands.arguments.ResourceOrTagKeyArgument$ResourceResult
net.minecraft.class_7066$class_7067
net.minecraft.command.argument.RegistryPredicateArgumentType$RegistryKeyBased

Field summary

Modifier and TypeField
private final RegistryKey<T>
key
comp_522
key

Constructor summary

ModifierConstructor
private (RegistryKey<T> key)

Method summary

Modifier and TypeMethod
public com.mojang.datafixers.util.Either<RegistryKey<T>, TagKey<T>>
unwrap()
method_41173()
getKey()
public <E> Optional<RegistryPredicateArgumentType$RegistryPredicate<E>>
cast(ResourceKey<? extends Registry<E>> registryKey)
method_41175(class_5321<? extends class_2378<E>> arg0)
tryCast(RegistryKey<? extends Registry<E>> arg0)
public boolean
test(Holder<T> holder)
method_41174(class_6880<T> arg0)
test(RegistryEntry<T> arg0)
public String
asPrintable()
method_41176()
asString()
public RegistryKey<T>
key()
comp_522()
key()
public boolean
test(Object holder)
test(Object arg0)
test(Object entry)