SlotRange
interface SlotRange
Represents a range of inventory slots, identified by a serialized name and a list of slot indices.
This is used as the result type for slots arguments in commands.
Example usage in a command:
slots("range") {
executes { context ->
val range = context.getArgument("range", SlotRange::class.java)
println("Slots: ${range.slots}, Name: ${range.serializedName}")
1
}
}Content copied to clipboard