net.minecraft.world.item

public record EitherHolder<T>

cwp
net.minecraft.world.item.EitherHolder
net.minecraft.class_9791
net.minecraft.unmapped.C_cemdjcik
net.minecraft.registry.RegistryPair
net.minecraft.unmapped.C_cemdjcik
net.minecraft.src.C_336475_
net.minecraft.world.item.EitherHolder

Field summary

Modifier and TypeField
private final Optional<Holder<T>>
a
holder
comp_2831
f_qnqhgyhl
entry
holder
f_336775_
private final ResourceKey<T>
b
key
comp_2832
f_thrdwewk
key
key
f_336716_

Constructor summary

ModifierConstructor
public (Holder<T> entry)
public (ResourceKey<T> key)
public (Optional<Holder<T>> holder, ResourceKey<T> key)

Method summary

Modifier and TypeMethod
public static <T> com.mojang.serialization.Codec<EitherHolder<T>>
a(aly<kd<T>> arg0, com.mojang.serialization.Codec<jq<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)
m_eqftwaqy(C_xhhleach<C_tqxyjqsk<T>> arg0, com.mojang.serialization.Codec<C_cjzoxshv<T>> arg1)
createCodec(RegistryKey<Registry<T>> registryRef, com.mojang.serialization.Codec<RegistryEntry<T>> entryCodec)
m_eqftwaqy(RegistryKey<Registry<T>> registry, com.mojang.serialization.Codec<Holder<T>> codec)
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(aly<kd<T>> arg0, zt<xg, jq<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)
m_buqemmca(C_xhhleach<C_tqxyjqsk<T>> arg0, C_qsrmwluu<C_bngyzsts, C_cjzoxshv<T>> arg1)
createPacketCodec(RegistryKey<Registry<T>> registryRef, PacketCodec<RegistryByteBuf, RegistryEntry<T>> entryPacketCodec)
m_buqemmca(RegistryKey<Registry<T>> registry, PacketCodec<RegistryByteBuf, Holder<T>> packetCodec)
m_338499_(C_5264_<C_4705_<T>> p_343828_, C_313866_<C_313350_, C_203228_<T>> p_345169_)
public com.mojang.datafixers.util.Either<Holder<T>, ResourceKey<T>>
a()
asEither()
method_60734()
m_uboflrdv()
asEither()
m_340003_()
public static <T> EitherHolder<T>
a(com.mojang.datafixers.util.Either<jq<T>, aly<T>> arg0)
fromEither(com.mojang.datafixers.util.Either<Holder<T>, ResourceKey<T>> arg0)
method_60738(com.mojang.datafixers.util.Either<class_6880<T>, class_5321<T>> arg0)
m_qbkrihis(com.mojang.datafixers.util.Either<C_cjzoxshv<T>, C_xhhleach<T>> arg0)
create(com.mojang.datafixers.util.Either<RegistryEntry<T>, RegistryKey<T>> entryOrKey)
m_338940_(com.mojang.datafixers.util.Either<C_203228_<T>, C_5264_<T>> p_343721_)
public Optional<T>
a(kd<T> arg0)
unwrap(Registry<T> arg0)
method_60740(class_2378<T> arg0)
m_qoomwnjz(C_tqxyjqsk<T> arg0)
getValue(Registry<T> registry)
m_qoomwnjz(Registry<T> registry)
m_338653_(C_4705_<T> arg0)
public Optional<Holder<T>>
a(js$a arg0)
unwrap(HolderLookup$Provider arg0)
method_60739(class_7225$class_7874 arg0)
m_bomacrpw(C_vtbxyypo$C_etmlgbig arg0)
getEntry(RegistryWrapper$WrapperLookup registries)
m_340095_(C_213466_$C_254607_ arg0)
public Optional<Holder<T>>
b()
holder()
comp_2831()
m_kkwdocbn()
entry()
holder()
f_336775_()
public ResourceKey<T>
c()
key()
comp_2832()
m_ybbvrily()
key()
key()
f_336716_()