Record Class ParticleGroup

java.lang.Object
java.lang.Record
net.minecraft.particle.ParticleGroup
Record Components:
maxCount -

public record ParticleGroup(int maxCount) extends Record
A group for particles. This group imposes a limit on the numbers of particles from this group rendered in a particle manager. Additional particles will be discarded when attempted to be rendered.
See Also:
Mappings:
Namespace Name
named net/minecraft/particle/ParticleGroup
intermediary net/minecraft/class_5878
official mb
named maxCount
intermediary comp_4820
official b
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final int
    The field for the maxCount record component.
    static final ParticleGroup
    The group for the minecraft:spore_blossom_air particle type.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ParticleGroup(int maxCount)
    Creates a particle group with a custom max particle count.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    equals(Object object)
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    Returns the maximum count of particles from this group that can be rendered in a particle manager.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • maxCount

      private final int maxCount
      The field for the maxCount record component.
    • SPORE_BLOSSOM_AIR

      public static final ParticleGroup SPORE_BLOSSOM_AIR
      The group for the minecraft:spore_blossom_air particle type. It has a count limit of 1000.
      Mappings:
      Namespace Name Mixin selector
      named SPORE_BLOSSOM_AIR Lnet/minecraft/particle/ParticleGroup;SPORE_BLOSSOM_AIR:Lnet/minecraft/particle/ParticleGroup;
      intermediary field_29077 Lnet/minecraft/class_5878;field_29077:Lnet/minecraft/class_5878;
      official a Lmb;a:Lmb;
  • Constructor Details

    • ParticleGroup

      public ParticleGroup(int maxCount)
      Creates a particle group with a custom max particle count.
      Parameters:
      maxCount - the maximum number of a type of particle allowed
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/particle/ParticleGroup;<init>(I)V
      intermediary <init> Lnet/minecraft/class_5878;<init>(I)V
      official <init> Lmb;<init>(I)V
  • Method Details

    • 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 '=='.
      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.
    • maxCount

      public int maxCount()
      Returns the maximum count of particles from this group that can be rendered in a particle manager.
      Returns:
      the maximum count of particles from this group that can be rendered in a particle manager
      Mappings:
      Namespace Name Mixin selector
      named maxCount Lnet/minecraft/particle/ParticleGroup;maxCount()I
      intermediary comp_4820 Lnet/minecraft/class_5878;comp_4820()I
      official a Lmb;a()I