Record Class LivingRenderCancellableHandler.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.LivingRenderCancellableHandler.Insert<T,M>
- All Implemented Interfaces:
InsertHandler.Insert
- Enclosing class:
- LivingRenderCancellableHandler
public static record LivingRenderCancellableHandler.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, InsertCanceller canceller)
extends Record
implements InsertHandler.Insert
-
Constructor Summary
ConstructorsConstructorDescriptionInsert(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, InsertCanceller canceller) Creates an instance of aInsertrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecancellerrecord component.net.minecraft.world.entity.LivingEntityentity()Returns the value of theentityrecord component.floatReturns the value of theentityYawrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.client.renderer.MultiBufferSourceReturns the value of themultiBufferSourcerecord component.intReturns the value of thepackedLightrecord component.floatReturns the value of thepartialTickrecord component.com.mojang.blaze3d.vertex.PoseStackReturns the value of theposeStackrecord component.renderer()Returns the value of therendererrecord component.final StringtoString()Returns a string representation of this record class.
-
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, InsertCanceller canceller) Creates an instance of aInsertrecord class.- Parameters:
entity- the value for theentityrecord componentrenderer- the value for therendererrecord componententityYaw- the value for theentityYawrecord componentpartialTick- the value for thepartialTickrecord componentposeStack- the value for theposeStackrecord componentmultiBufferSource- the value for themultiBufferSourcerecord componentpackedLight- the value for thepackedLightrecord componentcanceller- the value for thecancellerrecord component
-
-
Method Details
-
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 '=='. -
entity
public net.minecraft.world.entity.LivingEntity entity()Returns the value of theentityrecord component.- Returns:
- the value of the
entityrecord component
-
renderer
Returns the value of therendererrecord component.- Returns:
- the value of the
rendererrecord component
-
entityYaw
public float entityYaw()Returns the value of theentityYawrecord component.- Returns:
- the value of the
entityYawrecord component
-
partialTick
public float partialTick()Returns the value of thepartialTickrecord component.- Returns:
- the value of the
partialTickrecord component
-
poseStack
public com.mojang.blaze3d.vertex.PoseStack poseStack()Returns the value of theposeStackrecord component.- Returns:
- the value of the
poseStackrecord component
-
multiBufferSource
public net.minecraft.client.renderer.MultiBufferSource multiBufferSource()Returns the value of themultiBufferSourcerecord component.- Returns:
- the value of the
multiBufferSourcerecord component
-
packedLight
public int packedLight()Returns the value of thepackedLightrecord component.- Returns:
- the value of the
packedLightrecord component
-
canceller
Returns the value of thecancellerrecord component.- Returns:
- the value of the
cancellerrecord component
-