net.minecraft.command.argument

record RegistryEntryPredicateArgumentType$EntryBased<T>

implements RegistryEntryPredicateArgumentType$EntryPredicate<T>

net.minecraft.commands.arguments.ResourceOrTagArgument$ResourceResult
net.minecraft.class_7737$class_7740
net.minecraft.command.argument.RegistryEntryPredicateArgumentType$EntryBased

Field summary

Modifier and TypeField
private final RegistryEntry$Reference<T>
value
comp_1023
value

Constructor summary

ModifierConstructor
private (RegistryEntry$Reference<T> value)

Method summary

Modifier and TypeMethod
public com.mojang.datafixers.util.Either<RegistryEntry$Reference<T>, RegistryEntryList$Named<T>>
unwrap()
method_45647()
getEntry()
public <E> Optional<RegistryEntryPredicateArgumentType$EntryPredicate<E>>
cast(ResourceKey<? extends Registry<E>> registryKey)
method_45648(class_5321<? extends class_2378<E>> arg0)
tryCast(RegistryKey<? extends Registry<E>> arg0)
public boolean
test(Holder<T> holder)
method_45649(class_6880<T> arg0)
test(RegistryEntry<T> arg0)
public String
asPrintable()
method_45650()
asString()
public RegistryEntry$Reference<T>
value()
comp_1023()
value()
public boolean
test(Object holder)
test(Object arg0)
test(Object entry)