Record Class SubmitNodeStorage.BlockModelSubmit
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.SubmitNodeStorage.BlockModelSubmit
- Enclosing class:
SubmitNodeStorage
public static record SubmitNodeStorage.BlockModelSubmit(PoseStack.Pose pose, RenderType renderType, List<BlockStateModelPart> modelParts, int[] tintLayers, int lightCoords, int overlayCoords, int outlineColor)
extends Record
-
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 theoutlineColorrecord 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 int[]The field for thetintLayersrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionBlockModelSubmit(PoseStack.Pose pose, RenderType renderType, List<BlockStateModelPart> modelParts, int[] tintLayers, int lightCoords, int overlayCoords, int outlineColor) Creates an instance of aBlockModelSubmitrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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 theoutlineColorrecord component.intReturns the value of theoverlayCoordsrecord component.pose()Returns the value of theposerecord component.Returns the value of therenderTyperecord 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. -
outlineColor
private final int outlineColorThe field for theoutlineColorrecord component.
-
-
Constructor Details
-
BlockModelSubmit
public BlockModelSubmit(PoseStack.Pose pose, RenderType renderType, List<BlockStateModelPart> modelParts, int[] tintLayers, int lightCoords, int overlayCoords, int outlineColor) Creates an instance of aBlockModelSubmitrecord 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 componentoutlineColor- the value for theoutlineColorrecord 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. -
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
-
outlineColor
public int outlineColor()Returns the value of theoutlineColorrecord component.- Returns:
- the value of the
outlineColorrecord component
-