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 Details

    • model

      private final Model<Unit> model
      The field for the model record component.
    • poseStack

      private final PoseStack poseStack
      The field for the poseStack record component.
    • renderType

      private final RenderType renderType
      The field for the renderType record component.
    • color

      private final int color
      The field for the color record component.
  • Constructor Details

    • ElderGuardianParticleRenderState

      ElderGuardianParticleRenderState(Model<Unit> model, PoseStack poseStack, RenderType renderType, int color)
      Creates an instance of a ElderGuardianParticleRenderState record class.
      Parameters:
      model - the value for the model record component
      poseStack - the value for the poseStack record component
      renderType - the value for the renderType record component
      color - the value for the color record component
  • Method Details

    • fromParticle

      public static ElderGuardianParticleGroup.ElderGuardianParticleRenderState fromParticle(ElderGuardianParticle pParticle, Camera pCamera, float pPartialTick)
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • model

      public Model<Unit> model()
      Returns the value of the model record component.
      Returns:
      the value of the model record component
    • poseStack

      public PoseStack poseStack()
      Returns the value of the poseStack record component.
      Returns:
      the value of the poseStack record component
    • renderType

      public RenderType renderType()
      Returns the value of the renderType record component.
      Returns:
      the value of the renderType record component
    • color

      public int color()
      Returns the value of the color record component.
      Returns:
      the value of the color record component