Package net.minecraft.client.renderer
Record Class SubmitNodeStorage.ItemSubmit
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.SubmitNodeStorage.ItemSubmit
- Enclosing class:
SubmitNodeStorage
public static record SubmitNodeStorage.ItemSubmit(PoseStack.Pose pose, ItemDisplayContext displayContext, int lightCoords, int overlayCoords, int outlineColor, int[] tintLayers, List<BakedQuad> quads, RenderType renderType, ItemStackRenderState.FoilType foilType)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ItemDisplayContextThe field for thedisplayContextrecord component.private final ItemStackRenderState.FoilTypeThe field for thefoilTyperecord component.private final intThe field for thelightCoordsrecord component.private final intThe field for theoutlineColorrecord component.private final intThe field for theoverlayCoordsrecord component.private final PoseStack.PoseThe field for theposerecord component.The field for thequadsrecord component.private final RenderTypeThe field for therenderTyperecord component.private final int[]The field for thetintLayersrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionItemSubmit(PoseStack.Pose pose, ItemDisplayContext displayContext, int lightCoords, int overlayCoords, int outlineColor, int[] tintLayers, List<BakedQuad> quads, RenderType renderType, ItemStackRenderState.FoilType foilType) Creates an instance of aItemSubmitrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedisplayContextrecord component.final booleanIndicates whether some other object is "equal to" this one.foilType()Returns the value of thefoilTyperecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of thelightCoordsrecord component.intReturns the value of theoutlineColorrecord component.intReturns the value of theoverlayCoordsrecord component.pose()Returns the value of theposerecord component.quads()Returns the value of thequadsrecord 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. -
displayContext
The field for thedisplayContextrecord 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. -
tintLayers
private final int[] tintLayersThe field for thetintLayersrecord component. -
quads
The field for thequadsrecord component. -
renderType
The field for therenderTyperecord component. -
foilType
The field for thefoilTyperecord component.
-
-
Constructor Details
-
ItemSubmit
public ItemSubmit(PoseStack.Pose pose, ItemDisplayContext displayContext, int lightCoords, int overlayCoords, int outlineColor, int[] tintLayers, List<BakedQuad> quads, RenderType renderType, ItemStackRenderState.FoilType foilType) Creates an instance of aItemSubmitrecord class.- Parameters:
pose- the value for theposerecord componentdisplayContext- the value for thedisplayContextrecord componentlightCoords- the value for thelightCoordsrecord componentoverlayCoords- the value for theoverlayCoordsrecord componentoutlineColor- the value for theoutlineColorrecord componenttintLayers- the value for thetintLayersrecord componentquads- the value for thequadsrecord componentrenderType- the value for therenderTyperecord componentfoilType- the value for thefoilTyperecord 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 '=='. -
pose
Returns the value of theposerecord component.- Returns:
- the value of the
poserecord component
-
displayContext
Returns the value of thedisplayContextrecord component.- Returns:
- the value of the
displayContextrecord 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
-
tintLayers
public int[] tintLayers()Returns the value of thetintLayersrecord component.- Returns:
- the value of the
tintLayersrecord component
-
quads
Returns the value of thequadsrecord component.- Returns:
- the value of the
quadsrecord component
-
renderType
Returns the value of therenderTyperecord component.- Returns:
- the value of the
renderTyperecord component
-
foilType
Returns the value of thefoilTyperecord component.- Returns:
- the value of the
foilTyperecord component
-