Package net.minecraft.sound
Record Class BiomeMoodSound
java.lang.Object
java.lang.Record
net.minecraft.sound.BiomeMoodSound
- Record Components:
sound-tickDelay-blockSearchExtent-offset-
public record BiomeMoodSound(RegistryEntry<SoundEvent> sound, int tickDelay, int blockSearchExtent, double offset)
extends Record
- Mappings:
Namespace Name named net/minecraft/sound/BiomeMoodSoundintermediary net/minecraft/class_4968official cdnnamed soundintermediary comp_4989official cnamed tickDelayintermediary comp_4990official dnamed blockSearchExtentintermediary comp_4991official enamed offsetintermediary comp_4992official f
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for theblockSearchExtentrecord component.static final BiomeMoodSoundstatic final com.mojang.serialization.Codec<BiomeMoodSound> private final doubleThe field for theoffsetrecord component.private final RegistryEntry<SoundEvent> The field for thesoundrecord component.private final intThe field for thetickDelayrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionBiomeMoodSound(RegistryEntry<SoundEvent> sound, int cultivationTicks, int spawnRange, double extraDistance) -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theblockSearchExtentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleoffset()Returns the value of theoffsetrecord component.sound()Returns the value of thesoundrecord component.intReturns the value of thetickDelayrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
sound
The field for thesoundrecord component. -
tickDelay
private final int tickDelayThe field for thetickDelayrecord component. -
blockSearchExtent
private final int blockSearchExtentThe field for theblockSearchExtentrecord component. -
offset
private final double offsetThe field for theoffsetrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/sound/BiomeMoodSound;CODEC:Lcom/mojang/serialization/Codec;intermediary field_24674Lnet/minecraft/class_4968;field_24674:Lcom/mojang/serialization/Codec;official aLcdn;a:Lcom/mojang/serialization/Codec;
-
CAVE
- Mappings:
Namespace Name Mixin selector named CAVELnet/minecraft/sound/BiomeMoodSound;CAVE:Lnet/minecraft/sound/BiomeMoodSound;intermediary field_23146Lnet/minecraft/class_4968;field_23146:Lnet/minecraft/class_4968;official bLcdn;b:Lcdn;
-
-
Constructor Details
-
BiomeMoodSound
public BiomeMoodSound(RegistryEntry<SoundEvent> sound, int cultivationTicks, int spawnRange, double extraDistance) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/sound/BiomeMoodSound;<init>(Lnet/minecraft/registry/entry/RegistryEntry;IID)Vintermediary <init>Lnet/minecraft/class_4968;<init>(Lnet/minecraft/class_6880;IID)Vofficial <init>Lcdn;<init>(Ljj;IID)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
-
tickDelay
public int tickDelay()Returns the value of thetickDelayrecord component.- Returns:
- the value of the
tickDelayrecord component
-
blockSearchExtent
public int blockSearchExtent()Returns the value of theblockSearchExtentrecord component.- Returns:
- the value of the
blockSearchExtentrecord component
-
offset
public double offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-