Package net.minecraft.client.particle
Record Class ItemPickupParticleGroup.ParticleInstance
java.lang.Object
java.lang.Record
net.minecraft.client.particle.ItemPickupParticleGroup.ParticleInstance
- Enclosing class:
ItemPickupParticleGroup
static record ItemPickupParticleGroup.ParticleInstance(EntityRenderState itemRenderState, double xOffset, double yOffset, double zOffset)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final EntityRenderStateThe field for theitemRenderStaterecord component.private final doubleThe field for thexOffsetrecord component.private final doubleThe field for theyOffsetrecord component.private final doubleThe field for thezOffsetrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionParticleInstance(EntityRenderState itemRenderState, double xOffset, double yOffset, double zOffset) Creates an instance of aParticleInstancerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fromParticle(ItemPickupParticle pParticle, Camera pCamera, float pPartialTick) final inthashCode()Returns a hash code value for this object.Returns the value of theitemRenderStaterecord component.final StringtoString()Returns a string representation of this record class.doublexOffset()Returns the value of thexOffsetrecord component.doubleyOffset()Returns the value of theyOffsetrecord component.doublezOffset()Returns the value of thezOffsetrecord component.
-
Field Details
-
itemRenderState
The field for theitemRenderStaterecord component. -
xOffset
private final double xOffsetThe field for thexOffsetrecord component. -
yOffset
private final double yOffsetThe field for theyOffsetrecord component. -
zOffset
private final double zOffsetThe field for thezOffsetrecord component.
-
-
Constructor Details
-
ParticleInstance
ParticleInstance(EntityRenderState itemRenderState, double xOffset, double yOffset, double zOffset) Creates an instance of aParticleInstancerecord class.- Parameters:
itemRenderState- the value for theitemRenderStaterecord componentxOffset- the value for thexOffsetrecord componentyOffset- the value for theyOffsetrecord componentzOffset- the value for thezOffsetrecord component
-
-
Method Details
-
fromParticle
public static ItemPickupParticleGroup.ParticleInstance fromParticle(ItemPickupParticle pParticle, Camera pCamera, float pPartialTick) -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
itemRenderState
Returns the value of theitemRenderStaterecord component.- Returns:
- the value of the
itemRenderStaterecord component
-
xOffset
public double xOffset()Returns the value of thexOffsetrecord component.- Returns:
- the value of the
xOffsetrecord component
-
yOffset
public double yOffset()Returns the value of theyOffsetrecord component.- Returns:
- the value of the
yOffsetrecord component
-
zOffset
public double zOffset()Returns the value of thezOffsetrecord component.- Returns:
- the value of the
zOffsetrecord component
-