| Package | Description |
|---|---|
| com.datasiqn.commandcore | |
| com.datasiqn.commandcore.command | |
| com.datasiqn.commandcore.command.source |
| Modifier and Type | Method and Description |
|---|---|
static @NotNull CommandSource |
CommandCore.createSource(org.bukkit.command.CommandSender sender)
Creates a new
CommandSource |
static @NotNull CommandSource |
CommandCore.createSource(org.bukkit.command.CommandSender sender)
Creates a new
CommandSource |
| Modifier and Type | Method and Description |
|---|---|
static @NotNull CommandContext |
CommandCore.createContext(CommandSource source,
Command command,
String label,
Arguments arguments)
Creates a new
CommandContext |
static @NotNull CommandContext |
CommandCore.createContext(CommandSource source,
Command command,
String label,
Arguments arguments)
Creates a new
CommandContext |
| Modifier and Type | Method and Description |
|---|---|
@NotNull CommandSource |
CommandContext.getSource()
Gets the sender that executed this command
|
@NotNull CommandSource |
CommandContext.getSource()
Gets the sender that executed this command
|
| Modifier and Type | Class and Description |
|---|---|
class |
BlockCommandSource
Represents a
CommandSource where the sender is a BlockCommandSender
NOTE: Do not directly instantiate this class! Instead, use the factory method createSource |
class |
EntityCommandSource
Represents a
CommandSource where the sender is an Entity. |
class |
GenericCommandSource
Represents a generic command source that is none of the other command sources.
|
class |
PlayerCommandSource
Represents a
CommandSource where the sender is a Player.\
NOTE: Do not directly instantiate this class! Instead, use the factory method createSource |
Copyright © 2024. All rights reserved.