Record Class ConsoleSendCommand
java.lang.Object
java.lang.Record
com.burchard36.api.command.actions.ConsoleSendCommand
public record ConsoleSendCommand(org.bukkit.command.ConsoleCommandSender console, List<String> args)
extends Record
executor method for
OnConsoleSender
-
Constructor Summary
ConstructorsConstructorDescriptionConsoleSendCommand(org.bukkit.command.ConsoleCommandSender console, List<String> args)
Creates an instance of aConsoleSendCommand
record class. -
Method Summary
Modifier and TypeMethodDescriptionargs()
Returns the value of theargs
record component.org.bukkit.command.ConsoleCommandSender
console()
Returns the value of theconsole
record component.boolean
Indicates whether some other object is "equal to" this one.int
hashCode()
Returns a hash code value for this object.toString()
Returns a string representation of this record class.
-
Constructor Details
-
ConsoleSendCommand
Creates an instance of aConsoleSendCommand
record class.- Parameters:
console
- the value for theconsole
record componentargs
- the value for theargs
record 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)
. -
console
public org.bukkit.command.ConsoleCommandSender console()Returns the value of theconsole
record component.- Returns:
- the value of the
console
record component
-
args
Returns the value of theargs
record component.- Returns:
- the value of the
args
record component
-