Record Class ScriptArgumentBuilder
java.lang.Object
java.lang.Record
org.skriptlang.skript.bukkit.command.elements.structures.util.ScriptArgumentBuilder
- Record Components:
builder- The builder for the argument.data- The data describing the argument.
public record ScriptArgumentBuilder(com.mojang.brigadier.builder.ArgumentBuilder<io.papermc.paper.command.brigadier.CommandSourceStack, ?> builder, @Nullable ArgumentData<?> data)
extends Record
Utility record for passing around an argument builder with additional data.
-
Constructor Summary
ConstructorsConstructorDescriptionScriptArgumentBuilder(com.mojang.brigadier.builder.ArgumentBuilder<io.papermc.paper.command.brigadier.CommandSourceStack, ?> builder, @Nullable ArgumentData<?> data) Creates an instance of aScriptArgumentBuilderrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.brigadier.builder.ArgumentBuilder<io.papermc.paper.command.brigadier.CommandSourceStack, ?> builder()Returns the value of thebuilderrecord component.@Nullable ArgumentData<?> data()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScriptArgumentBuilder
public ScriptArgumentBuilder(com.mojang.brigadier.builder.ArgumentBuilder<io.papermc.paper.command.brigadier.CommandSourceStack, ?> builder, @Nullable @Nullable ArgumentData<?> data) Creates an instance of aScriptArgumentBuilderrecord class.
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
builder
-
data
-