Record Class InjectionBodyParser.Result
java.lang.Object
java.lang.Record
foundry.veil.impl.client.render.shader.injection.InjectionBodyParser.Result
- Enclosing class:
InjectionBodyParser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbody()Returns the value of thebodyrecord component.final booleanIndicates whether some other object is "equal to" this one.globals()Returns the value of theglobalsrecord component.final inthashCode()Returns a hash code value for this object.booleanisHead()Returns the value of theisHeadrecord component.final StringtoString()Returns a string representation of this record class.intversion()Returns the value of theversionrecord component.
-
Constructor Details
-
Result
Creates an instance of aResultrecord class.- Parameters:
body- the value for thebodyrecord componentglobals- the value for theglobalsrecord componentisHead- the value for theisHeadrecord componentversion- the value for theversionrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
body
Returns the value of thebodyrecord component.- Returns:
- the value of the
bodyrecord component
-
globals
Returns the value of theglobalsrecord component.- Returns:
- the value of the
globalsrecord component
-
isHead
public boolean isHead()Returns the value of theisHeadrecord component.- Returns:
- the value of the
isHeadrecord component
-
version
public int version()Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-