Class ParticleGroup

java.lang.Object
net.minecraft.client.particle.ParticleGroup

public class ParticleGroup extends Object
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
official ir
intermediary net/minecraft/class_5878
named net/minecraft/client/particle/ParticleGroup
  • Field Details

    • 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
      official a Lir;a:Lir;
      intermediary field_29077 Lnet/minecraft/class_5878;field_29077:Lnet/minecraft/class_5878;
      named SPORE_BLOSSOM_AIR Lnet/minecraft/client/particle/ParticleGroup;SPORE_BLOSSOM_AIR:Lnet/minecraft/client/particle/ParticleGroup;
    • maxCount

      private final int maxCount
      Mappings:
      Namespace Name Mixin selector
      official b Lir;b:I
      intermediary field_29078 Lnet/minecraft/class_5878;field_29078:I
      named maxCount Lnet/minecraft/client/particle/ParticleGroup;maxCount:I
  • 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
      official <init> Lir;<init>(I)V
      intermediary <init> Lnet/minecraft/class_5878;<init>(I)V
      named <init> Lnet/minecraft/client/particle/ParticleGroup;<init>(I)V
  • Method Details

    • getMaxCount

      public int getMaxCount()
      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
      official a Lir;a()I
      intermediary method_34045 Lnet/minecraft/class_5878;method_34045()I
      named getMaxCount Lnet/minecraft/client/particle/ParticleGroup;getMaxCount()I