Record Class BrigadierHelper.CommandHelpMeta
java.lang.Object
java.lang.Record
com.soulfiremc.server.command.brigadier.BrigadierHelper.CommandHelpMeta
- Enclosing class:
BrigadierHelper
-
Constructor Summary
ConstructorsConstructorDescriptionCommandHelpMeta(@Nullable String help, boolean privateCommand) Creates an instance of aCommandHelpMetarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.forPublicCommand(String help) final inthashCode()Returns a hash code value for this object.@Nullable Stringhelp()Returns the value of thehelprecord component.booleanReturns the value of theprivateCommandrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CommandHelpMeta
Creates an instance of aCommandHelpMetarecord class.- Parameters:
help- the value for thehelprecord componentprivateCommand- the value for theprivateCommandrecord component
-
-
Method Details
-
forPrivateCommand
-
forPublicCommand
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
help
Returns the value of thehelprecord component.- Returns:
- the value of the
helprecord component
-
privateCommand
public boolean privateCommand()Returns the value of theprivateCommandrecord component.- Returns:
- the value of the
privateCommandrecord component
-