net.minecraft.registry.entry

public record LazyRegistryEntryReference<T>

net.minecraft.world.item.EitherHolder
net.minecraft.class_9791
net.minecraft.registry.entry.LazyRegistryEntryReference

Field summary

Modifier and TypeField
private final com.mojang.datafixers.util.Either<RegistryEntry<T>, RegistryKey<T>>
contents
comp_3636
contents

Constructor summary

ModifierConstructor
public (RegistryEntry<T> entry)
public (RegistryKey<T> key)
public (com.mojang.datafixers.util.Either<RegistryEntry<T>, RegistryKey<T>> contents)

Method summary

Modifier and TypeMethod
public static <T> com.mojang.serialization.Codec<LazyRegistryEntryReference<T>>
codec(ResourceKey<Registry<T>> registry, com.mojang.serialization.Codec<Holder<T>> holderCodec)
method_60736(class_5321<class_2378<T>> arg0, com.mojang.serialization.Codec<class_6880<T>> arg1)
createCodec(RegistryKey<Registry<T>> registryRef, com.mojang.serialization.Codec<RegistryEntry<T>> entryCodec)
public static <T> PacketCodec<RegistryByteBuf, LazyRegistryEntryReference<T>>
streamCodec(ResourceKey<Registry<T>> registry, StreamCodec<RegistryFriendlyByteBuf, Holder<T>> streamHolderCodec)
method_60737(class_5321<class_2378<T>> arg0, class_9139<class_9129, class_6880<T>> arg1)
createPacketCodec(RegistryKey<Registry<T>> registryRef, PacketCodec<RegistryByteBuf, RegistryEntry<T>> entryPacketCodec)
public Optional<T>
unwrap(Registry<T> registry)
method_60740(class_2378<T> arg0)
resolveValue(Registry<T> registry)
public Optional<RegistryEntry<T>>
unwrap(HolderLookup$Provider provider)
method_60739(class_7225$class_7874 arg0)
resolveEntry(RegistryWrapper$WrapperLookup registries)
public Optional<RegistryKey<T>>
key()
method_67385()
getKey()
public com.mojang.datafixers.util.Either<RegistryEntry<T>, RegistryKey<T>>
contents()
comp_3636()
contents()
private static Optional
lambda$unwrap$4(HolderLookup$Provider arg0, ResourceKey arg1)
method_67388(class_7225$class_7874 arg0, class_5321 arg1)
method_67388(RegistryWrapper$WrapperLookup arg0, RegistryKey key)
private static RegistryEntry
lambda$unwrap$3(Holder$Reference arg0)
method_67386(class_6880$class_6883 arg0)
method_67386(RegistryEntry$Reference entry)
private static Optional
lambda$unwrap$2(Holder arg0)
method_67387(class_6880 arg0)
method_67387(RegistryEntry entry)
private static com.mojang.serialization.DataResult
lambda$codec$1(ResourceKey arg0)
method_60735(class_5321 arg0)
method_60735(RegistryKey arg0)
private static String
lambda$codec$0()
method_60744()
method_60744()