Record Class ItemPickupParticleGroup.State
java.lang.Object
java.lang.Record
net.minecraft.client.particle.ItemPickupParticleGroup.State
- All Implemented Interfaces:
ParticleGroupRenderState
- Enclosing class:
ItemPickupParticleGroup
private static record ItemPickupParticleGroup.State(List<ItemPickupParticleGroup.ParticleInstance> instances)
extends Record
implements ParticleGroupRenderState
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<ItemPickupParticleGroup.ParticleInstance> The field for theinstancesrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateState(List<ItemPickupParticleGroup.ParticleInstance> instances) Creates an instance of aStaterecord class. -
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.Returns the value of theinstancesrecord component.voidsubmit(SubmitNodeCollector submitNodeCollector, CameraRenderState camera) final StringtoString()Returns a string representation of this record class.Methods inherited from interface ParticleGroupRenderState
clear
-
Field Details
-
instances
The field for theinstancesrecord component.
-
-
Constructor Details
-
State
Creates an instance of aStaterecord class.- Parameters:
instances- the value for theinstancesrecord component
-
-
Method Details
-
submit
- Specified by:
submitin interfaceParticleGroupRenderState
-
toString
-
hashCode
-
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 withObjects::equals(Object,Object). -
instances
Returns the value of theinstancesrecord component.- Returns:
- the value of the
instancesrecord component
-