Record Class ShapeOutlineFeatureRenderer.Submit
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.feature.ShapeOutlineFeatureRenderer.Submit
- All Implemented Interfaces:
SubmitNode
- Enclosing class:
ShapeOutlineFeatureRenderer
public static record ShapeOutlineFeatureRenderer.Submit(PoseStack.Pose pose, VoxelShape shape, RenderType renderType, int color, float width)
extends Record
implements SubmitNode
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thecolorrecord component.private final PoseStack.PoseThe field for theposerecord component.private final RenderTypeThe field for therenderTyperecord component.private final VoxelShapeThe field for theshaperecord component.private final floatThe field for thewidthrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSubmit(PoseStack.Pose pose, VoxelShape shape, RenderType renderType, int color, float width) Creates an instance of aSubmitrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcolor()Returns the value of thecolorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.pose()Returns the value of theposerecord component.Returns the value of therenderTyperecord component.shape()Returns the value of theshaperecord component.final StringtoString()Returns a string representation of this record class.floatwidth()Returns the value of thewidthrecord component.
-
Field Details
-
pose
The field for theposerecord component. -
shape
The field for theshaperecord component. -
renderType
The field for therenderTyperecord component. -
color
private final int colorThe field for thecolorrecord component. -
width
private final float widthThe field for thewidthrecord component.
-
-
Constructor Details
-
Submit
Creates an instance of aSubmitrecord class.- Parameters:
pose- the value for theposerecord componentshape- the value for theshaperecord componentrenderType- the value for therenderTyperecord componentcolor- the value for thecolorrecord componentwidth- the value for thewidthrecord component
-
-
Method Details
-
featureType
- Specified by:
featureTypein interfaceSubmitNode
-
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
-
shape
Returns the value of theshaperecord component.- Returns:
- the value of the
shaperecord component
-
renderType
Returns the value of therenderTyperecord component.- Returns:
- the value of the
renderTyperecord component
-
color
public int color()Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
width
public float width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-