Uses of Record Class
net.minecraft.registry.RegistryPair
Packages that use RegistryPair
Package
Description
The base package for all Minecraft classes.
-
Uses of RegistryPair in net.minecraft
Fields in net.minecraft declared as RegistryPairModifier and TypeFieldDescriptionprivate final RegistryPair<Instrument> class_10710.instrumentThe field for theinstrumentrecord component.private final RegistryPair<ArmorTrimMaterial> class_10711.materialThe field for thematerialrecord component.Methods in net.minecraft that return RegistryPairModifier and TypeMethodDescriptionclass_10710.instrument()Returns the value of theinstrumentrecord component.class_10711.material()Returns the value of thematerialrecord component.Constructors in net.minecraft with parameters of type RegistryPairModifierConstructorDescriptionclass_10710(RegistryPair<Instrument> registryPair) class_10711(RegistryPair<ArmorTrimMaterial> registryPair) -
Uses of RegistryPair in net.minecraft.component.type
Fields in net.minecraft.component.type declared as RegistryPairModifier and TypeFieldDescriptionprivate final RegistryPair<JukeboxSong> JukeboxPlayableComponent.songThe field for thesongrecord component.Methods in net.minecraft.component.type that return RegistryPairModifier and TypeMethodDescriptionJukeboxPlayableComponent.song()Returns the value of thesongrecord component.Constructors in net.minecraft.component.type with parameters of type RegistryPair -
Uses of RegistryPair in net.minecraft.registry
Methods in net.minecraft.registry that return RegistryPairModifier and TypeMethodDescriptionstatic <T> RegistryPair<T> RegistryPair.create(com.mojang.datafixers.util.Either<RegistryEntry<T>, RegistryKey<T>> entryOrKey) Methods in net.minecraft.registry that return types with arguments of type RegistryPairModifier 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)