Package net.minecraft.sound
Record Class BiomeAdditionsSound
java.lang.Object
java.lang.Record
net.minecraft.sound.BiomeAdditionsSound
- Record Components:
sound-tickChance-
public record BiomeAdditionsSound(RegistryEntry<SoundEvent> sound, double tickChance)
extends Record
Represents an "additions sound" for a biome.
- Mappings:
Namespace Name named net/minecraft/sound/BiomeAdditionsSoundintermediary net/minecraft/class_4967official cdmnamed soundintermediary comp_4987official bnamed tickChanceintermediary comp_4988official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<BiomeAdditionsSound> private final RegistryEntry<SoundEvent> The field for thesoundrecord component.private final doubleThe field for thetickChancerecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.sound()Returns the value of thesoundrecord component.doubleReturns the value of thetickChancerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
sound
The field for thesoundrecord component. -
tickChance
private final double tickChanceThe field for thetickChancerecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/sound/BiomeAdditionsSound;CODEC:Lcom/mojang/serialization/Codec;intermediary field_24673Lnet/minecraft/class_4967;field_24673:Lcom/mojang/serialization/Codec;official aLcdm;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
BiomeAdditionsSound
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/sound/BiomeAdditionsSound;<init>(Lnet/minecraft/registry/entry/RegistryEntry;D)Vintermediary <init>Lnet/minecraft/class_4967;<init>(Lnet/minecraft/class_6880;D)Vofficial <init>Lcdm;<init>(Ljj;D)V
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
sound
Returns the value of thesoundrecord component.- Returns:
- the value of the
soundrecord component
-
tickChance
public double tickChance()Returns the value of thetickChancerecord component.- Returns:
- the value of the
tickChancerecord component
-