cwp | |
net.minecraft.world.item.EitherHolder | |
net.minecraft.class_9791 | |
net.minecraft.registry.RegistryPair | |
net.minecraft.world.item.EitherHolder |
Field summary
Modifier and Type | Field | ||||||||
---|---|---|---|---|---|---|---|---|---|
private final Optional<Holder<T>> |
| ||||||||
private final ResourceKey<T> |
|
Constructor summary
Modifier | Constructor |
---|---|
public | (Holder<T> entry) |
public | (ResourceKey<T> key) |
public | (Optional<Holder<T>> arg0, ResourceKey<T> arg1) |
Method summary
Modifier and Type | Method | ||||||||
---|---|---|---|---|---|---|---|---|---|
public static <T> com.mojang.serialization.Codec<EitherHolder<T>> |
| ||||||||
public static <T> StreamCodec<RegistryFriendlyByteBuf, EitherHolder<T>> |
| ||||||||
public com.mojang.datafixers.util.Either<Holder<T>, ResourceKey<T>> |
| ||||||||
public static <T> EitherHolder<T> |
| ||||||||
public Optional<T> |
| ||||||||
public Optional<Holder<T>> |
| ||||||||
public Optional<Holder<T>> |
| ||||||||
public ResourceKey<T> |
|