public class EitherHolder<T>
extends java.lang.Object
| Constructor and Description |
|---|
EitherHolder(com.viaversion.viaversion.libs.mcstructs.converter.model.Either<Holder<T>,ResourceKey> either) |
EitherHolder(Holder<T> holder) |
EitherHolder(ResourceKey resourceKey) |
| Modifier and Type | Method and Description |
|---|---|
static <T> com.viaversion.viaversion.libs.mcstructs.converter.codec.Codec<EitherHolder<T>> |
codec(Registry registry,
com.viaversion.viaversion.libs.mcstructs.converter.codec.Codec<Holder<T>> codec) |
com.viaversion.viaversion.libs.mcstructs.converter.model.Either<Holder<T>,ResourceKey> |
either() |
static <T> com.viaversion.viaversion.libs.mcstructs.converter.codec.Codec<EitherHolder<T>> |
fileCodec(Registry registry,
com.viaversion.viaversion.libs.mcstructs.converter.codec.Codec<T> codec) |
static <T> com.viaversion.viaversion.libs.mcstructs.converter.codec.Codec<EitherHolder<T>> |
fixedCodec(Registry registry) |
java.lang.String |
toString() |
public EitherHolder(ResourceKey resourceKey)
public EitherHolder(com.viaversion.viaversion.libs.mcstructs.converter.model.Either<Holder<T>,ResourceKey> either)
public static <T> com.viaversion.viaversion.libs.mcstructs.converter.codec.Codec<EitherHolder<T>> fixedCodec(Registry registry)
public static <T> com.viaversion.viaversion.libs.mcstructs.converter.codec.Codec<EitherHolder<T>> fileCodec(Registry registry, com.viaversion.viaversion.libs.mcstructs.converter.codec.Codec<T> codec)
public static <T> com.viaversion.viaversion.libs.mcstructs.converter.codec.Codec<EitherHolder<T>> codec(Registry registry, com.viaversion.viaversion.libs.mcstructs.converter.codec.Codec<Holder<T>> codec)
public com.viaversion.viaversion.libs.mcstructs.converter.model.Either<Holder<T>,ResourceKey> either()
public java.lang.String toString()
toString in class java.lang.Object