Record Class PreRender<T>
java.lang.Object
java.lang.Record
net.ntrdeal.realapi.client.render.model.real_model.PreRender<T>
@Environment(CLIENT)
public record PreRender<T>(net.minecraft.client.renderer.SubmitNodeCollector collector, net.minecraft.client.renderer.item.ItemStackRenderState state, net.minecraft.client.renderer.item.ItemStackRenderState.LayerRenderState layer, com.mojang.blaze3d.vertex.PoseStack poseStack, int light, int overlay, int outline, @Nullable T data)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPreRender(net.minecraft.client.renderer.SubmitNodeCollector collector, net.minecraft.client.renderer.item.ItemStackRenderState state, net.minecraft.client.renderer.item.ItemStackRenderState.LayerRenderState layer, com.mojang.blaze3d.vertex.PoseStack poseStack, int light, int overlay, int outline, @Nullable T data) Creates an instance of aPreRenderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.client.renderer.SubmitNodeCollectorReturns the value of thecollectorrecord component.@Nullable Tdata()Returns the value of thedatarecord 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.item.ItemStackRenderState.LayerRenderStatelayer()Returns the value of thelayerrecord component.intlight()Returns the value of thelightrecord component.intoutline()Returns the value of theoutlinerecord component.intoverlay()Returns the value of theoverlayrecord component.com.mojang.blaze3d.vertex.PoseStackReturns the value of theposeStackrecord component.net.minecraft.client.renderer.item.ItemStackRenderStatestate()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PreRender
public PreRender(net.minecraft.client.renderer.SubmitNodeCollector collector, net.minecraft.client.renderer.item.ItemStackRenderState state, net.minecraft.client.renderer.item.ItemStackRenderState.LayerRenderState layer, com.mojang.blaze3d.vertex.PoseStack poseStack, int light, int overlay, int outline, @Nullable T data) Creates an instance of aPreRenderrecord class.- Parameters:
collector- the value for thecollectorrecord componentstate- the value for thestaterecord componentlayer- the value for thelayerrecord componentposeStack- the value for theposeStackrecord componentlight- the value for thelightrecord componentoverlay- the value for theoverlayrecord componentoutline- the value for theoutlinerecord componentdata- the value for thedatarecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
collector
public net.minecraft.client.renderer.SubmitNodeCollector collector()Returns the value of thecollectorrecord component.- Returns:
- the value of the
collectorrecord component
-
state
public net.minecraft.client.renderer.item.ItemStackRenderState state()Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
layer
public net.minecraft.client.renderer.item.ItemStackRenderState.LayerRenderState layer()Returns the value of thelayerrecord component.- Returns:
- the value of the
layerrecord component
-
poseStack
public com.mojang.blaze3d.vertex.PoseStack poseStack()Returns the value of theposeStackrecord component.- Returns:
- the value of the
poseStackrecord component
-
light
public int light()Returns the value of thelightrecord component.- Returns:
- the value of the
lightrecord component
-
overlay
public int overlay()Returns the value of theoverlayrecord component.- Returns:
- the value of the
overlayrecord component
-
outline
public int outline()Returns the value of theoutlinerecord component.- Returns:
- the value of the
outlinerecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-