Package net.minecraft.world.biome
Record Class BiomeParticleConfig
java.lang.Object
java.lang.Record
net.minecraft.world.biome.BiomeParticleConfig
- Record Components:
options-probability-
- Mappings:
Namespace Name named net/minecraft/world/biome/BiomeParticleConfigintermediary net/minecraft/class_4761official dutnamed optionsintermediary comp_4993official bnamed probabilityintermediary comp_4994official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<BiomeParticleConfig> private final ParticleEffectThe field for theoptionsrecord component.private final floatThe field for theprobabilityrecord 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.options()Returns the value of theoptionsrecord component.floatReturns the value of theprobabilityrecord component.booleanshouldAddParticle(Random random) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
options
The field for theoptionsrecord component. -
probability
private final float probabilityThe field for theprobabilityrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/world/biome/BiomeParticleConfig;CODEC:Lcom/mojang/serialization/Codec;intermediary field_24675Lnet/minecraft/class_4761;field_24675:Lcom/mojang/serialization/Codec;official aLdut;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
BiomeParticleConfig
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/world/biome/BiomeParticleConfig;<init>(Lnet/minecraft/particle/ParticleEffect;F)Vintermediary <init>Lnet/minecraft/class_4761;<init>(Lnet/minecraft/class_2394;F)Vofficial <init>Ldut;<init>(Lmc;F)V
-
-
Method Details
-
shouldAddParticle
- Mappings:
Namespace Name Mixin selector named shouldAddParticleLnet/minecraft/world/biome/BiomeParticleConfig;shouldAddParticle(Lnet/minecraft/util/math/random/Random;)Zintermediary method_24370Lnet/minecraft/class_4761;method_24370(Lnet/minecraft/class_5819;)Zofficial aLdut;a(Lbgs;)Z
-
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 '=='. -
options
Returns the value of theoptionsrecord component.- Returns:
- the value of the
optionsrecord component
-
probability
public float probability()Returns the value of theprobabilityrecord component.- Returns:
- the value of the
probabilityrecord component
-