Record Class ShaderModification.Function
java.lang.Object
java.lang.Record
foundry.veil.impl.client.render.shader.modifier.ShaderModification.Function
- Enclosing interface:
ShaderModification
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncode()
Returns the value of thecode
record component.static ShaderModification.Function
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
head()
Returns the value of thehead
record component.name()
Returns the value of thename
record component.int
Returns the value of theparameters
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Function
Creates an instance of aFunction
record class.- Parameters:
name
- the value for thename
record componentparameters
- the value for theparameters
record componenthead
- the value for thehead
record componentcode
- the value for thecode
record component
-
-
Method Details
-
create
public static ShaderModification.Function create(String name, int parameters, boolean head, String code) -
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
parameters
public int parameters()Returns the value of theparameters
record component.- Returns:
- the value of the
parameters
record component
-
head
public boolean head()Returns the value of thehead
record component.- Returns:
- the value of the
head
record component
-
code
Returns the value of thecode
record component.- Returns:
- the value of the
code
record component
-