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_12194
intermediary net/minecraft/class_12194
official cdt
named defaultMusic
intermediary comp_5133
official d
named creativeMusic
intermediary comp_5134
official e
named underwaterMusic
intermediary comp_5135
official f
  • Field Details

    • defaultMusic

      private final Optional<MusicSound> defaultMusic
      The field for the defaultMusic record component.
    • creativeMusic

      private final Optional<MusicSound> creativeMusic
      The field for the creativeMusic record component.
    • underwaterMusic

      private final Optional<MusicSound> underwaterMusic
      The field for the underwaterMusic record component.
    • field_63700

      public static final class_12194 field_63700
      Mappings:
      Namespace Name Mixin selector
      named field_63700 Lnet/minecraft/class_12194;field_63700:Lnet/minecraft/class_12194;
      intermediary field_63700 Lnet/minecraft/class_12194;field_63700:Lnet/minecraft/class_12194;
      official a Lcdt;a:Lcdt;
    • field_63701

      public static final class_12194 field_63701
      Mappings:
      Namespace Name Mixin selector
      named field_63701 Lnet/minecraft/class_12194;field_63701:Lnet/minecraft/class_12194;
      intermediary field_63701 Lnet/minecraft/class_12194;field_63701:Lnet/minecraft/class_12194;
      official b Lcdt;b:Lcdt;
    • CODEC

      public static final com.mojang.serialization.Codec<class_12194> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/class_12194;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_63702 Lnet/minecraft/class_12194;field_63702:Lcom/mojang/serialization/Codec;
      official c Lcdt;c:Lcom/mojang/serialization/Codec;
  • Constructor Details

  • Method Details

    • method_75638

      public class_12194 method_75638(MusicSound musicSound)
      Mappings:
      Namespace Name Mixin selector
      named method_75638 Lnet/minecraft/class_12194;method_75638(Lnet/minecraft/sound/MusicSound;)Lnet/minecraft/class_12194;
      intermediary method_75638 Lnet/minecraft/class_12194;method_75638(Lnet/minecraft/class_5195;)Lnet/minecraft/class_12194;
      official a Lcdt;a(Lbdb;)Lcdt;
    • method_75640

      public Optional<MusicSound> method_75640(boolean bool, boolean bool2)
      Mappings:
      Namespace Name Mixin selector
      named method_75640 Lnet/minecraft/class_12194;method_75640(ZZ)Ljava/util/Optional;
      intermediary method_75640 Lnet/minecraft/class_12194;method_75640(ZZ)Ljava/util/Optional;
      official a Lcdt;a(ZZ)Ljava/util/Optional;
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • defaultMusic

      public Optional<MusicSound> defaultMusic()
      Returns the value of the defaultMusic record component.
      Returns:
      the value of the defaultMusic record component
    • creativeMusic

      public Optional<MusicSound> creativeMusic()
      Returns the value of the creativeMusic record component.
      Returns:
      the value of the creativeMusic record component
    • underwaterMusic

      public Optional<MusicSound> underwaterMusic()
      Returns the value of the underwaterMusic record component.
      Returns:
      the value of the underwaterMusic record component