net.minecraft.world.item

public record EitherHolder<T>

czl
net.minecraft.world.item.EitherHolder
net.minecraft.class_9791
net.minecraft.registry.entry.LazyRegistryEntryReference
net.minecraft.src.C_336475_

Field summary

Modifier and TypeField
private final com.mojang.datafixers.util.Either<Holder<T>, ResourceKey<T>>
a
contents
comp_3636
contents
f_379464_

Constructor summary

ModifierConstructor
public (Holder<T> entry)
public (ResourceKey<T> key)
public (com.mojang.datafixers.util.Either<Holder<T>, ResourceKey<T>> arg0)

Method summary

Modifier and TypeMethod
public static <T> com.mojang.serialization.Codec<EitherHolder<T>>
a(alq<jt<T>> arg0, com.mojang.serialization.Codec<jg<T>> arg1)
codec(ResourceKey<Registry<T>> arg0, com.mojang.serialization.Codec<Holder<T>> arg1)
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)
m_340220_(C_5264_<C_4705_<T>> p_343702_, com.mojang.serialization.Codec<C_203228_<T>> p_342656_)
public static <T> StreamCodec<RegistryFriendlyByteBuf, EitherHolder<T>>
a(alq<jt<T>> arg0, ze<wp, jg<T>> arg1)
streamCodec(ResourceKey<Registry<T>> arg0, StreamCodec<RegistryFriendlyByteBuf, Holder<T>> arg1)
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)
m_338499_(C_5264_<C_4705_<T>> p_343828_, C_313866_<C_313350_, C_203228_<T>> p_345169_)
public Optional<T>
a(jt<T> arg0)
unwrap(Registry<T> arg0)
method_60740(class_2378<T> arg0)
resolveValue(Registry<T> registry)
m_338653_(C_4705_<T> arg0)
public Optional<Holder<T>>
a(ji$a arg0)
unwrap(HolderLookup$Provider arg0)
method_60739(class_7225$class_7874 arg0)
resolveEntry(RegistryWrapper$WrapperLookup registries)
m_340095_(C_213466_$C_254607_ arg0)
public Optional<ResourceKey<T>>
a()
key()
method_67385()
getKey()
m_340239_()
public com.mojang.datafixers.util.Either<Holder<T>, ResourceKey<T>>
b()
contents()
comp_3636()
contents()
f_379464_()