Record Class LoadError.IOError
java.lang.Object
java.lang.Record
dev.engine_room.flywheel.backend.glsl.LoadError.IOError
- All Implemented Interfaces:
LoadError
- Enclosing interface:
LoadError
public static record LoadError.IOError(net.minecraft.resources.ResourceLocation location, IOException exception)
extends Record
implements LoadError
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.engine_room.flywheel.backend.glsl.LoadError
LoadError.CircularDependency, LoadError.IncludeError, LoadError.IOError, LoadError.MalformedInclude, LoadError.ResourceError -
Constructor Summary
ConstructorsConstructorDescriptionIOError(net.minecraft.resources.ResourceLocation location, IOException exception) Creates an instance of aIOErrorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexceptionrecord component.final inthashCode()Returns a hash code value for this object.net.minecraft.resources.ResourceLocationlocation()Returns the value of thelocationrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IOError
Creates an instance of aIOErrorrecord class.- Parameters:
location- the value for thelocationrecord componentexception- the value for theexceptionrecord component
-
-
Method Details
-
generateMessage
- Specified by:
generateMessagein interfaceLoadError
-
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). -
location
public net.minecraft.resources.ResourceLocation location()Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
exception
Returns the value of theexceptionrecord component.- Returns:
- the value of the
exceptionrecord component
-