Package net.minecraft.client.particle
Record Class ElderGuardianParticleGroup.ElderGuardianParticleRenderState
java.lang.Object
java.lang.Record
net.minecraft.client.particle.ElderGuardianParticleGroup.ElderGuardianParticleRenderState
- Enclosing class:
ElderGuardianParticleGroup
static record ElderGuardianParticleGroup.ElderGuardianParticleRenderState(Model<Unit> model, PoseStack poseStack, RenderType renderType, int color)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thecolorrecord component.The field for themodelrecord component.private final PoseStackThe field for theposeStackrecord component.private final RenderTypeThe field for therenderTyperecord component. -
Constructor Summary
ConstructorsConstructorDescriptionElderGuardianParticleRenderState(Model<Unit> model, PoseStack poseStack, RenderType renderType, int color) Creates an instance of aElderGuardianParticleRenderStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcolor()Returns the value of thecolorrecord component.final booleanIndicates whether some other object is "equal to" this one.fromParticle(ElderGuardianParticle pParticle, Camera pCamera, float pPartialTick) final inthashCode()Returns a hash code value for this object.model()Returns the value of themodelrecord component.Returns the value of theposeStackrecord component.Returns the value of therenderTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
model
The field for themodelrecord component. -
poseStack
The field for theposeStackrecord component. -
renderType
The field for therenderTyperecord component. -
color
private final int colorThe field for thecolorrecord component.
-
-
Constructor Details
-
ElderGuardianParticleRenderState
ElderGuardianParticleRenderState(Model<Unit> model, PoseStack poseStack, RenderType renderType, int color) Creates an instance of aElderGuardianParticleRenderStaterecord class.- Parameters:
model- the value for themodelrecord componentposeStack- the value for theposeStackrecord componentrenderType- the value for therenderTyperecord componentcolor- the value for thecolorrecord component
-
-
Method Details
-
fromParticle
public static ElderGuardianParticleGroup.ElderGuardianParticleRenderState fromParticle(ElderGuardianParticle 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 '=='. -
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
poseStack
Returns the value of theposeStackrecord component.- Returns:
- the value of the
poseStackrecord component
-
renderType
Returns the value of therenderTyperecord component.- Returns:
- the value of the
renderTyperecord component
-
color
public int color()Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-