net.minecraft.registry.entry

public record RegistryEntry$Direct<T>

implements RegistryEntry<T>

net.minecraft.core.Holder$Direct
net.minecraft.class_6880$class_6881
net.minecraft.registry.entry.RegistryEntry$Direct

Field summary

Modifier and TypeField
private final T
value
comp_349
value

Constructor summary

ModifierConstructor
public (T value)

Method summary

Modifier and TypeMethod
public boolean
isBound()
method_40227()
hasKeyAndValue()
public boolean
is(Identifier key)
method_40226(class_2960 arg0)
matchesId(Identifier arg0)
public boolean
is(ResourceKey<T> key)
method_40225(class_5321<T> arg0)
matchesKey(RegistryKey<T> arg0)
public boolean
is(TagKey<T> tag)
method_40220(class_6862<T> arg0)
isIn(TagKey<T> arg0)
public boolean
is(Holder<T> holder)
method_55838(class_6880<T> arg0)
matches(RegistryEntry<T> arg0)
public boolean
is(Predicate<ResourceKey<T>> predicate)
method_40224(Predicate<class_5321<T>> arg0)
matches(Predicate<RegistryKey<T>> arg0)
public com.mojang.datafixers.util.Either<RegistryKey<T>, T>
unwrap()
method_40229()
getKeyOrValue()
public Optional<RegistryKey<T>>
unwrapKey()
method_40230()
getKey()
public RegistryEntry$Type
kind()
method_40231()
getType()
public boolean
canSerializeIn(HolderOwner<T> registry)
method_46745(class_7876<T> arg0)
ownerEquals(RegistryEntryOwner<T> arg0)
public Stream<TagKey<T>>
tags()
method_40228()
streamTags()
public T
value()
comp_349()
value()