Uses of Record Class
net.minecraft.world.item.EitherHolder
Packages that use EitherHolder
-
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 TypeMethodDescriptionstatic <T> EitherHolder
<T> EitherHolder.fromEither
(com.mojang.datafixers.util.Either<Holder<T>, ResourceKey<T>> p_350717_) JukeboxPlayable.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 EitherHolderModifierConstructorDescriptionJukeboxPlayable
(EitherHolder<JukeboxSong> song, boolean showInTooltip) Creates an instance of aJukeboxPlayable
record class.