Record Class MovingBlockFeatureRenderer.Submit
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.feature.MovingBlockFeatureRenderer.Submit
- All Implemented Interfaces:
SubmitNode, TranslucentSubmit
- Enclosing class:
MovingBlockFeatureRenderer
public static record MovingBlockFeatureRenderer.Submit(Matrix4fc pose, MovingBlockRenderState movingBlockRenderState, int outlineColor, boolean forceTranslucent)
extends Record
implements TranslucentSubmit
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for theforceTranslucentrecord component.private final MovingBlockRenderStateThe field for themovingBlockRenderStaterecord component.private final intThe field for theoutlineColorrecord component.private final Matrix4fcThe field for theposerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSubmit(Matrix4fc pose, MovingBlockRenderState movingBlockRenderState, int outlineColor, boolean forceTranslucent) Creates an instance of aSubmitrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theforceTranslucentrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themovingBlockRenderStaterecord component.intReturns the value of theoutlineColorrecord component.pose()Returns the value of theposerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
pose
The field for theposerecord component. -
movingBlockRenderState
The field for themovingBlockRenderStaterecord component. -
outlineColor
private final int outlineColorThe field for theoutlineColorrecord component. -
forceTranslucent
private final boolean forceTranslucentThe field for theforceTranslucentrecord component.
-
-
Constructor Details
-
Submit
public Submit(Matrix4fc pose, MovingBlockRenderState movingBlockRenderState, int outlineColor, boolean forceTranslucent) Creates an instance of aSubmitrecord class.- Parameters:
pose- the value for theposerecord componentmovingBlockRenderState- the value for themovingBlockRenderStaterecord componentoutlineColor- the value for theoutlineColorrecord componentforceTranslucent- the value for theforceTranslucentrecord 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
-
movingBlockRenderState
Returns the value of themovingBlockRenderStaterecord component.- Returns:
- the value of the
movingBlockRenderStaterecord component
-
outlineColor
public int outlineColor()Returns the value of theoutlineColorrecord component.- Returns:
- the value of the
outlineColorrecord component
-
forceTranslucent
public boolean forceTranslucent()Returns the value of theforceTranslucentrecord component.- Returns:
- the value of the
forceTranslucentrecord component
-