Record Class BlockModelFeatureRenderer.Submit
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.feature.BlockModelFeatureRenderer.Submit
- All Implemented Interfaces:
SubmitNode, TranslucentSubmit
- Enclosing class:
BlockModelFeatureRenderer
public static record BlockModelFeatureRenderer.Submit(PoseStack.Pose pose, RenderType renderType, List<BlockStateModelPart> modelParts, int[] tintLayers, int lightCoords, int overlayCoords, int tintColor, @Nullable PoseStack.Pose sheetedDecalPose)
extends Record
implements TranslucentSubmit
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thelightCoordsrecord component.private final List<BlockStateModelPart> The field for themodelPartsrecord 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 intThe field for thetintColorrecord component.private final int[]The field for thetintLayersrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSubmit(PoseStack.Pose pose, RenderType renderType, List<BlockStateModelPart> modelParts, int[] tintLayers, int lightCoords, int overlayCoords, int tintColor, @Nullable PoseStack.Pose sheetedDecalPose) Creates an instance of aSubmitrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatfinal 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.Returns the value of themodelPartsrecord 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.intReturns the value of thetintColorrecord component.int[]Returns the value of thetintLayersrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
pose
The field for theposerecord component. -
renderType
The field for therenderTyperecord component. -
modelParts
The field for themodelPartsrecord component. -
tintLayers
private final int[] tintLayersThe field for thetintLayersrecord component. -
lightCoords
private final int lightCoordsThe field for thelightCoordsrecord component. -
overlayCoords
private final int overlayCoordsThe field for theoverlayCoordsrecord component. -
tintColor
private final int tintColorThe field for thetintColorrecord component. -
sheetedDecalPose
The field for thesheetedDecalPoserecord component.
-
-
Constructor Details
-
Submit
public Submit(PoseStack.Pose pose, RenderType renderType, List<BlockStateModelPart> modelParts, int[] tintLayers, int lightCoords, int overlayCoords, int tintColor, @Nullable PoseStack.Pose sheetedDecalPose) Creates an instance of aSubmitrecord class.- Parameters:
pose- the value for theposerecord componentrenderType- the value for therenderTyperecord componentmodelParts- the value for themodelPartsrecord componenttintLayers- the value for thetintLayersrecord componentlightCoords- the value for thelightCoordsrecord componentoverlayCoords- the value for theoverlayCoordsrecord componenttintColor- the value for thetintColorrecord componentsheetedDecalPose- the value for thesheetedDecalPoserecord component
-
-
Method Details
-
distanceToCameraSq
public float distanceToCameraSq()- Specified by:
distanceToCameraSqin interfaceTranslucentSubmit
-
featureType
- 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. -
pose
Returns the value of theposerecord component.- Returns:
- the value of the
poserecord component
-
renderType
Returns the value of therenderTyperecord component.- Returns:
- the value of the
renderTyperecord component
-
modelParts
Returns the value of themodelPartsrecord component.- Returns:
- the value of the
modelPartsrecord component
-
tintLayers
public int[] tintLayers()Returns the value of thetintLayersrecord component.- Returns:
- the value of the
tintLayersrecord 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
-
tintColor
public int tintColor()Returns the value of thetintColorrecord component.- Returns:
- the value of the
tintColorrecord component
-
sheetedDecalPose
Returns the value of thesheetedDecalPoserecord component.- Returns:
- the value of the
sheetedDecalPoserecord component
-