Record Class CustomFeatureRenderer.Submit
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.feature.CustomFeatureRenderer.Submit
- All Implemented Interfaces:
BatchableSubmit, SubmitNode
- Enclosing class:
CustomFeatureRenderer
public static record CustomFeatureRenderer.Submit(PoseStack.Pose pose, RenderType renderType, SubmitNodeCollector.CustomGeometryRenderer customGeometryRenderer)
extends Record
implements BatchableSubmit
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SubmitNodeCollector.CustomGeometryRendererThe field for thecustomGeometryRendererrecord component.private final PoseStack.PoseThe field for theposerecord component.private final RenderTypeThe field for therenderTyperecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSubmit(PoseStack.Pose pose, RenderType renderType, SubmitNodeCollector.CustomGeometryRenderer customGeometryRenderer) Creates an instance of aSubmitrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbatchKey()Returns the value of thecustomGeometryRendererrecord 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.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
pose
The field for theposerecord component. -
renderType
The field for therenderTyperecord component. -
customGeometryRenderer
The field for thecustomGeometryRendererrecord component.
-
-
Constructor Details
-
Submit
public Submit(PoseStack.Pose pose, RenderType renderType, SubmitNodeCollector.CustomGeometryRenderer customGeometryRenderer) Creates an instance of aSubmitrecord class.- Parameters:
pose- the value for theposerecord componentrenderType- the value for therenderTyperecord componentcustomGeometryRenderer- the value for thecustomGeometryRendererrecord component
-
-
Method Details
-
batchKey
- Specified by:
batchKeyin interfaceBatchableSubmit
-
featureType
- Specified by:
featureTypein interfaceBatchableSubmit- 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. All components in this record class are compared withObjects::equals(Object,Object). -
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
-
customGeometryRenderer
Returns the value of thecustomGeometryRendererrecord component.- Returns:
- the value of the
customGeometryRendererrecord component
-