Record Class Diagnostic
java.lang.Object
java.lang.Record
foundry.veil.impl.client.render.shader.injection.util.Diagnostic
-
Constructor Summary
ConstructorsConstructorDescriptionDiagnostic(@Nullable String resourcePath, @Nullable net.minecraft.resources.ResourceLocation injectionId, @Nullable net.minecraft.resources.ResourceLocation target, @Nullable String field, String message, Severity severity) Creates an instance of aDiagnosticrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@Nullable Stringfield()Returns the value of thefieldrecord component.final inthashCode()Returns a hash code value for this object.@Nullable net.minecraft.resources.ResourceLocationReturns the value of theinjectionIdrecord component.message()Returns the value of themessagerecord component.@Nullable StringReturns the value of theresourcePathrecord component.severity()Returns the value of theseverityrecord component.@Nullable net.minecraft.resources.ResourceLocationtarget()Returns the value of thetargetrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
Diagnostic
public Diagnostic(@Nullable @Nullable String resourcePath, @Nullable @Nullable net.minecraft.resources.ResourceLocation injectionId, @Nullable @Nullable net.minecraft.resources.ResourceLocation target, @Nullable @Nullable String field, String message, Severity severity) Creates an instance of aDiagnosticrecord class.- Parameters:
resourcePath- the value for theresourcePathrecord componentinjectionId- the value for theinjectionIdrecord componenttarget- the value for thetargetrecord componentfield- the value for thefieldrecord componentmessage- the value for themessagerecord componentseverity- the value for theseverityrecord 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). -
resourcePath
Returns the value of theresourcePathrecord component.- Returns:
- the value of the
resourcePathrecord component
-
injectionId
@Nullable public @Nullable net.minecraft.resources.ResourceLocation injectionId()Returns the value of theinjectionIdrecord component.- Returns:
- the value of the
injectionIdrecord component
-
target
@Nullable public @Nullable net.minecraft.resources.ResourceLocation target()Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
field
Returns the value of thefieldrecord component.- Returns:
- the value of the
fieldrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
severity
Returns the value of theseverityrecord component.- Returns:
- the value of the
severityrecord component
-