Record Class LivingRenderHandler.Insert<T extends net.minecraft.world.entity.LivingEntity,M extends net.minecraft.client.model.EntityModel<T>>

java.lang.Object
java.lang.Record
com.stereowalker.unionlib.insert.handler.LivingRenderHandler.Insert<T,M>
All Implemented Interfaces:
InsertHandler.Insert
Enclosing class:
LivingRenderHandler

public static record LivingRenderHandler.Insert<T extends net.minecraft.world.entity.LivingEntity,M extends net.minecraft.client.model.EntityModel<T>>(net.minecraft.world.entity.LivingEntity entity, net.minecraft.client.renderer.entity.LivingEntityRenderer<T extends net.minecraft.world.entity.LivingEntity,M extends net.minecraft.client.model.EntityModel<T>> renderer, float entityYaw, float partialTick, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource multiBufferSource, int packedLight) extends Record implements InsertHandler.Insert
  • Constructor Summary

    Constructors
    Constructor
    Description
    Insert(net.minecraft.world.entity.LivingEntity entity, net.minecraft.client.renderer.entity.LivingEntityRenderer<T,M> renderer, float entityYaw, float partialTick, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource multiBufferSource, int packedLight)
    Creates an instance of a Insert record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.entity.LivingEntity
    Returns the value of the entity record component.
    float
    Returns the value of the entityYaw record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    net.minecraft.client.renderer.MultiBufferSource
    Returns the value of the multiBufferSource record component.
    int
    Returns the value of the packedLight record component.
    float
    Returns the value of the partialTick record component.
    com.mojang.blaze3d.vertex.PoseStack
    Returns the value of the poseStack record component.
    net.minecraft.client.renderer.entity.LivingEntityRenderer<T,M>
    Returns the value of the renderer record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Insert

      public Insert(net.minecraft.world.entity.LivingEntity entity, net.minecraft.client.renderer.entity.LivingEntityRenderer<T,M> renderer, float entityYaw, float partialTick, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource multiBufferSource, int packedLight)
      Creates an instance of a Insert record class.
      Parameters:
      entity - the value for the entity record component
      renderer - the value for the renderer record component
      entityYaw - the value for the entityYaw record component
      partialTick - the value for the partialTick record component
      poseStack - the value for the poseStack record component
      multiBufferSource - the value for the multiBufferSource record component
      packedLight - the value for the packedLight record component
  • Method Details

    • 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.
    • entity

      public net.minecraft.world.entity.LivingEntity entity()
      Returns the value of the entity record component.
      Returns:
      the value of the entity record component
    • renderer

      public net.minecraft.client.renderer.entity.LivingEntityRenderer<T,M> renderer()
      Returns the value of the renderer record component.
      Returns:
      the value of the renderer record component
    • entityYaw

      public float entityYaw()
      Returns the value of the entityYaw record component.
      Returns:
      the value of the entityYaw record component
    • partialTick

      public float partialTick()
      Returns the value of the partialTick record component.
      Returns:
      the value of the partialTick record component
    • poseStack

      public com.mojang.blaze3d.vertex.PoseStack poseStack()
      Returns the value of the poseStack record component.
      Returns:
      the value of the poseStack record component
    • multiBufferSource

      public net.minecraft.client.renderer.MultiBufferSource multiBufferSource()
      Returns the value of the multiBufferSource record component.
      Returns:
      the value of the multiBufferSource record component
    • packedLight

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