Package net.minecraft.particle
Record Class ParticleGroup
java.lang.Object
java.lang.Record
net.minecraft.particle.ParticleGroup
- Record Components:
maxCount-
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/ParticleGroupintermediary net/minecraft/class_5878official mbnamed maxCountintermediary comp_4820official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for themaxCountrecord component.static final ParticleGroupThe group for the minecraft:spore_blossom_air particle type. -
Constructor Summary
ConstructorsConstructorDescriptionParticleGroup(int maxCount) Creates a particle group with a custommaxparticle count. -
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.intmaxCount()Returns the maximum count of particles from this group that can be rendered in a particle manager.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
maxCount
private final int maxCountThe field for themaxCountrecord component. -
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_AIRLnet/minecraft/particle/ParticleGroup;SPORE_BLOSSOM_AIR:Lnet/minecraft/particle/ParticleGroup;intermediary field_29077Lnet/minecraft/class_5878;field_29077:Lnet/minecraft/class_5878;official aLmb;a:Lmb;
-
-
Constructor Details
-
ParticleGroup
public ParticleGroup(int maxCount) Creates a particle group with a custommaxparticle 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)Vintermediary <init>Lnet/minecraft/class_5878;<init>(I)Vofficial <init>Lmb;<init>(I)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. All components in this record class are compared with '=='. -
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 maxCountLnet/minecraft/particle/ParticleGroup;maxCount()Iintermediary comp_4820Lnet/minecraft/class_5878;comp_4820()Iofficial aLmb;a()I
-