Record Class BiomeParticleConfig

java.lang.Object
java.lang.Record
net.minecraft.world.biome.BiomeParticleConfig
Record Components:
particle -
probability -

public record BiomeParticleConfig(ParticleEffect particle, float probability) extends Record
Mappings:
Namespace Name
named net/minecraft/world/biome/BiomeParticleConfig
intermediary net/minecraft/class_4761
official cdo
named particle
intermediary comp_4993
official b
named probability
intermediary comp_4994
official c
  • Field Details

    • particle

      private final ParticleEffect particle
      The field for the particle record component.
    • probability

      private final float probability
      The field for the probability record component.
    • CODEC

      public static final com.mojang.serialization.Codec<BiomeParticleConfig> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/world/biome/BiomeParticleConfig;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_24675 Lnet/minecraft/class_4761;field_24675:Lcom/mojang/serialization/Codec;
      official a Lcdo;a:Lcom/mojang/serialization/Codec;
  • Constructor Details

    • BiomeParticleConfig

      public BiomeParticleConfig(ParticleEffect particle, float probability)
      Creates an instance of a BiomeParticleConfig record class.
      Parameters:
      particle - the value for the particle record component
      probability - the value for the probability record component
  • Method Details

    • shouldAddParticle

      public boolean shouldAddParticle(Random random)
      Mappings:
      Namespace Name Mixin selector
      named shouldAddParticle Lnet/minecraft/world/biome/BiomeParticleConfig;shouldAddParticle(Lnet/minecraft/util/math/random/Random;)Z
      intermediary method_24370 Lnet/minecraft/class_4761;method_24370(Lnet/minecraft/class_5819;)Z
      official a Lcdo;a(Lbgq;)Z
    • method_75621

      public static List<BiomeParticleConfig> method_75621(ParticleEffect particleEffect, float float2)
      Mappings:
      Namespace Name Mixin selector
      named method_75621 Lnet/minecraft/world/biome/BiomeParticleConfig;method_75621(Lnet/minecraft/particle/ParticleEffect;F)Ljava/util/List;
      intermediary method_75621 Lnet/minecraft/class_4761;method_75621(Lnet/minecraft/class_2394;F)Ljava/util/List;
      official a Lcdo;a(Lmc;F)Ljava/util/List;
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • particle

      public ParticleEffect particle()
      Returns the value of the particle record component.
      Returns:
      the value of the particle record component
    • probability

      public float probability()
      Returns the value of the probability record component.
      Returns:
      the value of the probability record component