Package net.darkhax.openloader.commands
Record Class OpenLoaderClientCommand
java.lang.Object
java.lang.Record
net.darkhax.openloader.commands.OpenLoaderClientCommand
- All Implemented Interfaces:
ClientCommand
public record OpenLoaderClientCommand(Path configDir, ConfigSchema config)
extends Record
implements ClientCommand
-
Constructor Summary
ConstructorsConstructorDescriptionOpenLoaderClientCommand(Path configDir, ConfigSchema config) Creates an instance of aOpenLoaderClientCommandrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncommands()config()Returns the value of theconfigrecord component.Returns the value of theconfigDirrecord component.final booleanIndicates whether some other object is "equal to" this one.intexecute()final inthashCode()Returns a hash code value for this object.id()final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.darkhax.openloader.commands.ClientCommand
isHidden
-
Constructor Details
-
OpenLoaderClientCommand
Creates an instance of aOpenLoaderClientCommandrecord class.- Parameters:
configDir- the value for theconfigDirrecord componentconfig- the value for theconfigrecord component
-
-
Method Details
-
execute
public int execute()- Specified by:
executein interfaceClientCommand
-
id
- Specified by:
idin interfaceClientCommand
-
commands
- Specified by:
commandsin interfaceClientCommand
-
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). -
configDir
Returns the value of theconfigDirrecord component.- Returns:
- the value of the
configDirrecord component
-
config
Returns the value of theconfigrecord component.- Returns:
- the value of the
configrecord component
-