Package net.minecraft
Record Class class_12194
java.lang.Object
java.lang.Record
net.minecraft.class_12194
- Record Components:
defaultMusic-creativeMusic-underwaterMusic-
public record class_12194(Optional<MusicSound> defaultMusic, Optional<MusicSound> creativeMusic, Optional<MusicSound> underwaterMusic)
extends Record
- Mappings:
Namespace Name named net/minecraft/class_12194intermediary net/minecraft/class_12194official cdtnamed defaultMusicintermediary comp_5133official dnamed creativeMusicintermediary comp_5134official enamed underwaterMusicintermediary comp_5135official f
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<class_12194> private final Optional<MusicSound> The field for thecreativeMusicrecord component.private final Optional<MusicSound> The field for thedefaultMusicrecord component.static final class_12194static final class_12194private final Optional<MusicSound> The field for theunderwaterMusicrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_12194(Optional<MusicSound> defaultMusic, Optional<MusicSound> creativeMusic, Optional<MusicSound> underwaterMusic) Creates an instance of aclass_12194record class.class_12194(RegistryEntry<SoundEvent> registryEntry) class_12194(MusicSound musicSound) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreativeMusicrecord component.Returns the value of thedefaultMusicrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.method_75638(MusicSound musicSound) method_75640(boolean bool, boolean bool2) final StringtoString()Returns a string representation of this record class.Returns the value of theunderwaterMusicrecord component.
-
Field Details
-
defaultMusic
The field for thedefaultMusicrecord component. -
creativeMusic
The field for thecreativeMusicrecord component. -
underwaterMusic
The field for theunderwaterMusicrecord component. -
field_63700
- Mappings:
Namespace Name Mixin selector named field_63700Lnet/minecraft/class_12194;field_63700:Lnet/minecraft/class_12194;intermediary field_63700Lnet/minecraft/class_12194;field_63700:Lnet/minecraft/class_12194;official aLcdt;a:Lcdt;
-
field_63701
- Mappings:
Namespace Name Mixin selector named field_63701Lnet/minecraft/class_12194;field_63701:Lnet/minecraft/class_12194;intermediary field_63701Lnet/minecraft/class_12194;field_63701:Lnet/minecraft/class_12194;official bLcdt;b:Lcdt;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/class_12194;CODEC:Lcom/mojang/serialization/Codec;intermediary field_63702Lnet/minecraft/class_12194;field_63702:Lcom/mojang/serialization/Codec;official cLcdt;c:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
class_12194
-
class_12194
-
class_12194
public class_12194(Optional<MusicSound> defaultMusic, Optional<MusicSound> creativeMusic, Optional<MusicSound> underwaterMusic) Creates an instance of aclass_12194record class.- Parameters:
defaultMusic- the value for thedefaultMusicrecord componentcreativeMusic- the value for thecreativeMusicrecord componentunderwaterMusic- the value for theunderwaterMusicrecord component
-
-
Method Details
-
method_75638
- Mappings:
Namespace Name Mixin selector named method_75638Lnet/minecraft/class_12194;method_75638(Lnet/minecraft/sound/MusicSound;)Lnet/minecraft/class_12194;intermediary method_75638Lnet/minecraft/class_12194;method_75638(Lnet/minecraft/class_5195;)Lnet/minecraft/class_12194;official aLcdt;a(Lbdb;)Lcdt;
-
method_75640
- Mappings:
Namespace Name Mixin selector named method_75640Lnet/minecraft/class_12194;method_75640(ZZ)Ljava/util/Optional;intermediary method_75640Lnet/minecraft/class_12194;method_75640(ZZ)Ljava/util/Optional;official aLcdt;a(ZZ)Ljava/util/Optional;
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
defaultMusic
Returns the value of thedefaultMusicrecord component.- Returns:
- the value of the
defaultMusicrecord component
-
creativeMusic
Returns the value of thecreativeMusicrecord component.- Returns:
- the value of the
creativeMusicrecord component
-
underwaterMusic
Returns the value of theunderwaterMusicrecord component.- Returns:
- the value of the
underwaterMusicrecord component
-