Record Class ExtendedBlockModelFeatureRenderer.Submit
java.lang.Object
java.lang.Record
net.neoforged.neoforge.client.submit.ExtendedBlockModelFeatureRenderer.Submit
- All Implemented Interfaces:
SubmitNode, TranslucentSubmit
- Enclosing class:
ExtendedBlockModelFeatureRenderer
public static record ExtendedBlockModelFeatureRenderer.Submit(PoseStack.Pose pose, List<BlockStateModelPart> modelParts, boolean translucent, int[] tintLayers, int lightCoords, int overlayCoords, int tintColor)
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 intThe field for thetintColorrecord component.private final int[]The field for thetintLayersrecord component.private final booleanThe field for thetranslucentrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSubmit(PoseStack.Pose pose, List<BlockStateModelPart> modelParts, boolean translucent, int[] tintLayers, int lightCoords, int overlayCoords, int tintColor) 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.intReturns the value of thetintColorrecord component.int[]Returns the value of thetintLayersrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thetranslucentrecord component.
-
Field Details
-
pose
The field for theposerecord component. -
modelParts
The field for themodelPartsrecord component. -
translucent
private final boolean translucentThe field for thetranslucentrecord 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.
-
-
Constructor Details
-
Submit
public Submit(PoseStack.Pose pose, List<BlockStateModelPart> modelParts, boolean translucent, int[] tintLayers, int lightCoords, int overlayCoords, int tintColor) Creates an instance of aSubmitrecord class.- Parameters:
pose- the value for theposerecord componentmodelParts- the value for themodelPartsrecord componenttranslucent- the value for thetranslucentrecord componenttintLayers- the value for thetintLayersrecord componentlightCoords- the value for thelightCoordsrecord componentoverlayCoords- the value for theoverlayCoordsrecord componenttintColor- the value for thetintColorrecord 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
-
modelParts
Returns the value of themodelPartsrecord component.- Returns:
- the value of the
modelPartsrecord component
-
translucent
public boolean translucent()Returns the value of thetranslucentrecord component.- Returns:
- the value of the
translucentrecord 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
-