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.song
The field for thesong
record component.Methods in net.minecraft.world.item that return EitherHolderModifier and TypeMethodDescriptionJukeboxPlayable.song()
Returns the value of thesong
record 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>> p_350627_, com.mojang.serialization.Codec<Holder<T>> p_350442_) static <T> StreamCodec
<RegistryFriendlyByteBuf, EitherHolder<T>> EitherHolder.streamCodec
(ResourceKey<Registry<T>> p_350628_, StreamCodec<RegistryFriendlyByteBuf, Holder<T>> p_350420_) Constructors in net.minecraft.world.item with parameters of type EitherHolderModifierConstructorDescriptionCreates an instance of aJukeboxPlayable
record 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.instrument
The field for theinstrument
record component.private final EitherHolder
<TrimMaterial> ProvidesTrimMaterial.material
The field for thematerial
record component.Methods in net.minecraft.world.item.component that return EitherHolderModifier and TypeMethodDescriptionInstrumentComponent.instrument()
Returns the value of theinstrument
record component.ProvidesTrimMaterial.material()
Returns the value of thematerial
record component.Constructors in net.minecraft.world.item.component with parameters of type EitherHolderModifierConstructorDescriptionInstrumentComponent
(EitherHolder<Instrument> instrument) Creates an instance of aInstrumentComponent
record class.ProvidesTrimMaterial
(EitherHolder<TrimMaterial> material) Creates an instance of aProvidesTrimMaterial
record class.