Record Class PipelineBuilder.InterfaceVariableInfo
java.lang.Object
java.lang.Record
com.mojang.renderpearl.frontend.shaders.PipelineBuilder.InterfaceVariableInfo
- Enclosing class:
PipelineBuilder
private static record PipelineBuilder.InterfaceVariableInfo(int baseType, int vectorLength, boolean flatInterpolated)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thebaseTyperecord component.private final booleanThe field for theflatInterpolatedrecord component.private final intThe field for thevectorLengthrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateInterfaceVariableInfo(int baseType, int vectorLength, boolean flatInterpolated) Creates an instance of aInterfaceVariableInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionintbaseType()Returns the value of thebaseTyperecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theflatInterpolatedrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.intReturns the value of thevectorLengthrecord component.
-
Field Details
-
baseType
private final int baseTypeThe field for thebaseTyperecord component. -
vectorLength
private final int vectorLengthThe field for thevectorLengthrecord component. -
flatInterpolated
private final boolean flatInterpolatedThe field for theflatInterpolatedrecord component.
-
-
Constructor Details
-
InterfaceVariableInfo
private InterfaceVariableInfo(int baseType, int vectorLength, boolean flatInterpolated) Creates an instance of aInterfaceVariableInforecord class.- Parameters:
baseType- the value for thebaseTyperecord componentvectorLength- the value for thevectorLengthrecord componentflatInterpolated- the value for theflatInterpolatedrecord component
-
-
Method Details
-
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 with thecomparemethod from their corresponding wrapper classes. -
baseType
public int baseType()Returns the value of thebaseTyperecord component.- Returns:
- the value of the
baseTyperecord component
-
vectorLength
public int vectorLength()Returns the value of thevectorLengthrecord component.- Returns:
- the value of the
vectorLengthrecord component
-
flatInterpolated
public boolean flatInterpolated()Returns the value of theflatInterpolatedrecord component.- Returns:
- the value of the
flatInterpolatedrecord component
-