Uses of Record Class
net.minecraft.world.item.EitherHolder
Packages that use EitherHolder
Package
Description
-
Uses of EitherHolder in net.minecraft.core.component
Fields in net.minecraft.core.component with type parameters of type EitherHolderModifier and TypeFieldDescriptionstatic final DataComponentType<EitherHolder<ChickenVariant>> DataComponents.CHICKEN_VARIANT -
Uses of EitherHolder in net.minecraft.world.item
Fields in net.minecraft.world.item declared as EitherHolderModifier and TypeFieldDescriptionprivate final EitherHolder<JukeboxSong> JukeboxPlayable.songThe field for thesongrecord component.Methods in net.minecraft.world.item that return EitherHolderModifier and TypeMethodDescriptionJukeboxPlayable.song()Returns the value of thesongrecord component.Methods in net.minecraft.world.item that return types with arguments of type EitherHolderModifier and TypeMethodDescriptionstatic <T> com.mojang.serialization.Codec<EitherHolder<T>> EitherHolder.codec(ResourceKey<Registry<T>> pRegistryKey, com.mojang.serialization.Codec<Holder<T>> pCodec) static <T> StreamCodec<RegistryFriendlyByteBuf, EitherHolder<T>> EitherHolder.streamCodec(ResourceKey<Registry<T>> pRegistryKey, StreamCodec<RegistryFriendlyByteBuf, Holder<T>> pStreamCodec) Constructors in net.minecraft.world.item with parameters of type EitherHolderModifierConstructorDescriptionCreates an instance of aJukeboxPlayablerecord class. -
Uses of EitherHolder in net.minecraft.world.item.component
Fields in net.minecraft.world.item.component declared as EitherHolderModifier and TypeFieldDescriptionprivate final EitherHolder<Instrument> InstrumentComponent.instrumentThe field for theinstrumentrecord component.private final EitherHolder<TrimMaterial> ProvidesTrimMaterial.materialThe field for thematerialrecord component.Methods in net.minecraft.world.item.component that return EitherHolderModifier and TypeMethodDescriptionInstrumentComponent.instrument()Returns the value of theinstrumentrecord component.ProvidesTrimMaterial.material()Returns the value of thematerialrecord component.Constructors in net.minecraft.world.item.component with parameters of type EitherHolderModifierConstructorDescriptionInstrumentComponent(EitherHolder<Instrument> instrument) Creates an instance of aInstrumentComponentrecord class.ProvidesTrimMaterial(EitherHolder<TrimMaterial> material) Creates an instance of aProvidesTrimMaterialrecord class.