Package net.minecraft.client.renderer
Record Class SubmitNodeStorage.TranslucentModelSubmit<S>
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.SubmitNodeStorage.TranslucentModelSubmit<S>
- Enclosing class:
SubmitNodeStorage
public static record SubmitNodeStorage.TranslucentModelSubmit<S>(SubmitNodeStorage.ModelSubmit<S> modelSubmit, RenderType renderType, Vector3f position)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SubmitNodeStorage.ModelSubmit<S> The field for themodelSubmitrecord component.private final Vector3fThe field for thepositionrecord component.private final RenderTypeThe field for therenderTyperecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTranslucentModelSubmit(SubmitNodeStorage.ModelSubmit<S> modelSubmit, RenderType renderType, Vector3f position) Creates an instance of aTranslucentModelSubmitrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themodelSubmitrecord component.position()Returns the value of thepositionrecord component.Returns the value of therenderTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
modelSubmit
The field for themodelSubmitrecord component. -
renderType
The field for therenderTyperecord component. -
position
The field for thepositionrecord component.
-
-
Constructor Details
-
TranslucentModelSubmit
public TranslucentModelSubmit(SubmitNodeStorage.ModelSubmit<S> modelSubmit, RenderType renderType, Vector3f position) Creates an instance of aTranslucentModelSubmitrecord class.- Parameters:
modelSubmit- the value for themodelSubmitrecord componentrenderType- the value for therenderTyperecord componentposition- the value for thepositionrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
modelSubmit
Returns the value of themodelSubmitrecord component.- Returns:
- the value of the
modelSubmitrecord component
-
renderType
Returns the value of therenderTyperecord component.- Returns:
- the value of the
renderTyperecord component
-
position
Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-