Record Class ModelFeatureRenderer.Submit<S>
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.feature.ModelFeatureRenderer.Submit<S>
- All Implemented Interfaces:
BatchableSubmit, SubmitNode, TranslucentSubmit
- Enclosing class:
ModelFeatureRenderer
public static record ModelFeatureRenderer.Submit<S>(RenderType renderType, PoseStack.Pose pose, Model<? super S> model, S state, int lightCoords, int overlayCoords, int tintedColor, @Nullable TextureAtlasSprite sprite, @Nullable PoseStack.Pose sheetedDecalPose)
extends Record
implements BatchableSubmit, TranslucentSubmit
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thelightCoordsrecord component.The field for themodelrecord component.private final intThe field for theoverlayCoordsrecord component.private final PoseStack.PoseThe field for theposerecord component.private final RenderTypeThe field for therenderTyperecord component.private final @Nullable PoseStack.PoseThe field for thesheetedDecalPoserecord component.private final @Nullable TextureAtlasSpriteThe field for thespriterecord component.private final SThe field for thestaterecord component.private final intThe field for thetintedColorrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSubmit(RenderType renderType, PoseStack.Pose pose, Model<? super S> model, S state, int lightCoords, int overlayCoords, int tintedColor, @Nullable TextureAtlasSprite sprite, @Nullable PoseStack.Pose sheetedDecalPose) Creates an instance of aSubmitrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbatchKey()floatfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thelightCoordsrecord component.model()Returns the value of themodelrecord component.intReturns the value of theoverlayCoordsrecord component.pose()Returns the value of theposerecord component.Returns the value of therenderTyperecord component.Returns the value of thesheetedDecalPoserecord component.sprite()Returns the value of thespriterecord component.state()Returns the value of thestaterecord component.intReturns the value of thetintedColorrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
renderType
The field for therenderTyperecord component. -
pose
The field for theposerecord component. -
model
-
state
The field for thestaterecord component. -
lightCoords
private final int lightCoordsThe field for thelightCoordsrecord component. -
overlayCoords
private final int overlayCoordsThe field for theoverlayCoordsrecord component. -
tintedColor
private final int tintedColorThe field for thetintedColorrecord component. -
sprite
The field for thespriterecord component. -
sheetedDecalPose
The field for thesheetedDecalPoserecord component.
-
-
Constructor Details
-
Submit
public Submit(RenderType renderType, PoseStack.Pose pose, Model<? super S> model, S state, int lightCoords, int overlayCoords, int tintedColor, @Nullable TextureAtlasSprite sprite, @Nullable PoseStack.Pose sheetedDecalPose) Creates an instance of aSubmitrecord class.- Parameters:
renderType- the value for therenderTyperecord componentpose- the value for theposerecord componentmodel- the value for themodelrecord componentstate- the value for thestaterecord componentlightCoords- the value for thelightCoordsrecord componentoverlayCoords- the value for theoverlayCoordsrecord componenttintedColor- the value for thetintedColorrecord componentsprite- the value for thespriterecord componentsheetedDecalPose- the value for thesheetedDecalPoserecord component
-
-
Method Details
-
batchKey
- Specified by:
batchKeyin interfaceBatchableSubmit
-
distanceToCameraSq
public float distanceToCameraSq()- Specified by:
distanceToCameraSqin interfaceTranslucentSubmit
-
featureType
- Specified by:
featureTypein interfaceBatchableSubmit- Specified by:
featureTypein interfaceSubmitNode- Specified by:
featureTypein interfaceTranslucentSubmit
-
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. -
renderType
Returns the value of therenderTyperecord component.- Returns:
- the value of the
renderTyperecord component
-
pose
Returns the value of theposerecord component.- Returns:
- the value of the
poserecord component
-
model
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
lightCoords
public int lightCoords()Returns the value of thelightCoordsrecord component.- Returns:
- the value of the
lightCoordsrecord component
-
overlayCoords
public int overlayCoords()Returns the value of theoverlayCoordsrecord component.- Returns:
- the value of the
overlayCoordsrecord component
-
tintedColor
public int tintedColor()Returns the value of thetintedColorrecord component.- Returns:
- the value of the
tintedColorrecord component
-
sprite
Returns the value of thespriterecord component.- Returns:
- the value of the
spriterecord component
-
sheetedDecalPose
Returns the value of thesheetedDecalPoserecord component.- Returns:
- the value of the
sheetedDecalPoserecord component
-