Uses of Record Class
net.minecraft.registry.RegistryPair
-
Uses of RegistryPair in net.minecraft.component.type
Modifier and TypeFieldDescriptionprivate final RegistryPair
<JukeboxSong> JukeboxPlayableComponent.song
The field for thesong
record component.Modifier and TypeMethodDescriptionJukeboxPlayableComponent.song()
Returns the value of thesong
record component.ModifierConstructorDescriptionJukeboxPlayableComponent
(RegistryPair<JukeboxSong> registryPair, boolean bool) -
Uses of RegistryPair in net.minecraft.registry
Modifier and TypeMethodDescriptionstatic <T> RegistryPair
<T> RegistryPair.create
(com.mojang.datafixers.util.Either<RegistryEntry<T>, RegistryKey<T>> entryOrKey) Modifier and TypeMethodDescriptionstatic <T> com.mojang.serialization.Codec
<RegistryPair<T>> RegistryPair.createCodec
(RegistryKey<Registry<T>> registryRef, com.mojang.serialization.Codec<RegistryEntry<T>> entryCodec) static <T> PacketCodec
<RegistryByteBuf, RegistryPair<T>> RegistryPair.createPacketCodec
(RegistryKey<Registry<T>> registryRef, PacketCodec<RegistryByteBuf, RegistryEntry<T>> entryPacketCodec)