Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- add(double, double, double) - Method in class dev.polv.taleapi.world.Location
-
Creates a new location by adding the given offsets.
- add(ContextKey<T>, T) - Method in class dev.polv.taleapi.permission.ContextSet.Builder
-
Adds a context key-value pair.
- add(String, String) - Method in class dev.polv.taleapi.permission.ContextSet.Builder
-
Adds a raw string key-value pair.
- addAll(ContextSet) - Method in class dev.polv.taleapi.permission.ContextSet.Builder
-
Adds all contexts from another ContextSet.
- aliases(String...) - Method in class dev.polv.taleapi.command.Command.Builder
-
Adds aliases for this command.
- allow() - Static method in class dev.polv.taleapi.event.player.PermissionCheckCallback.CheckResult
-
Creates a result that overrides with ALLOW.
- allow() - Method in class dev.polv.taleapi.permission.PermissionNode.Builder
-
Sets the state to ALLOW.
- allow(Object) - Static method in class dev.polv.taleapi.event.player.PermissionCheckCallback.CheckResult
-
Creates a result that overrides with ALLOW and a payload.
- allow(Object) - Static method in class dev.polv.taleapi.permission.PermissionResult
-
Creates an ALLOW result with the given payload.
- allow(String) - Static method in class dev.polv.taleapi.permission.PermissionNode
-
Creates a simple ALLOW permission node with no payload.
- allow(String) - Method in class dev.polv.taleapi.permission.PermissionTree
-
Sets a simple permission (ALLOW with no payload).
- allow(String, Object) - Static method in class dev.polv.taleapi.permission.PermissionNode
-
Creates an ALLOW permission node with a payload.
- ALLOW - Enum constant in enum class dev.polv.taleapi.permission.Tristate
-
Permission is explicitly granted.
- ALLOWED - Static variable in class dev.polv.taleapi.permission.PermissionResult
-
Result indicating the permission was allowed with no payload.
- appliesInContext(ContextSet) - Method in class dev.polv.taleapi.permission.PermissionNode
-
Checks if this node applies in the given context.
- apply(String) - Method in class dev.polv.taleapi.command.suggestion.Suggestion
-
Applies this suggestion to the given input string.
- argument(String, ArgumentType<T>) - Static method in class dev.polv.taleapi.command.Command
-
Creates an argument node for building commands.
- argument(String, ArgumentType<T>) - Static method in class dev.polv.taleapi.command.CommandNode
-
Creates an argument command node.
- argument(String, String) - Static method in exception dev.polv.taleapi.command.CommandException
-
Creates an argument exception indicating an invalid argument.
- ARGUMENT - Enum constant in enum class dev.polv.taleapi.command.CommandException.Type
-
Invalid argument value.
- ArgumentNode(String, ArgumentType<V>) - Constructor for class dev.polv.taleapi.command.CommandNode.ArgumentNode
-
Creates a new argument node with the given name and type.
- ArgumentType<T> - Interface in dev.polv.taleapi.command.argument
-
Defines how to parse and suggest a command argument.
- as(Class<T>) - Method in interface dev.polv.taleapi.config.ConfigNode
-
Converts this node to a typed object.
- as(Class<T>) - Method in class dev.polv.taleapi.config.json.JacksonConfigNode
- as(Class<T>) - Method in class dev.polv.taleapi.permission.PermissionResult
-
Returns the payload cast to the specified type.
- asBoolean() - Method in enum class dev.polv.taleapi.permission.Tristate
-
Converts this tristate to a boolean value.
- asBoolean(boolean) - Method in class dev.polv.taleapi.permission.PermissionResult
-
Returns the payload as a boolean.
- asBoolean(boolean) - Method in enum class dev.polv.taleapi.permission.Tristate
-
Converts this tristate to a boolean with a default for UNDEFINED.
- asDouble(double) - Method in class dev.polv.taleapi.permission.PermissionResult
-
Returns the payload as a double.
- asFuture() - Method in enum class dev.polv.taleapi.event.EventResult
-
Returns this result wrapped in a completed
CompletableFuture. - asInt(int) - Method in class dev.polv.taleapi.permission.PermissionResult
-
Returns the payload as an integer.
- asLong(long) - Method in class dev.polv.taleapi.permission.PermissionResult
-
Returns the payload as a long.
- asMap() - Method in class dev.polv.taleapi.permission.ContextSet
-
Returns an unmodifiable view of all contexts.
- asOptionalDouble() - Method in class dev.polv.taleapi.permission.PermissionResult
-
Returns the payload as an optional double.
- asOptionalInt() - Method in class dev.polv.taleapi.permission.PermissionResult
-
Returns the payload as an optional integer.
- asOptionalLong() - Method in class dev.polv.taleapi.permission.PermissionResult
-
Returns the payload as an optional long.
- asPlayer() - Method in interface dev.polv.taleapi.command.CommandSender
-
Returns this sender as a player, if applicable.
- asString() - Method in class dev.polv.taleapi.permission.PermissionResult
-
Returns the payload as a string.
- asString(String) - Method in class dev.polv.taleapi.permission.PermissionResult
-
Returns the payload as a string with a default.
- at(int) - Static method in class dev.polv.taleapi.command.suggestion.StringRange
-
Creates a range at a single position.
B
- between(int, int) - Static method in class dev.polv.taleapi.command.suggestion.StringRange
-
Creates a range between two positions.
- Block - Annotation Interface in dev.polv.taleapi.codegen.annotation
-
Marks a class as a block definition for JSON generation.
- BlockBreakCallback - Interface in dev.polv.taleapi.event.block
-
Called when a player attempts to break a block.
- BlockPlaceCallback - Interface in dev.polv.taleapi.event.block
-
Called when a player attempts to place a block.
- bool() - Static method in class dev.polv.taleapi.command.argument.BooleanArgumentType
-
Returns the boolean argument type instance.
- BooleanArgumentType - Class in dev.polv.taleapi.command.argument
-
Argument type for boolean values.
- broadcastMessage(String) - Method in interface dev.polv.taleapi.server.TaleServer
-
Broadcasts a message to all online players.
- build() - Method in class dev.polv.taleapi.command.Command.Builder
-
Builds the command.
- build() - Method in class dev.polv.taleapi.command.CommandContext.Builder
-
Builds the CommandContext.
- build() - Method in class dev.polv.taleapi.command.suggestion.SuggestionsBuilder
-
Builds the suggestions.
- build() - Method in class dev.polv.taleapi.config.json.JsonProvider.Builder
-
Builds the JsonProvider with the configured settings.
- build() - Method in class dev.polv.taleapi.permission.ContextSet.Builder
-
Builds the immutable ContextSet.
- build() - Method in class dev.polv.taleapi.permission.PermissionNode.Builder
-
Builds the immutable PermissionNode.
- builder() - Static method in class dev.polv.taleapi.config.json.JsonProvider
-
Creates a builder for configuring a JsonProvider.
- builder() - Static method in class dev.polv.taleapi.permission.ContextSet
-
Creates a new builder for constructing a ContextSet.
- builder(CommandSender, String) - Static method in class dev.polv.taleapi.command.CommandContext
-
Creates a new builder for constructing a CommandContext.
- builder(String) - Static method in class dev.polv.taleapi.command.Command
-
Creates a builder for a command with the given name.
- builder(String) - Static method in class dev.polv.taleapi.permission.PermissionNode
-
Creates a builder for a permission node with the given key.
- buildFuture() - Method in class dev.polv.taleapi.command.suggestion.SuggestionsBuilder
-
Builds the suggestions as a completed future.
C
- cancel() - Static method in enum class dev.polv.taleapi.event.EventResult
-
Returns a completed future with
EventResult.CANCEL. - CANCEL - Enum constant in enum class dev.polv.taleapi.event.EventResult
-
Cancel the event.
- canRead() - Method in class dev.polv.taleapi.command.argument.StringReader
-
Checks if there are more characters to read.
- canRead(int) - Method in class dev.polv.taleapi.command.argument.StringReader
-
Checks if the specified number of characters can be read.
- canUse(CommandSender) - Method in class dev.polv.taleapi.command.Command
-
Checks if the sender has permission to use this command.
- canUse(CommandSender) - Method in class dev.polv.taleapi.command.CommandNode
-
Checks if the sender can use this node.
- children - Variable in class dev.polv.taleapi.command.CommandNode
-
The child nodes of this command node.
- clear() - Method in class dev.polv.taleapi.command.CommandRegistry
-
Removes all registered commands.
- clear() - Method in class dev.polv.taleapi.permission.PermissionTree
-
Clears all permissions from this tree.
- clearListeners() - Method in class dev.polv.taleapi.event.Event
-
Removes all registered listeners.
- Command - Class in dev.polv.taleapi.command
-
Represents a complete command with its tree structure.
- Command.Builder - Class in dev.polv.taleapi.command
-
Builder for constructing
Commandinstances. - CommandContext - Class in dev.polv.taleapi.command
-
Contains the context for a command execution.
- CommandContext.Builder - Class in dev.polv.taleapi.command
-
Builder for constructing
CommandContextinstances. - CommandException - Exception in dev.polv.taleapi.command
-
Exception thrown when a command fails to execute or parse.
- CommandException(String) - Constructor for exception dev.polv.taleapi.command.CommandException
-
Creates a new CommandException with a message.
- CommandException(String, CommandException.Type) - Constructor for exception dev.polv.taleapi.command.CommandException
-
Creates a new CommandException with a message and type.
- CommandException(String, Throwable) - Constructor for exception dev.polv.taleapi.command.CommandException
-
Creates a new CommandException with a message and cause.
- CommandException(String, Throwable, CommandException.Type) - Constructor for exception dev.polv.taleapi.command.CommandException
-
Creates a new CommandException with a message, cause, and type.
- CommandException.Type - Enum Class in dev.polv.taleapi.command
-
The type of command exception.
- CommandExecuteCallback - Interface in dev.polv.taleapi.command
-
Called when a command is about to be executed.
- CommandExecutor - Interface in dev.polv.taleapi.command
-
Functional interface for command execution logic.
- CommandNode<T extends CommandNode<T>> - Class in dev.polv.taleapi.command
-
Base class for command tree nodes.
- CommandNode(String) - Constructor for class dev.polv.taleapi.command.CommandNode
-
Creates a new command node with the given name.
- CommandNode.ArgumentNode<V> - Class in dev.polv.taleapi.command
-
An argument command node that parses typed input.
- CommandNode.LiteralNode - Class in dev.polv.taleapi.command
-
A literal command node representing fixed text.
- CommandRegisterCallback - Interface in dev.polv.taleapi.command
-
Called when commands should be registered.
- CommandRegistry - Class in dev.polv.taleapi.command
-
Central registry for all commands.
- CommandRegistry() - Constructor for class dev.polv.taleapi.command.CommandRegistry
-
Creates a new empty command registry.
- CommandResult - Enum Class in dev.polv.taleapi.command
-
Represents the result of a command execution.
- CommandSender - Interface in dev.polv.taleapi.command
-
Represents an entity that can execute commands.
- compact() - Method in class dev.polv.taleapi.config.json.JsonProvider.Builder
-
Disables pretty printing for compact output.
- compareTo(Suggestion) - Method in class dev.polv.taleapi.command.suggestion.Suggestion
- ConfigException - Exception in dev.polv.taleapi.config
-
Exception thrown when configuration operations fail.
- ConfigException(String) - Constructor for exception dev.polv.taleapi.config.ConfigException
-
Constructs a new ConfigException with the specified message.
- ConfigException(String, Throwable) - Constructor for exception dev.polv.taleapi.config.ConfigException
-
Constructs a new ConfigException with the specified message and cause.
- ConfigException(Throwable) - Constructor for exception dev.polv.taleapi.config.ConfigException
-
Constructs a new ConfigException with the specified cause.
- ConfigLoader - Class in dev.polv.taleapi.config
-
Main entry point for loading and saving configuration files.
- ConfigLoader(ConfigProvider) - Constructor for class dev.polv.taleapi.config.ConfigLoader
-
Creates a new ConfigLoader with the given provider.
- ConfigLoader(ConfigProvider, Executor) - Constructor for class dev.polv.taleapi.config.ConfigLoader
-
Creates a new ConfigLoader with the given provider and executor.
- ConfigNode - Interface in dev.polv.taleapi.config
-
A node in a configuration tree that provides dynamic access to values.
- ConfigProvider - Interface in dev.polv.taleapi.config
-
Interface for configuration format providers.
- contains(ContextKey<?>) - Method in class dev.polv.taleapi.permission.ContextSet
-
Checks if this context set contains the specified key.
- contains(ContextKey<T>, T) - Method in class dev.polv.taleapi.permission.ContextSet
-
Checks if this context set contains a specific key-value pair.
- context(ContextSet) - Method in class dev.polv.taleapi.permission.PermissionNode.Builder
-
Sets the context for this permission.
- ContextKey<T> - Class in dev.polv.taleapi.permission
-
Represents a context key used in permission context matching.
- ContextSet - Class in dev.polv.taleapi.permission
-
An immutable set of context key-value pairs.
- ContextSet.Builder - Class in dev.polv.taleapi.permission
-
Builder for creating ContextSet instances.
- create(Function<List<T>, T>, T) - Static method in class dev.polv.taleapi.event.Event
-
Creates a new Event with priority support.
- createOffset(int) - Method in class dev.polv.taleapi.command.suggestion.SuggestionsBuilder
-
Creates a new builder with the same input but cleared suggestions.
D
- dateFormat(String) - Method in class dev.polv.taleapi.config.json.JsonProvider.Builder
-
Sets a custom date format for serialization.
- DefaultPermissionProvider - Class in dev.polv.taleapi.permission
-
Default JSON file-based permission provider.
- DefaultPermissionProvider(Path) - Constructor for class dev.polv.taleapi.permission.DefaultPermissionProvider
-
Creates a new default provider with the specified data directory.
- DefaultPermissionProvider(Path, Executor) - Constructor for class dev.polv.taleapi.permission.DefaultPermissionProvider
-
Creates a new default provider with custom executor.
- DENIED - Static variable in class dev.polv.taleapi.permission.PermissionResult
-
Result indicating the permission was denied with no payload.
- deny() - Static method in class dev.polv.taleapi.event.player.PermissionCheckCallback.CheckResult
-
Creates a result that overrides with DENY.
- deny() - Method in class dev.polv.taleapi.permission.PermissionNode.Builder
-
Sets the state to DENY.
- deny(Object) - Static method in class dev.polv.taleapi.event.player.PermissionCheckCallback.CheckResult
-
Creates a result that overrides with DENY and a payload.
- deny(Object) - Static method in class dev.polv.taleapi.permission.PermissionResult
-
Creates a DENY result with the given payload.
- deny(String) - Static method in class dev.polv.taleapi.permission.PermissionNode
-
Creates a simple DENY permission node with no payload.
- deny(String) - Method in class dev.polv.taleapi.permission.PermissionTree
-
Sets a simple deny permission.
- deny(String, Object) - Static method in class dev.polv.taleapi.permission.PermissionNode
-
Creates a DENY permission node with a payload.
- DENY - Enum constant in enum class dev.polv.taleapi.permission.Tristate
-
Permission is explicitly denied.
- description(String) - Method in class dev.polv.taleapi.command.Command.Builder
-
Sets a description for this command.
- deserialize(Reader, Class<T>) - Method in interface dev.polv.taleapi.config.ConfigProvider
-
Deserializes configuration data from a reader into an object of the specified type.
- deserialize(Reader, Class<T>) - Method in class dev.polv.taleapi.config.json.JsonProvider
- deserializeToNode(Reader) - Method in interface dev.polv.taleapi.config.ConfigProvider
-
Deserializes configuration data from a reader into a traversable
ConfigNode. - deserializeToNode(Reader) - Method in class dev.polv.taleapi.config.json.JsonProvider
- dev.polv.taleapi - package dev.polv.taleapi
- dev.polv.taleapi.block - package dev.polv.taleapi.block
- dev.polv.taleapi.codegen.annotation - package dev.polv.taleapi.codegen.annotation
- dev.polv.taleapi.codegen.processor - package dev.polv.taleapi.codegen.processor
- dev.polv.taleapi.command - package dev.polv.taleapi.command
- dev.polv.taleapi.command.argument - package dev.polv.taleapi.command.argument
- dev.polv.taleapi.command.suggestion - package dev.polv.taleapi.command.suggestion
- dev.polv.taleapi.config - package dev.polv.taleapi.config
- dev.polv.taleapi.config.json - package dev.polv.taleapi.config.json
- dev.polv.taleapi.entity - package dev.polv.taleapi.entity
- dev.polv.taleapi.event - package dev.polv.taleapi.event
- dev.polv.taleapi.event.block - package dev.polv.taleapi.event.block
- dev.polv.taleapi.event.entity - package dev.polv.taleapi.event.entity
- dev.polv.taleapi.event.player - package dev.polv.taleapi.event.player
- dev.polv.taleapi.event.server - package dev.polv.taleapi.event.server
- dev.polv.taleapi.item - package dev.polv.taleapi.item
- dev.polv.taleapi.permission - package dev.polv.taleapi.permission
-
Extensible Permission System for TaleAPI.
- dev.polv.taleapi.server - package dev.polv.taleapi.server
- dev.polv.taleapi.world - package dev.polv.taleapi.world
- dispatch(CommandSender, String) - Method in class dev.polv.taleapi.command.CommandRegistry
-
Dispatches a command from the given input.
- distance(Location) - Method in class dev.polv.taleapi.world.Location
-
Calculates the distance between this location and another.
- distanceSquared(Location) - Method in class dev.polv.taleapi.world.Location
-
Calculates the squared distance between this location and another.
- doubleArg() - Static method in class dev.polv.taleapi.command.argument.DoubleArgumentType
-
Creates a double argument type with no bounds.
- doubleArg(double) - Static method in class dev.polv.taleapi.command.argument.DoubleArgumentType
-
Creates a double argument type with a minimum bound.
- doubleArg(double, double) - Static method in class dev.polv.taleapi.command.argument.DoubleArgumentType
-
Creates a double argument type with both bounds.
- DoubleArgumentType - Class in dev.polv.taleapi.command.argument
-
Argument type for double values with optional bounds.
E
- empty() - Static method in interface dev.polv.taleapi.command.suggestion.SuggestionProvider
-
Returns a suggestion provider that always returns empty suggestions.
- empty() - Static method in class dev.polv.taleapi.command.suggestion.Suggestions
-
Returns an empty suggestions instance.
- EMPTY - Static variable in class dev.polv.taleapi.permission.ContextSet
-
An empty context set that matches everything.
- encompassing(StringRange, StringRange) - Static method in class dev.polv.taleapi.command.suggestion.StringRange
-
Creates a range encompassing both given ranges.
- EntityMoveCallback - Interface in dev.polv.taleapi.event.entity
-
Called when an entity moves from one location to another.
- EntitySpawnCallback - Interface in dev.polv.taleapi.event.entity
-
Called when a non-player entity spawns in the world.
- equals(Object) - Method in class dev.polv.taleapi.command.suggestion.StringRange
- equals(Object) - Method in class dev.polv.taleapi.command.suggestion.Suggestion
- equals(Object) - Method in class dev.polv.taleapi.command.suggestion.Suggestions
- equals(Object) - Method in class dev.polv.taleapi.permission.ContextKey
- equals(Object) - Method in class dev.polv.taleapi.permission.ContextSet
- equals(Object) - Method in class dev.polv.taleapi.permission.PermissionNode
- equals(Object) - Method in class dev.polv.taleapi.permission.PermissionResult
- equals(Object) - Method in class dev.polv.taleapi.world.Location
- Event<T> - Class in dev.polv.taleapi.event
-
A type-safe event holder that manages listener registration and invocation.
- EVENT - Static variable in interface dev.polv.taleapi.command.CommandExecuteCallback
-
The event instance.
- EVENT - Static variable in interface dev.polv.taleapi.command.CommandRegisterCallback
-
The event instance.
- EVENT - Static variable in interface dev.polv.taleapi.event.block.BlockBreakCallback
-
The event instance.
- EVENT - Static variable in interface dev.polv.taleapi.event.block.BlockPlaceCallback
-
The event instance.
- EVENT - Static variable in interface dev.polv.taleapi.event.entity.EntityMoveCallback
-
The event instance.
- EVENT - Static variable in interface dev.polv.taleapi.event.entity.EntitySpawnCallback
-
The event instance.
- EVENT - Static variable in interface dev.polv.taleapi.event.player.PermissionCheckCallback
-
The event instance.
- EVENT - Static variable in interface dev.polv.taleapi.event.player.PlayerJoinCallback
-
The event instance.
- EVENT - Static variable in interface dev.polv.taleapi.event.player.PlayerMoveCallback
-
The event instance.
- EVENT - Static variable in interface dev.polv.taleapi.event.player.PlayerQuitCallback
-
The event instance.
- EVENT - Static variable in interface dev.polv.taleapi.event.server.ServerPostTickCallback
-
The event instance.
- EVENT - Static variable in interface dev.polv.taleapi.event.server.ServerPreTickCallback
-
The event instance.
- EVENT - Static variable in interface dev.polv.taleapi.event.server.ServerShutdownCallback
-
The event instance.
- EVENT - Static variable in interface dev.polv.taleapi.event.server.ServerStartedCallback
-
The event instance.
- EVENT - Static variable in interface dev.polv.taleapi.event.server.ServerStartingCallback
-
The event instance.
- EventPriority - Enum Class in dev.polv.taleapi.event
-
Defines the priority order for event listener execution.
- EventResult - Enum Class in dev.polv.taleapi.event
-
Represents the result of an event callback execution.
- execute(CommandContext) - Method in interface dev.polv.taleapi.command.CommandExecutor
-
Executes the command with the given context.
- execute(CommandSender, String) - Method in class dev.polv.taleapi.command.Command
-
Executes the command with the given input.
- executes(CommandExecutor) - Method in class dev.polv.taleapi.command.Command.Builder
-
Sets the executor for the root node.
- executes(CommandExecutor) - Method in class dev.polv.taleapi.command.CommandNode
-
Sets the executor for this node.
- EXECUTION - Enum constant in enum class dev.polv.taleapi.command.CommandException.Type
-
General execution failure.
- executor - Variable in class dev.polv.taleapi.command.CommandNode
-
The executor that handles command execution for this node.
- expect(char) - Method in class dev.polv.taleapi.command.argument.StringReader
-
Expects and consumes a specific character.
F
- failOnUnknownProperties() - Method in class dev.polv.taleapi.config.json.JsonProvider.Builder
-
Fails on unknown properties during deserialization.
- FAILURE - Enum constant in enum class dev.polv.taleapi.command.CommandResult
-
The command failed to execute.
- fileExtension() - Method in interface dev.polv.taleapi.config.ConfigProvider
-
Returns the file extension associated with this provider's format.
- fileExtension() - Method in class dev.polv.taleapi.config.json.JsonProvider
- flatten(PermissionTree...) - Static method in class dev.polv.taleapi.permission.PermissionTree
-
Creates a flattened tree by merging multiple trees with priority.
- floatArg() - Static method in class dev.polv.taleapi.command.argument.FloatArgumentType
-
Creates a float argument type with no bounds.
- floatArg(float) - Static method in class dev.polv.taleapi.command.argument.FloatArgumentType
-
Creates a float argument type with a minimum bound.
- floatArg(float, float) - Static method in class dev.polv.taleapi.command.argument.FloatArgumentType
-
Creates a float argument type with both bounds.
- FloatArgumentType - Class in dev.polv.taleapi.command.argument
-
Argument type for float values with optional bounds.
- formatName() - Method in interface dev.polv.taleapi.config.ConfigProvider
-
Returns a human-readable name for this format.
- formatName() - Method in class dev.polv.taleapi.config.json.JsonProvider
- fromBoolean(boolean) - Static method in enum class dev.polv.taleapi.permission.Tristate
-
Creates a Tristate from a boolean value.
- fromNullableBoolean(Boolean) - Static method in enum class dev.polv.taleapi.permission.Tristate
-
Creates a Tristate from a nullable Boolean.
G
- GAMEMODE - Static variable in class dev.polv.taleapi.permission.ContextKey
-
Context key for the player's gamemode.
- get(int) - Method in interface dev.polv.taleapi.config.ConfigNode
-
Gets a child node by array index.
- get(int) - Method in class dev.polv.taleapi.config.json.JacksonConfigNode
- get(ContextKey<T>) - Method in class dev.polv.taleapi.permission.ContextSet
-
Gets a context value by its key.
- get(String) - Method in class dev.polv.taleapi.command.suggestion.StringRange
-
Extracts the substring covered by this range.
- get(String) - Method in interface dev.polv.taleapi.config.ConfigNode
-
Gets a child node by key.
- get(String) - Method in class dev.polv.taleapi.config.json.JacksonConfigNode
- get(String, Class<T>) - Method in interface dev.polv.taleapi.config.ConfigNode
-
Converts a child node to a typed object.
- get(String, Class<T>) - Method in class dev.polv.taleapi.config.json.JacksonConfigNode
- getAliases() - Method in class dev.polv.taleapi.command.Command
-
Returns the command aliases.
- getAllKeys() - Method in class dev.polv.taleapi.permission.PermissionTree
-
Gets all permission keys in this tree.
- getAllNodes() - Method in class dev.polv.taleapi.permission.PermissionTree
-
Gets all permission nodes in this tree.
- getArgument(String, Class<T>) - Method in class dev.polv.taleapi.command.CommandContext
-
Gets a parsed argument by name.
- getArguments() - Method in class dev.polv.taleapi.command.CommandContext
-
Returns all parsed arguments as an unmodifiable map.
- getAvailableCommands(CommandSender) - Method in class dev.polv.taleapi.command.CommandRegistry
-
Returns a list of available commands for the sender.
- getBoolean(String) - Method in interface dev.polv.taleapi.config.ConfigNode
-
Gets a boolean value by key.
- getBoolean(String) - Method in class dev.polv.taleapi.config.json.JacksonConfigNode
- getBoolean(String, boolean) - Method in interface dev.polv.taleapi.config.ConfigNode
-
Gets a boolean value by key, with a default.
- getBoolean(String, boolean) - Method in class dev.polv.taleapi.config.json.JacksonConfigNode
- getChildren() - Method in class dev.polv.taleapi.command.CommandNode
-
Returns the child nodes.
- getClientSyncedNodes(TalePlayer) - Method in class dev.polv.taleapi.permission.DefaultPermissionProvider
- getClientSyncedNodes(TalePlayer) - Method in interface dev.polv.taleapi.permission.PermissionProvider
-
Returns the permission nodes that should be synced to the client.
- getClientSyncedNodes(TalePlayer) - Method in class dev.polv.taleapi.permission.PermissionService
-
Returns permission keys to sync to the client.
- getCommand() - Method in class dev.polv.taleapi.command.CommandContext
-
Returns the command that is being executed.
- getCommand(String) - Method in class dev.polv.taleapi.command.CommandRegistry
-
Gets a command by name or alias.
- getCommandNames() - Method in class dev.polv.taleapi.command.CommandRegistry
-
Returns all registered command names.
- getCommands() - Method in class dev.polv.taleapi.command.CommandRegistry
-
Returns all registered commands.
- getContext() - Method in class dev.polv.taleapi.permission.PermissionNode
-
Returns the context for this permission.
- getCursor() - Method in class dev.polv.taleapi.command.argument.StringReader
-
Returns the current cursor position.
- getDescription() - Method in class dev.polv.taleapi.command.Command
-
Returns the command description.
- getDisplayName() - Method in interface dev.polv.taleapi.entity.TalePlayer
-
Returns the player's display name.
- getDouble(String) - Method in interface dev.polv.taleapi.config.ConfigNode
-
Gets a double value by key.
- getDouble(String) - Method in class dev.polv.taleapi.config.json.JacksonConfigNode
- getDouble(String, double) - Method in interface dev.polv.taleapi.config.ConfigNode
-
Gets a double value by key, with a default.
- getDouble(String, double) - Method in class dev.polv.taleapi.config.json.JacksonConfigNode
- getEnd() - Method in class dev.polv.taleapi.command.suggestion.StringRange
-
Returns the end index (exclusive).
- getExamples() - Method in interface dev.polv.taleapi.command.argument.ArgumentType
-
Returns example values for this argument type.
- getExamples() - Method in class dev.polv.taleapi.command.argument.BooleanArgumentType
- getExamples() - Method in class dev.polv.taleapi.command.argument.DoubleArgumentType
- getExamples() - Method in class dev.polv.taleapi.command.argument.FloatArgumentType
- getExamples() - Method in class dev.polv.taleapi.command.argument.IntegerArgumentType
- getExamples() - Method in class dev.polv.taleapi.command.argument.LongArgumentType
- getExamples() - Method in class dev.polv.taleapi.command.argument.StringArgumentType
- getExecutor() - Method in class dev.polv.taleapi.command.CommandNode
-
Returns the executor for this node, if any.
- getId() - Method in interface dev.polv.taleapi.block.TaleBlock
-
Returns the unique identifier for this block type.
- getId() - Method in interface dev.polv.taleapi.item.TaleItem
-
Returns the unique identifier for this item type.
- getId() - Method in class dev.polv.taleapi.permission.DefaultPermissionProvider
- getId() - Method in interface dev.polv.taleapi.permission.PermissionProvider
-
Returns the unique identifier for this provider.
- getInput() - Method in class dev.polv.taleapi.command.suggestion.SuggestionsBuilder
-
Returns the full input string.
- getInstance() - Static method in class dev.polv.taleapi.permission.PermissionService
-
Returns the singleton instance of the permission service.
- getInstance() - Static method in interface dev.polv.taleapi.server.TaleServer
-
Returns the singleton instance of the server.
- getInt(String) - Method in interface dev.polv.taleapi.config.ConfigNode
-
Gets an integer value by key.
- getInt(String) - Method in class dev.polv.taleapi.config.json.JacksonConfigNode
- getInt(String, int) - Method in interface dev.polv.taleapi.config.ConfigNode
-
Gets an integer value by key, with a default.
- getInt(String, int) - Method in class dev.polv.taleapi.config.json.JacksonConfigNode
- getIntList(String) - Method in interface dev.polv.taleapi.config.ConfigNode
-
Gets a list of integers by key.
- getIntList(String) - Method in class dev.polv.taleapi.config.json.JacksonConfigNode
- getJsonNode() - Method in class dev.polv.taleapi.config.json.JacksonConfigNode
-
Returns the underlying Jackson JsonNode.
- getKey() - Method in class dev.polv.taleapi.permission.PermissionNode
-
Returns the permission key (path).
- getLength() - Method in class dev.polv.taleapi.command.suggestion.StringRange
-
Returns the length of this range.
- getList() - Method in class dev.polv.taleapi.command.suggestion.Suggestions
-
Returns the list of suggestions.
- getList(String) - Method in interface dev.polv.taleapi.config.ConfigNode
-
Gets a list of child nodes by key.
- getList(String) - Method in class dev.polv.taleapi.config.json.JacksonConfigNode
- getListeners() - Method in class dev.polv.taleapi.event.Event
-
Returns a snapshot of all registered listeners in priority order (HIGHEST to LOWEST).
- getLocation() - Method in interface dev.polv.taleapi.entity.TaleEntity
-
Returns the current location of this entity in the world.
- getLong(String) - Method in interface dev.polv.taleapi.config.ConfigNode
-
Gets a long value by key.
- getLong(String) - Method in class dev.polv.taleapi.config.json.JacksonConfigNode
- getLong(String, long) - Method in interface dev.polv.taleapi.config.ConfigNode
-
Gets a long value by key, with a default.
- getLong(String, long) - Method in class dev.polv.taleapi.config.json.JacksonConfigNode
- getMapper() - Method in class dev.polv.taleapi.config.json.JsonProvider
-
Returns the ObjectMapper used by this provider.
- getMaximum() - Method in class dev.polv.taleapi.command.argument.DoubleArgumentType
-
Returns the maximum value.
- getMaximum() - Method in class dev.polv.taleapi.command.argument.FloatArgumentType
-
Returns the maximum value.
- getMaximum() - Method in class dev.polv.taleapi.command.argument.IntegerArgumentType
-
Returns the maximum value.
- getMaximum() - Method in class dev.polv.taleapi.command.argument.LongArgumentType
-
Returns the maximum value.
- getMinimum() - Method in class dev.polv.taleapi.command.argument.DoubleArgumentType
-
Returns the minimum value.
- getMinimum() - Method in class dev.polv.taleapi.command.argument.FloatArgumentType
-
Returns the minimum value.
- getMinimum() - Method in class dev.polv.taleapi.command.argument.IntegerArgumentType
-
Returns the minimum value.
- getMinimum() - Method in class dev.polv.taleapi.command.argument.LongArgumentType
-
Returns the minimum value.
- getName() - Method in class dev.polv.taleapi.command.Command
-
Returns the command name (the root literal).
- getName() - Method in class dev.polv.taleapi.command.CommandNode
-
Returns the name of this node.
- getName() - Method in interface dev.polv.taleapi.command.CommandSender
-
Returns the name of this command sender.
- getName() - Method in class dev.polv.taleapi.permission.DefaultPermissionProvider
- getName() - Method in interface dev.polv.taleapi.permission.PermissionProvider
-
Returns a human-readable name for this provider.
- getOnlinePlayers() - Method in interface dev.polv.taleapi.server.TaleServer
-
Returns all currently online players.
- getOptionalArgument(String, Class<T>) - Method in class dev.polv.taleapi.command.CommandContext
-
Gets a parsed argument by name, returning an Optional.
- getOptionalBoolean(String) - Method in interface dev.polv.taleapi.config.ConfigNode
-
Gets an optional boolean value by key.
- getOptionalBoolean(String) - Method in class dev.polv.taleapi.config.json.JacksonConfigNode
- getOptionalDouble(String) - Method in interface dev.polv.taleapi.config.ConfigNode
-
Gets an optional double value by key.
- getOptionalDouble(String) - Method in class dev.polv.taleapi.config.json.JacksonConfigNode
- getOptionalInt(String) - Method in interface dev.polv.taleapi.config.ConfigNode
-
Gets an optional integer value by key.
- getOptionalInt(String) - Method in class dev.polv.taleapi.config.json.JacksonConfigNode
- getOptionalLong(String) - Method in interface dev.polv.taleapi.config.ConfigNode
-
Gets an optional long value by key.
- getOptionalLong(String) - Method in class dev.polv.taleapi.config.json.JacksonConfigNode
- getOptionalString(String) - Method in interface dev.polv.taleapi.config.ConfigNode
-
Gets an optional string value by key.
- getOptionalString(String) - Method in class dev.polv.taleapi.config.json.JacksonConfigNode
- getPayload() - Method in class dev.polv.taleapi.permission.PermissionNode
-
Returns the payload value.
- getPayload() - Method in class dev.polv.taleapi.permission.PermissionResult
-
Returns the raw payload value.
- getPermission() - Method in class dev.polv.taleapi.command.Command
-
Returns the permission required to use this command.
- getPermissions() - Method in interface dev.polv.taleapi.server.TaleServer
-
Returns the permission service.
- getPermissionValue(String) - Method in interface dev.polv.taleapi.permission.PermissionHolder
-
Queries a permission and returns the full result.
- getPermissionValue(String, ContextSet) - Method in interface dev.polv.taleapi.permission.PermissionHolder
-
Queries a permission with context and returns the full result.
- getPlayer(String) - Method in interface dev.polv.taleapi.server.TaleServer
-
Finds an online player by their unique ID.
- getPlayerTree(TalePlayer) - Method in class dev.polv.taleapi.permission.DefaultPermissionProvider
- getPlayerTree(TalePlayer) - Method in interface dev.polv.taleapi.permission.PermissionProvider
-
Gets the cached permission tree for a player.
- getPlayerTree(TalePlayer) - Method in class dev.polv.taleapi.permission.PermissionService
-
Gets the cached permission tree for a player.
- getProvider() - Method in class dev.polv.taleapi.config.ConfigLoader
-
Returns the configuration provider used by this loader.
- getProvider() - Method in class dev.polv.taleapi.permission.PermissionService
-
Returns the currently active provider.
- getRange() - Method in class dev.polv.taleapi.command.suggestion.Suggestion
-
Returns the range in the input string that this suggestion would replace.
- getRange() - Method in class dev.polv.taleapi.command.suggestion.Suggestions
-
Returns the range these suggestions cover.
- getRawInput() - Method in class dev.polv.taleapi.command.CommandContext
-
Returns the raw input string that was parsed.
- getRead() - Method in class dev.polv.taleapi.command.argument.StringReader
-
Returns the portion of the string that has been read.
- getRemaining() - Method in class dev.polv.taleapi.command.argument.StringReader
-
Returns the remaining unread portion of the string.
- getRemaining() - Method in class dev.polv.taleapi.command.suggestion.SuggestionsBuilder
-
Returns the remaining portion of the input after the start position.
- getRemainingLength() - Method in class dev.polv.taleapi.command.argument.StringReader
-
Returns the number of characters remaining.
- getRemainingLowerCase() - Method in class dev.polv.taleapi.command.suggestion.SuggestionsBuilder
-
Returns the remaining portion in lowercase.
- getRequirement() - Method in class dev.polv.taleapi.command.CommandNode
-
Returns the requirement predicate for this node.
- getResult() - Method in class dev.polv.taleapi.event.player.PermissionCheckCallback.CheckResult
-
Returns the permission result.
- getResultType() - Method in interface dev.polv.taleapi.command.argument.ArgumentType
-
Returns the Java type this argument parses to.
- getResultType() - Method in class dev.polv.taleapi.command.argument.BooleanArgumentType
- getResultType() - Method in class dev.polv.taleapi.command.argument.DoubleArgumentType
- getResultType() - Method in class dev.polv.taleapi.command.argument.FloatArgumentType
- getResultType() - Method in class dev.polv.taleapi.command.argument.IntegerArgumentType
- getResultType() - Method in class dev.polv.taleapi.command.argument.LongArgumentType
- getResultType() - Method in class dev.polv.taleapi.command.argument.StringArgumentType
- getRootNode() - Method in class dev.polv.taleapi.command.Command
-
Returns the root node of the command tree.
- getSection(String) - Method in interface dev.polv.taleapi.config.ConfigNode
-
Gets a nested object section by key.
- getSender() - Method in class dev.polv.taleapi.command.CommandContext
-
Returns the command sender who executed this command.
- getStart() - Method in class dev.polv.taleapi.command.suggestion.StringRange
-
Returns the start index (inclusive).
- getStart() - Method in class dev.polv.taleapi.command.suggestion.SuggestionsBuilder
-
Returns the position where suggestions start.
- getState() - Method in class dev.polv.taleapi.permission.PermissionNode
-
Returns the permission state.
- getState() - Method in class dev.polv.taleapi.permission.PermissionResult
-
Returns the permission state.
- getString() - Method in class dev.polv.taleapi.command.argument.StringReader
-
Returns the full input string.
- getString(String) - Method in interface dev.polv.taleapi.config.ConfigNode
-
Gets a string value by key.
- getString(String) - Method in class dev.polv.taleapi.config.json.JacksonConfigNode
- getString(String, String) - Method in interface dev.polv.taleapi.config.ConfigNode
-
Gets a string value by key, with a default.
- getString(String, String) - Method in class dev.polv.taleapi.config.json.JacksonConfigNode
- getStringList(String) - Method in interface dev.polv.taleapi.config.ConfigNode
-
Gets a list of strings by key.
- getStringList(String) - Method in class dev.polv.taleapi.config.json.JacksonConfigNode
- getSuggestionProvider() - Method in class dev.polv.taleapi.command.CommandNode.ArgumentNode
-
Returns the custom suggestion provider, if any.
- getSuggestions(CommandContext, SuggestionsBuilder) - Method in interface dev.polv.taleapi.command.suggestion.SuggestionProvider
-
Provides suggestions for the argument.
- getSuggestions(CommandSender, String) - Method in class dev.polv.taleapi.command.Command
-
Gets autocompletion suggestions for the given input.
- getSuggestions(CommandSender, String) - Method in class dev.polv.taleapi.command.CommandRegistry
-
Gets autocompletion suggestions for the given input.
- getText() - Method in class dev.polv.taleapi.command.suggestion.Suggestion
-
Returns the suggested text.
- getTooltip() - Method in class dev.polv.taleapi.command.suggestion.Suggestion
-
Returns the tooltip, if any.
- getTotalLength() - Method in class dev.polv.taleapi.command.argument.StringReader
-
Returns the total length of the input string.
- getType() - Method in class dev.polv.taleapi.command.argument.StringArgumentType
-
Returns the string type mode.
- getType() - Method in exception dev.polv.taleapi.command.CommandException
-
Returns the type of this exception.
- getType() - Method in class dev.polv.taleapi.command.CommandNode.ArgumentNode
-
Returns the argument type.
- getTypeName() - Method in interface dev.polv.taleapi.command.argument.ArgumentType
-
Returns a human-readable name for this argument type.
- getTypeName() - Method in class dev.polv.taleapi.command.argument.BooleanArgumentType
- getTypeName() - Method in class dev.polv.taleapi.command.argument.DoubleArgumentType
- getTypeName() - Method in class dev.polv.taleapi.command.argument.FloatArgumentType
- getTypeName() - Method in class dev.polv.taleapi.command.argument.IntegerArgumentType
- getTypeName() - Method in class dev.polv.taleapi.command.argument.LongArgumentType
- getTypeName() - Method in class dev.polv.taleapi.command.argument.StringArgumentType
- getUniqueId() - Method in interface dev.polv.taleapi.entity.TaleEntity
-
Returns the unique identifier for this entity.
- getUniqueId() - Method in interface dev.polv.taleapi.entity.TalePlayer
-
Returns the player's unique identifier.
- getUniqueId() - Method in interface dev.polv.taleapi.permission.PermissionHolder
-
Returns the unique identifier for this holder.
- getUsage() - Method in class dev.polv.taleapi.command.Command
-
Returns the usage string for this command.
- getUsageText() - Method in class dev.polv.taleapi.command.CommandNode.ArgumentNode
- getUsageText() - Method in class dev.polv.taleapi.command.CommandNode
-
Returns the usage string for this node.
- getUsageText() - Method in class dev.polv.taleapi.command.CommandNode.LiteralNode
- GREEDY - Enum constant in enum class dev.polv.taleapi.command.argument.StringArgumentType.StringType
-
Consumes all remaining input.
- greedyString() - Static method in class dev.polv.taleapi.command.argument.StringArgumentType
-
Creates a greedy string argument type (all remaining input).
H
- has(TalePlayer, String) - Method in class dev.polv.taleapi.permission.PermissionService
-
Convenience method to check if a permission is allowed.
- has(TalePlayer, String, ContextSet) - Method in class dev.polv.taleapi.permission.PermissionService
-
Convenience method to check if a permission is allowed with context.
- has(String) - Method in interface dev.polv.taleapi.config.ConfigNode
-
Checks if a key exists in this object node.
- has(String) - Method in class dev.polv.taleapi.config.json.JacksonConfigNode
- has(String) - Method in class dev.polv.taleapi.permission.PermissionTree
-
Checks if a permission is allowed (returns true for ALLOW state).
- has(String, ContextSet) - Method in class dev.polv.taleapi.permission.PermissionTree
-
Checks if a permission is allowed with context.
- hasArgument(String) - Method in class dev.polv.taleapi.command.CommandContext
-
Checks if an argument with the given name exists.
- hasCommand(String) - Method in class dev.polv.taleapi.command.CommandRegistry
-
Checks if a command is registered.
- hashCode() - Method in class dev.polv.taleapi.command.suggestion.StringRange
- hashCode() - Method in class dev.polv.taleapi.command.suggestion.Suggestion
- hashCode() - Method in class dev.polv.taleapi.command.suggestion.Suggestions
- hashCode() - Method in class dev.polv.taleapi.permission.ContextKey
- hashCode() - Method in class dev.polv.taleapi.permission.ContextSet
- hashCode() - Method in class dev.polv.taleapi.permission.PermissionNode
- hashCode() - Method in class dev.polv.taleapi.permission.PermissionResult
- hashCode() - Method in class dev.polv.taleapi.world.Location
- hasPayload() - Method in class dev.polv.taleapi.permission.PermissionNode
-
Checks if this node has a payload.
- hasPayload() - Method in class dev.polv.taleapi.permission.PermissionResult
-
Returns whether this result has a payload value.
- hasPermission(String) - Method in interface dev.polv.taleapi.command.CommandSender
-
Checks if this sender has the specified permission.
- hasPermission(String) - Method in interface dev.polv.taleapi.entity.TalePlayer
-
Checks if the player has the specified permission.
- hasPermission(String) - Method in interface dev.polv.taleapi.permission.PermissionHolder
-
Checks if this holder has the specified permission.
- hasPermission(String, ContextSet) - Method in interface dev.polv.taleapi.permission.PermissionHolder
-
Checks if this holder has the specified permission in a context.
- hasProvider() - Method in class dev.polv.taleapi.permission.PermissionService
-
Checks if a provider is registered.
- HIGH - Enum constant in enum class dev.polv.taleapi.event.EventPriority
-
Executed after HIGHEST.
- HIGHEST - Enum constant in enum class dev.polv.taleapi.event.EventPriority
-
Executed first.
I
- id() - Element in annotation interface dev.polv.taleapi.codegen.annotation.Block
-
The unique identifier for this block.
- id() - Element in annotation interface dev.polv.taleapi.codegen.annotation.Item
-
The unique identifier for this item.
- ignoreUnknownProperties() - Method in class dev.polv.taleapi.config.json.JsonProvider.Builder
-
Ignores unknown properties during deserialization.
- integer() - Static method in class dev.polv.taleapi.command.argument.IntegerArgumentType
-
Creates an integer argument type with no bounds.
- integer(int) - Static method in class dev.polv.taleapi.command.argument.IntegerArgumentType
-
Creates an integer argument type with a minimum bound.
- integer(int, int) - Static method in class dev.polv.taleapi.command.argument.IntegerArgumentType
-
Creates an integer argument type with both bounds.
- IntegerArgumentType - Class in dev.polv.taleapi.command.argument
-
Argument type for integer values with optional bounds.
- invalidateCache(TalePlayer) - Method in class dev.polv.taleapi.permission.DefaultPermissionProvider
- invalidateCache(TalePlayer) - Method in interface dev.polv.taleapi.permission.PermissionProvider
-
Invalidates the cached permissions for a player.
- invalidateCache(TalePlayer) - Method in class dev.polv.taleapi.permission.PermissionService
-
Invalidates and refreshes a player's permission cache.
- invokeAsync(Executor, Function<T, R>) - Method in class dev.polv.taleapi.event.Event
-
Fires the event asynchronously using the provided executor.
- invokeAsync(Iterator<T>, Function<T, CompletableFuture<EventResult>>) - Static method in class dev.polv.taleapi.event.Event
-
Helper to chain async callback processing in priority order.
- invoker() - Method in class dev.polv.taleapi.event.Event
-
Returns the combined invoker for all registered listeners.
- isAllowed() - Method in class dev.polv.taleapi.permission.PermissionResult
-
Checks if the permission is allowed.
- isAllowedInUnquotedString(char) - Static method in class dev.polv.taleapi.command.argument.StringReader
-
Checks if the given character terminates an unquoted string.
- isArray() - Method in interface dev.polv.taleapi.config.ConfigNode
-
Checks if this node represents a JSON array.
- isArray() - Method in class dev.polv.taleapi.config.json.JacksonConfigNode
- isCancelled() - Method in enum class dev.polv.taleapi.event.EventResult
- isDefined() - Method in enum class dev.polv.taleapi.permission.Tristate
-
Returns whether this state is defined (not UNDEFINED).
- isDenied() - Method in class dev.polv.taleapi.permission.PermissionResult
-
Checks if the permission is denied.
- isEmpty() - Method in class dev.polv.taleapi.command.suggestion.StringRange
-
Checks if this range is empty.
- isEmpty() - Method in class dev.polv.taleapi.command.suggestion.Suggestions
-
Checks if there are no suggestions.
- isEmpty() - Method in class dev.polv.taleapi.permission.ContextSet
-
Returns whether this context set is empty.
- isEmpty() - Method in class dev.polv.taleapi.permission.PermissionTree
-
Checks if this tree is empty.
- isExecutable() - Method in class dev.polv.taleapi.command.CommandNode
-
Checks if this node can execute a command (has an executor).
- isModified() - Method in class dev.polv.taleapi.event.player.PermissionCheckCallback.CheckResult
-
Returns whether this result modifies the permission.
- isNull() - Method in interface dev.polv.taleapi.config.ConfigNode
-
Checks if this node is null or missing.
- isNull() - Method in class dev.polv.taleapi.config.json.JacksonConfigNode
- isObject() - Method in interface dev.polv.taleapi.config.ConfigNode
-
Checks if this node represents a JSON object (key-value pairs).
- isObject() - Method in class dev.polv.taleapi.config.json.JacksonConfigNode
- isPlayer() - Method in interface dev.polv.taleapi.command.CommandSender
-
Checks if this sender is a player.
- isSuccess() - Method in enum class dev.polv.taleapi.command.CommandResult
- isUndefined() - Method in class dev.polv.taleapi.permission.PermissionResult
-
Checks if the permission is undefined.
- isValid(File) - Method in class dev.polv.taleapi.config.ConfigLoader
-
Checks if a file exists and can be loaded as a ConfigNode.
- isValid(File, Class<T>) - Method in class dev.polv.taleapi.config.ConfigLoader
-
Checks if a file exists and can be loaded as the specified type.
- isValid(Path) - Method in class dev.polv.taleapi.config.ConfigLoader
-
Checks if a path exists and can be loaded as a ConfigNode.
- isValid(Path, Class<T>) - Method in class dev.polv.taleapi.config.ConfigLoader
-
Checks if a path exists and can be loaded as the specified type.
- isValue() - Method in interface dev.polv.taleapi.config.ConfigNode
-
Checks if this node represents a primitive value (string, number, boolean).
- isValue() - Method in class dev.polv.taleapi.config.json.JacksonConfigNode
- Item - Annotation Interface in dev.polv.taleapi.codegen.annotation
-
Marks a class as an item definition for JSON generation.
J
- JacksonConfigNode - Class in dev.polv.taleapi.config.json
-
Jackson-based implementation of
ConfigNode. - JacksonConfigNode(JsonNode, ObjectMapper) - Constructor for class dev.polv.taleapi.config.json.JacksonConfigNode
-
Creates a new JacksonConfigNode wrapping the given JsonNode.
- JsonProvider - Class in dev.polv.taleapi.config.json
-
A
ConfigProviderimplementation for JSON format using Jackson. - JsonProvider() - Constructor for class dev.polv.taleapi.config.json.JsonProvider
-
Creates a new JsonProvider with default Jackson settings.
- JsonProvider(ObjectMapper) - Constructor for class dev.polv.taleapi.config.json.JsonProvider
-
Creates a new JsonProvider with a custom ObjectMapper.
- JsonProvider.Builder - Class in dev.polv.taleapi.config.json
-
Builder for creating customized JsonProvider instances.
K
- key() - Method in class dev.polv.taleapi.permission.ContextKey
-
Returns the string identifier for this key.
- keys() - Method in interface dev.polv.taleapi.config.ConfigNode
-
Returns all keys in this object node.
- keys() - Method in class dev.polv.taleapi.config.json.JacksonConfigNode
- keys() - Method in class dev.polv.taleapi.permission.ContextSet
-
Returns all context keys in this set.
L
- listenerCount() - Method in class dev.polv.taleapi.event.Event
- listSuggestions(CommandContext, SuggestionsBuilder) - Method in interface dev.polv.taleapi.command.argument.ArgumentType
-
Provides suggestions for this argument.
- listSuggestions(CommandContext, SuggestionsBuilder) - Method in class dev.polv.taleapi.command.argument.BooleanArgumentType
- listSuggestions(CommandContext, SuggestionsBuilder) - Method in class dev.polv.taleapi.command.argument.DoubleArgumentType
- listSuggestions(CommandContext, SuggestionsBuilder) - Method in class dev.polv.taleapi.command.argument.FloatArgumentType
- listSuggestions(CommandContext, SuggestionsBuilder) - Method in class dev.polv.taleapi.command.argument.IntegerArgumentType
- listSuggestions(CommandContext, SuggestionsBuilder) - Method in class dev.polv.taleapi.command.argument.LongArgumentType
- listSuggestions(CommandContext, SuggestionsBuilder) - Method in class dev.polv.taleapi.command.CommandNode.ArgumentNode
- listSuggestions(CommandContext, SuggestionsBuilder) - Method in class dev.polv.taleapi.command.CommandNode
-
Provides suggestions for autocompletion.
- listSuggestions(CommandContext, SuggestionsBuilder) - Method in class dev.polv.taleapi.command.CommandNode.LiteralNode
- literal(String) - Static method in class dev.polv.taleapi.command.Command
-
Creates a literal node for building commands.
- literal(String) - Static method in class dev.polv.taleapi.command.CommandNode
-
Creates a literal command node.
- LiteralNode(String) - Constructor for class dev.polv.taleapi.command.CommandNode.LiteralNode
-
Creates a new literal node with the given name.
- load(File) - Method in class dev.polv.taleapi.config.ConfigLoader
-
Loads configuration from a file into a traversable
ConfigNode. - load(File, Class<T>) - Method in class dev.polv.taleapi.config.ConfigLoader
-
Loads configuration from a file into a typed object.
- load(Reader, Class<T>) - Method in class dev.polv.taleapi.config.ConfigLoader
-
Loads configuration from a reader into a typed object.
- load(Path) - Method in class dev.polv.taleapi.config.ConfigLoader
-
Loads configuration from a path into a traversable
ConfigNode. - load(Path, Class<T>) - Method in class dev.polv.taleapi.config.ConfigLoader
-
Loads configuration from a path into a typed object.
- loadAsync(File) - Method in class dev.polv.taleapi.config.ConfigLoader
-
Loads configuration from a file into a
ConfigNodeasynchronously. - loadAsync(File, Class<T>) - Method in class dev.polv.taleapi.config.ConfigLoader
-
Loads configuration from a file asynchronously using the default executor.
- loadAsync(File, Class<T>, Executor) - Method in class dev.polv.taleapi.config.ConfigLoader
-
Loads configuration from a file asynchronously using the specified executor.
- loadAsync(File, Executor) - Method in class dev.polv.taleapi.config.ConfigLoader
-
Loads configuration from a file into a
ConfigNodeasynchronously. - loadAsync(Path) - Method in class dev.polv.taleapi.config.ConfigLoader
-
Loads configuration from a path into a
ConfigNodeasynchronously. - loadAsync(Path, Class<T>) - Method in class dev.polv.taleapi.config.ConfigLoader
-
Loads configuration from a path asynchronously using the default executor.
- loadAsync(Path, Class<T>, Executor) - Method in class dev.polv.taleapi.config.ConfigLoader
-
Loads configuration from a path asynchronously using the specified executor.
- loadAsync(Path, Executor) - Method in class dev.polv.taleapi.config.ConfigLoader
-
Loads configuration from a path into a
ConfigNodeasynchronously. - loadFromString(String, Class<T>) - Method in class dev.polv.taleapi.config.ConfigLoader
-
Loads configuration from a string into a typed object.
- loadNode(Reader) - Method in class dev.polv.taleapi.config.ConfigLoader
-
Loads configuration from a reader into a traversable
ConfigNode. - loadNodeFromString(String) - Method in class dev.polv.taleapi.config.ConfigLoader
-
Loads configuration from a string into a traversable
ConfigNode. - loadOrDefault(File, Class<T>, T) - Method in class dev.polv.taleapi.config.ConfigLoader
-
Loads configuration from a file, or returns a default value if the file doesn't exist.
- loadOrDefault(Path, Class<T>, T) - Method in class dev.polv.taleapi.config.ConfigLoader
-
Loads configuration from a path, or returns a default value if the file doesn't exist.
- loadPlayer(TalePlayer) - Method in class dev.polv.taleapi.permission.DefaultPermissionProvider
- loadPlayer(TalePlayer) - Method in interface dev.polv.taleapi.permission.PermissionProvider
-
Called when a player joins the server.
- loadPlayer(TalePlayer) - Method in class dev.polv.taleapi.permission.PermissionService
-
Called when a player joins.
- Location - Class in dev.polv.taleapi.world
-
Represents a position in the world with coordinates and optional rotation.
- Location(double, double, double) - Constructor for class dev.polv.taleapi.world.Location
-
Creates a new location with the specified coordinates and no rotation.
- Location(double, double, double, float, float) - Constructor for class dev.polv.taleapi.world.Location
-
Creates a new location with the specified coordinates and rotation.
- longArg() - Static method in class dev.polv.taleapi.command.argument.LongArgumentType
-
Creates a long argument type with no bounds.
- longArg(long) - Static method in class dev.polv.taleapi.command.argument.LongArgumentType
-
Creates a long argument type with a minimum bound.
- longArg(long, long) - Static method in class dev.polv.taleapi.command.argument.LongArgumentType
-
Creates a long argument type with both bounds.
- LongArgumentType - Class in dev.polv.taleapi.command.argument
-
Argument type for long values with optional bounds.
- LOW - Enum constant in enum class dev.polv.taleapi.event.EventPriority
-
Executed after NORMAL.
- LOWEST - Enum constant in enum class dev.polv.taleapi.event.EventPriority
-
Executed last.
M
- main(String[]) - Static method in class dev.polv.taleapi.Main
-
Main entry point for the TaleAPI library.
- Main - Class in dev.polv.taleapi
-
TaleAPI - Abstraction layer for Hytale modding.
- Main() - Constructor for class dev.polv.taleapi.Main
- matches(ContextSet) - Method in class dev.polv.taleapi.permission.ContextSet
-
Checks if this context set matches another context set.
- matches(String) - Method in class dev.polv.taleapi.command.CommandNode.LiteralNode
-
Checks if the given input matches this literal.
- merge(PermissionTree) - Method in class dev.polv.taleapi.permission.PermissionTree
-
Merges another tree into this one.
- merge(String, Collection<Suggestions>) - Static method in class dev.polv.taleapi.command.suggestion.Suggestions
-
Merges multiple suggestions into one.
N
- name - Variable in class dev.polv.taleapi.command.CommandNode
-
The name of this command node.
- NORMAL - Enum constant in enum class dev.polv.taleapi.event.EventPriority
-
Default priority.
O
- of(ContextKey<T>, T) - Static method in class dev.polv.taleapi.permission.ContextSet
-
Creates a ContextSet with a single context value.
- of(ContextKey<T1>, T1, ContextKey<T2>, T2) - Static method in class dev.polv.taleapi.permission.ContextSet
-
Creates a ContextSet with two context values.
- of(PermissionResult) - Static method in class dev.polv.taleapi.event.player.PermissionCheckCallback.CheckResult
-
Creates a result that wraps an existing permission result without modification.
- of(Tristate) - Static method in class dev.polv.taleapi.permission.PermissionResult
-
Creates a result with the given state and no payload.
- of(Tristate, Object) - Static method in class dev.polv.taleapi.permission.PermissionResult
-
Creates a result with the given state and payload.
- of(Iterable<String>) - Static method in interface dev.polv.taleapi.command.suggestion.SuggestionProvider
-
Returns a suggestion provider from a dynamic collection.
- of(String...) - Static method in interface dev.polv.taleapi.command.suggestion.SuggestionProvider
-
Returns a suggestion provider from a list of static suggestions.
- of(String, Class<T>) - Static method in class dev.polv.taleapi.permission.ContextKey
-
Creates a new context key.
- onBlockBreak(TalePlayer, TaleBlock, Location) - Method in interface dev.polv.taleapi.event.block.BlockBreakCallback
-
Called when a player is about to break a block.
- onBlockPlace(TalePlayer, TaleBlock, Location) - Method in interface dev.polv.taleapi.event.block.BlockPlaceCallback
-
Called when a player is about to place a block.
- onCommandExecute(CommandSender, Command, String) - Method in interface dev.polv.taleapi.command.CommandExecuteCallback
-
Called when a command is about to be executed.
- onDisable() - Method in class dev.polv.taleapi.permission.DefaultPermissionProvider
- onDisable() - Method in interface dev.polv.taleapi.permission.PermissionProvider
-
Called when this provider is unregistered or the server shuts down.
- onEnable() - Method in class dev.polv.taleapi.permission.DefaultPermissionProvider
- onEnable() - Method in interface dev.polv.taleapi.permission.PermissionProvider
-
Called when this provider is registered with the permission service.
- onEntityMove(TaleEntity, Location, Location) - Method in interface dev.polv.taleapi.event.entity.EntityMoveCallback
-
Called when an entity moves from one location to another.
- onEntitySpawn(TaleEntity, Location) - Method in interface dev.polv.taleapi.event.entity.EntitySpawnCallback
-
Called when an entity is about to spawn in the world.
- onPermissionCheck(TalePlayer, String, ContextSet, PermissionResult) - Method in interface dev.polv.taleapi.event.player.PermissionCheckCallback
-
Called when a permission is being checked.
- onPlayerJoin(TalePlayer) - Method in interface dev.polv.taleapi.event.player.PlayerJoinCallback
-
Called when a player joins the server.
- onPlayerMove(TalePlayer, Location, Location) - Method in interface dev.polv.taleapi.event.player.PlayerMoveCallback
-
Called when a player moves from one location to another.
- onPlayerQuit(TalePlayer) - Method in interface dev.polv.taleapi.event.player.PlayerQuitCallback
-
Called when a player quits the server.
- onPostTick(TaleServer, long) - Method in interface dev.polv.taleapi.event.server.ServerPostTickCallback
-
Called at the end of each server tick, after tick processing completes.
- onPreTick(TaleServer, long) - Method in interface dev.polv.taleapi.event.server.ServerPreTickCallback
-
Called at the start of each server tick, before tick processing begins.
- onRegisterCommands(CommandRegistry) - Method in interface dev.polv.taleapi.command.CommandRegisterCallback
-
Called when commands should be registered.
- onServerShutdown(TaleServer) - Method in interface dev.polv.taleapi.event.server.ServerShutdownCallback
-
Called when the server is shutting down.
- onServerStarted(TaleServer) - Method in interface dev.polv.taleapi.event.server.ServerStartedCallback
-
Called when the server has fully started.
- onServerStarting(TaleServer) - Method in interface dev.polv.taleapi.event.server.ServerStartingCallback
-
Called when the server is starting up.
- override(PermissionResult) - Static method in class dev.polv.taleapi.event.player.PermissionCheckCallback.CheckResult
-
Creates a result that overrides with a custom permission result.
P
- parse(StringReader) - Method in interface dev.polv.taleapi.command.argument.ArgumentType
-
Parses the argument from the input string.
- parse(StringReader) - Method in class dev.polv.taleapi.command.argument.BooleanArgumentType
- parse(StringReader) - Method in class dev.polv.taleapi.command.argument.DoubleArgumentType
- parse(StringReader) - Method in class dev.polv.taleapi.command.argument.FloatArgumentType
- parse(StringReader) - Method in class dev.polv.taleapi.command.argument.IntegerArgumentType
- parse(StringReader) - Method in class dev.polv.taleapi.command.argument.LongArgumentType
- parse(StringReader) - Method in class dev.polv.taleapi.command.argument.StringArgumentType
- pass() - Static method in enum class dev.polv.taleapi.event.EventResult
-
Returns a completed future with
EventResult.PASS. - PASS - Enum constant in enum class dev.polv.taleapi.command.CommandResult
-
The command was not handled.
- PASS - Enum constant in enum class dev.polv.taleapi.event.EventResult
-
Continue processing the event.
- payload(Object) - Method in class dev.polv.taleapi.permission.PermissionNode.Builder
-
Sets the payload value.
- peek() - Method in class dev.polv.taleapi.command.argument.StringReader
-
Returns the character at the current position without advancing.
- peek(int) - Method in class dev.polv.taleapi.command.argument.StringReader
-
Returns the character at the specified offset from current position.
- permission(String) - Method in class dev.polv.taleapi.command.Command.Builder
-
Sets the permission required to use this command.
- permission(String) - Static method in exception dev.polv.taleapi.command.CommandException
-
Creates a permission exception indicating missing permissions.
- PERMISSION - Enum constant in enum class dev.polv.taleapi.command.CommandException.Type
-
Missing required permission.
- PermissionCheckCallback - Interface in dev.polv.taleapi.event.player
-
Called after a permission provider calculates a result but before the game receives it.
- PermissionCheckCallback.CheckResult - Class in dev.polv.taleapi.event.player
-
Represents the result of a permission check callback.
- PermissionHolder - Interface in dev.polv.taleapi.permission
-
Interface for entities that can have permissions.
- PermissionNode - Class in dev.polv.taleapi.permission
-
Represents a single permission node with state, payload, and context.
- PermissionNode.Builder - Class in dev.polv.taleapi.permission
-
Builder for creating PermissionNode instances.
- PermissionProvider - Interface in dev.polv.taleapi.permission
-
Service Provider Interface (SPI) for permission backends.
- PermissionResult - Class in dev.polv.taleapi.permission
-
The result of a permission query - not just a boolean!
- PermissionService - Class in dev.polv.taleapi.permission
-
The main entry point for the permission system.
- PermissionTree - Class in dev.polv.taleapi.permission
-
A Radix Tree (Trie) data structure for efficient permission lookups.
- PermissionTree() - Constructor for class dev.polv.taleapi.permission.PermissionTree
-
Creates an empty permission tree.
- PermissionTree(Collection<PermissionNode>) - Constructor for class dev.polv.taleapi.permission.PermissionTree
-
Creates a permission tree from a collection of nodes.
- pitch() - Method in class dev.polv.taleapi.world.Location
- PlayerJoinCallback - Interface in dev.polv.taleapi.event.player
-
Called when a player joins the server.
- PlayerMoveCallback - Interface in dev.polv.taleapi.event.player
-
Called when a player moves from one location to another.
- PlayerQuitCallback - Interface in dev.polv.taleapi.event.player
-
Called when a player quits the server.
- prettyPrinting() - Method in class dev.polv.taleapi.config.json.JsonProvider.Builder
-
Enables pretty printing for output.
- process(Set<? extends TypeElement>, RoundEnvironment) - Method in class dev.polv.taleapi.codegen.processor.TaleAnnotationProcessor
Q
- query(TalePlayer, String) - Method in class dev.polv.taleapi.permission.DefaultPermissionProvider
- query(TalePlayer, String) - Method in interface dev.polv.taleapi.permission.PermissionProvider
-
Queries a permission for a player.
- query(TalePlayer, String) - Method in class dev.polv.taleapi.permission.PermissionService
-
Queries a permission for a player.
- query(TalePlayer, String, ContextSet) - Method in class dev.polv.taleapi.permission.DefaultPermissionProvider
- query(TalePlayer, String, ContextSet) - Method in interface dev.polv.taleapi.permission.PermissionProvider
-
Queries a permission for a player with context.
- query(TalePlayer, String, ContextSet) - Method in class dev.polv.taleapi.permission.PermissionService
-
Queries a permission for a player with context.
- query(String) - Method in class dev.polv.taleapi.permission.PermissionTree
-
Queries the tree for a permission result.
- query(String, ContextSet) - Method in class dev.polv.taleapi.permission.PermissionTree
-
Queries the tree for a permission result with context.
- QUOTABLE - Enum constant in enum class dev.polv.taleapi.command.argument.StringArgumentType.StringType
-
Can be quoted or a single word.
R
- rawValue() - Method in interface dev.polv.taleapi.config.ConfigNode
-
Gets this node's value as a raw Object.
- rawValue() - Method in class dev.polv.taleapi.config.json.JacksonConfigNode
- read() - Method in class dev.polv.taleapi.command.argument.StringReader
-
Reads and returns the character at the current position, advancing the cursor.
- readBoolean() - Method in class dev.polv.taleapi.command.argument.StringReader
-
Reads a boolean from the current position.
- readDouble() - Method in class dev.polv.taleapi.command.argument.StringReader
-
Reads a double from the current position.
- readFloat() - Method in class dev.polv.taleapi.command.argument.StringReader
-
Reads a float from the current position.
- readInt() - Method in class dev.polv.taleapi.command.argument.StringReader
-
Reads an integer from the current position.
- readLong() - Method in class dev.polv.taleapi.command.argument.StringReader
-
Reads a long from the current position.
- readQuotedString() - Method in class dev.polv.taleapi.command.argument.StringReader
-
Reads a quoted string (handles escape sequences).
- readRemaining() - Method in class dev.polv.taleapi.command.argument.StringReader
-
Reads all remaining characters as a string.
- readString() - Method in class dev.polv.taleapi.command.argument.StringReader
-
Reads a string, handling both quoted and unquoted forms.
- readUnquotedString() - Method in class dev.polv.taleapi.command.argument.StringReader
-
Reads an unquoted string (stops at whitespace).
- register(Command) - Method in class dev.polv.taleapi.command.CommandRegistry
-
Registers a command.
- register(EventPriority, T) - Method in class dev.polv.taleapi.event.Event
-
Registers a listener with the specified priority.
- register(T) - Method in class dev.polv.taleapi.event.Event
-
Registers a listener with
EventPriority.NORMALpriority. - remove(String) - Method in class dev.polv.taleapi.permission.PermissionTree
-
Removes all permission nodes for a key.
- removePermission(TalePlayer, String) - Method in class dev.polv.taleapi.permission.DefaultPermissionProvider
- removePermission(TalePlayer, String) - Method in interface dev.polv.taleapi.permission.PermissionProvider
-
Removes a permission from a player.
- removePermission(TalePlayer, String) - Method in class dev.polv.taleapi.permission.PermissionService
-
Removes a permission from a player.
- requirement - Variable in class dev.polv.taleapi.command.CommandNode
-
The requirement predicate that must be satisfied for this command to be available.
- requires(String) - Method in class dev.polv.taleapi.command.CommandNode
-
Sets a requirement for this node based on a permission.
- requires(Predicate<CommandSender>) - Method in class dev.polv.taleapi.command.Command.Builder
-
Sets a custom requirement predicate for this command.
- requires(Predicate<CommandSender>) - Method in class dev.polv.taleapi.command.CommandNode
-
Sets a custom requirement predicate for this node.
- restart(int) - Method in class dev.polv.taleapi.command.suggestion.SuggestionsBuilder
-
Creates a new builder restarting at the given position.
S
- save(File, ConfigNode) - Method in class dev.polv.taleapi.config.ConfigLoader
-
Saves a
ConfigNodeto a file. - save(File, T) - Method in class dev.polv.taleapi.config.ConfigLoader
-
Saves configuration to a file.
- save(Writer, T) - Method in class dev.polv.taleapi.config.ConfigLoader
-
Saves configuration to a writer.
- save(Path, ConfigNode) - Method in class dev.polv.taleapi.config.ConfigLoader
-
Saves a
ConfigNodeto a path. - save(Path, T) - Method in class dev.polv.taleapi.config.ConfigLoader
-
Saves configuration to a path.
- saveAsync(File, T) - Method in class dev.polv.taleapi.config.ConfigLoader
-
Saves configuration to a file asynchronously using the default executor.
- saveAsync(File, T, Executor) - Method in class dev.polv.taleapi.config.ConfigLoader
-
Saves configuration to a file asynchronously using the specified executor.
- saveAsync(Path, T) - Method in class dev.polv.taleapi.config.ConfigLoader
-
Saves configuration to a path asynchronously using the default executor.
- saveAsync(Path, T, Executor) - Method in class dev.polv.taleapi.config.ConfigLoader
-
Saves configuration to a path asynchronously using the specified executor.
- saveToString(T) - Method in class dev.polv.taleapi.config.ConfigLoader
-
Serializes a configuration object to a string.
- sendMessage(String) - Method in interface dev.polv.taleapi.command.CommandSender
-
Sends a message to this command sender.
- sendMessage(String) - Method in interface dev.polv.taleapi.entity.TalePlayer
-
Sends a message to the player.
- serialize(Writer, ConfigNode) - Method in interface dev.polv.taleapi.config.ConfigProvider
-
Serializes a
ConfigNodeand writes it to the given writer. - serialize(Writer, ConfigNode) - Method in class dev.polv.taleapi.config.json.JsonProvider
- serialize(Writer, T) - Method in interface dev.polv.taleapi.config.ConfigProvider
-
Serializes a configuration object and writes it to the given writer.
- serialize(Writer, T) - Method in class dev.polv.taleapi.config.json.JsonProvider
- serializeNulls() - Method in class dev.polv.taleapi.config.json.JsonProvider.Builder
-
Enables serialization of null values.
- SERVER - Static variable in class dev.polv.taleapi.permission.ContextKey
-
Context key for the server name in a network.
- ServerPostTickCallback - Interface in dev.polv.taleapi.event.server
-
Called at the end of each server tick, after tick processing completes.
- ServerPreTickCallback - Interface in dev.polv.taleapi.event.server
-
Called at the start of each server tick, before tick processing begins.
- ServerShutdownCallback - Interface in dev.polv.taleapi.event.server
-
Called when the server is shutting down.
- ServerStartedCallback - Interface in dev.polv.taleapi.event.server
-
Called when the server has fully started.
- ServerStartingCallback - Interface in dev.polv.taleapi.event.server
-
Called when the server is starting up.
- set(PermissionNode) - Method in class dev.polv.taleapi.permission.PermissionTree
-
Sets a permission in the tree.
- setCursor(int) - Method in class dev.polv.taleapi.command.argument.StringReader
-
Sets the cursor position.
- setGroupPermission(String, PermissionNode) - Method in class dev.polv.taleapi.permission.DefaultPermissionProvider
-
Sets a permission for a group.
- setPermission(TalePlayer, PermissionNode) - Method in class dev.polv.taleapi.permission.DefaultPermissionProvider
- setPermission(TalePlayer, PermissionNode) - Method in interface dev.polv.taleapi.permission.PermissionProvider
-
Sets a permission for a player.
- setPermission(TalePlayer, PermissionNode) - Method in class dev.polv.taleapi.permission.PermissionService
-
Sets a permission for a player.
- setProvider(PermissionProvider) - Method in class dev.polv.taleapi.permission.PermissionService
-
Registers a permission provider.
- shouldStop() - Method in enum class dev.polv.taleapi.event.EventResult
- shutdown() - Method in class dev.polv.taleapi.permission.PermissionService
-
Shuts down the permission service.
- size() - Method in class dev.polv.taleapi.command.CommandRegistry
-
Returns the number of registered commands.
- size() - Method in interface dev.polv.taleapi.config.ConfigNode
-
Returns the number of elements in this node.
- size() - Method in class dev.polv.taleapi.config.json.JacksonConfigNode
- size() - Method in class dev.polv.taleapi.permission.ContextSet
-
Returns the number of context entries.
- size() - Method in class dev.polv.taleapi.permission.PermissionTree
-
Returns the number of permission nodes in this tree.
- skip() - Method in class dev.polv.taleapi.command.argument.StringReader
-
Skips the current character.
- skipWhitespace() - Method in class dev.polv.taleapi.command.argument.StringReader
-
Skips all whitespace characters at the current position.
- state(Tristate) - Method in class dev.polv.taleapi.permission.PermissionNode.Builder
-
Sets the permission state.
- string() - Static method in class dev.polv.taleapi.command.argument.StringArgumentType
-
Creates a string argument type (quoted or single word).
- StringArgumentType - Class in dev.polv.taleapi.command.argument
-
Argument type for string values.
- StringArgumentType.StringType - Enum Class in dev.polv.taleapi.command.argument
-
The type of string parsing.
- StringRange - Class in dev.polv.taleapi.command.suggestion
-
Represents a range within a string, used for suggestion placement.
- StringRange(int, int) - Constructor for class dev.polv.taleapi.command.suggestion.StringRange
-
Creates a new range.
- StringReader - Class in dev.polv.taleapi.command.argument
-
A simple string reader for parsing command arguments.
- StringReader(String) - Constructor for class dev.polv.taleapi.command.argument.StringReader
-
Creates a new StringReader for the given input.
- StringReader(String, int) - Constructor for class dev.polv.taleapi.command.argument.StringReader
-
Creates a new StringReader starting at a specific position.
- success() - Static method in enum class dev.polv.taleapi.event.EventResult
-
Returns a completed future with
EventResult.SUCCESS. - SUCCESS - Enum constant in enum class dev.polv.taleapi.command.CommandResult
-
The command executed successfully.
- SUCCESS - Enum constant in enum class dev.polv.taleapi.event.EventResult
-
Stop processing and indicate the event was handled successfully.
- suggest(int) - Method in class dev.polv.taleapi.command.suggestion.SuggestionsBuilder
-
Adds an integer suggestion.
- suggest(int, String) - Method in class dev.polv.taleapi.command.suggestion.SuggestionsBuilder
-
Adds an integer suggestion with a tooltip.
- suggest(Iterable<String>) - Method in class dev.polv.taleapi.command.suggestion.SuggestionsBuilder
-
Adds multiple suggestions.
- suggest(String) - Method in class dev.polv.taleapi.command.suggestion.SuggestionsBuilder
-
Adds a suggestion.
- suggest(String, String) - Method in class dev.polv.taleapi.command.suggestion.SuggestionsBuilder
-
Adds a suggestion with a tooltip.
- Suggestion - Class in dev.polv.taleapi.command.suggestion
-
A single suggestion for command autocompletion.
- Suggestion(StringRange, String) - Constructor for class dev.polv.taleapi.command.suggestion.Suggestion
-
Creates a suggestion without a tooltip.
- Suggestion(StringRange, String, String) - Constructor for class dev.polv.taleapi.command.suggestion.Suggestion
-
Creates a suggestion with a tooltip.
- SuggestionProvider - Interface in dev.polv.taleapi.command.suggestion
-
Functional interface for providing custom suggestions for an argument.
- Suggestions - Class in dev.polv.taleapi.command.suggestion
-
A collection of suggestions for command autocompletion.
- Suggestions(StringRange, List<Suggestion>) - Constructor for class dev.polv.taleapi.command.suggestion.Suggestions
-
Creates a new Suggestions instance.
- SuggestionsBuilder - Class in dev.polv.taleapi.command.suggestion
-
Builder for creating
Suggestions. - SuggestionsBuilder(String, int) - Constructor for class dev.polv.taleapi.command.suggestion.SuggestionsBuilder
-
Creates a new suggestions builder.
- suggests(SuggestionProvider) - Method in class dev.polv.taleapi.command.CommandNode.ArgumentNode
-
Sets a custom suggestion provider for this argument.
- syntax(String) - Static method in exception dev.polv.taleapi.command.CommandException
-
Creates a syntax exception indicating invalid command syntax.
- SYNTAX - Enum constant in enum class dev.polv.taleapi.command.CommandException.Type
-
Invalid command syntax.
T
- TaleAnnotationProcessor - Class in dev.polv.taleapi.codegen.processor
-
Annotation processor that generates JSON files for blocks and items.
- TaleAnnotationProcessor() - Constructor for class dev.polv.taleapi.codegen.processor.TaleAnnotationProcessor
- TaleBlock - Interface in dev.polv.taleapi.block
-
Represents a block type in the world.
- TaleEntity - Interface in dev.polv.taleapi.entity
-
Represents any entity in the world.
- TaleItem - Interface in dev.polv.taleapi.item
-
Represents an item type that can exist in inventories.
- TalePlayer - Interface in dev.polv.taleapi.entity
-
Represents a player in Hytale.
- TaleServer - Interface in dev.polv.taleapi.server
-
Represents the game server and provides access to server-wide functionality.
- teleport(Location) - Method in interface dev.polv.taleapi.entity.TaleEntity
-
Teleports the entity to the specified location.
- then(CommandNode<?>) - Method in class dev.polv.taleapi.command.Command.Builder
-
Adds a child node to the root of this command.
- then(CommandNode<?>) - Method in class dev.polv.taleapi.command.CommandNode
-
Adds a child node to this node.
- toJson() - Method in interface dev.polv.taleapi.config.ConfigNode
-
Returns the JSON string representation of this node.
- toJson() - Method in class dev.polv.taleapi.config.json.JacksonConfigNode
- toPrettyJson() - Method in interface dev.polv.taleapi.config.ConfigNode
-
Returns the pretty-printed JSON string representation of this node.
- toPrettyJson() - Method in class dev.polv.taleapi.config.json.JacksonConfigNode
- toResult() - Method in class dev.polv.taleapi.permission.PermissionNode
-
Converts this node to a PermissionResult.
- toString() - Method in class dev.polv.taleapi.command.argument.StringReader
- toString() - Method in class dev.polv.taleapi.command.Command
- toString() - Method in class dev.polv.taleapi.command.CommandNode.ArgumentNode
- toString() - Method in class dev.polv.taleapi.command.CommandNode.LiteralNode
- toString() - Method in class dev.polv.taleapi.command.suggestion.StringRange
- toString() - Method in class dev.polv.taleapi.command.suggestion.Suggestion
- toString() - Method in class dev.polv.taleapi.command.suggestion.Suggestions
- toString() - Method in class dev.polv.taleapi.config.json.JacksonConfigNode
- toString() - Method in class dev.polv.taleapi.permission.ContextKey
- toString() - Method in class dev.polv.taleapi.permission.ContextSet
- toString() - Method in class dev.polv.taleapi.permission.PermissionNode
- toString() - Method in class dev.polv.taleapi.permission.PermissionResult
- toString() - Method in class dev.polv.taleapi.world.Location
- Tristate - Enum Class in dev.polv.taleapi.permission
-
Represents a tri-valued permission state.
- type() - Method in class dev.polv.taleapi.permission.ContextKey
-
Returns the type of values this key holds.
U
- UNDEFINED - Enum constant in enum class dev.polv.taleapi.permission.Tristate
-
No explicit permission set - inherit from parent or use default.
- UNDEFINED - Static variable in class dev.polv.taleapi.permission.PermissionResult
-
Result indicating the permission was not defined (undefined).
- unloadPlayer(TalePlayer) - Method in class dev.polv.taleapi.permission.DefaultPermissionProvider
- unloadPlayer(TalePlayer) - Method in interface dev.polv.taleapi.permission.PermissionProvider
-
Called when a player leaves the server.
- unloadPlayer(TalePlayer) - Method in class dev.polv.taleapi.permission.PermissionService
-
Called when a player leaves.
- unmodified() - Static method in class dev.polv.taleapi.event.player.PermissionCheckCallback.CheckResult
-
Creates a result that keeps the original permission result.
- unregister(String) - Method in class dev.polv.taleapi.command.CommandRegistry
-
Unregisters a command by name.
- unregister(T) - Method in class dev.polv.taleapi.event.Event
-
Unregisters a listener from all priority levels.
V
- valueOf(String) - Static method in enum class dev.polv.taleapi.command.argument.StringArgumentType.StringType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class dev.polv.taleapi.command.CommandException.Type
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class dev.polv.taleapi.command.CommandResult
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class dev.polv.taleapi.event.EventPriority
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class dev.polv.taleapi.event.EventResult
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class dev.polv.taleapi.permission.Tristate
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class dev.polv.taleapi.command.argument.StringArgumentType.StringType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class dev.polv.taleapi.command.CommandException.Type
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class dev.polv.taleapi.command.CommandResult
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class dev.polv.taleapi.event.EventPriority
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class dev.polv.taleapi.event.EventResult
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class dev.polv.taleapi.permission.Tristate
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- wasHandled() - Method in enum class dev.polv.taleapi.command.CommandResult
- WILDCARD - Static variable in class dev.polv.taleapi.permission.PermissionTree
-
The wildcard character that matches any permission segment.
- withArgument(String, Object) - Method in class dev.polv.taleapi.command.CommandContext.Builder
-
Adds a parsed argument to the context.
- withArguments(Map<String, Object>) - Method in class dev.polv.taleapi.command.CommandContext.Builder
-
Adds all arguments from a map to the context.
- withCommand(Command) - Method in class dev.polv.taleapi.command.CommandContext.Builder
-
Sets the command being executed.
- withContext(ContextSet) - Method in class dev.polv.taleapi.permission.PermissionNode
-
Creates a copy of this node with a different context.
- withPayload(Object) - Method in class dev.polv.taleapi.permission.PermissionNode
-
Creates a copy of this node with a different payload.
- withRotation(float, float) - Method in class dev.polv.taleapi.world.Location
-
Creates a new location with modified rotation.
- withState(Tristate) - Method in class dev.polv.taleapi.permission.PermissionNode
-
Creates a copy of this node with a different state.
- withX(double) - Method in class dev.polv.taleapi.world.Location
-
Creates a new location with modified x coordinate.
- withY(double) - Method in class dev.polv.taleapi.world.Location
-
Creates a new location with modified y coordinate.
- withZ(double) - Method in class dev.polv.taleapi.world.Location
-
Creates a new location with modified z coordinate.
- word() - Static method in class dev.polv.taleapi.command.argument.StringArgumentType
-
Creates a word argument type (single word, no spaces).
- WORD - Enum constant in enum class dev.polv.taleapi.command.argument.StringArgumentType.StringType
-
Single word (stops at whitespace).
- WORLD - Static variable in class dev.polv.taleapi.permission.ContextKey
-
Context key for the world name (e.g., "nether", "overworld").
X
Y
- y() - Method in class dev.polv.taleapi.world.Location
- yaw() - Method in class dev.polv.taleapi.world.Location
Z
A B C D E F G H I J K L M N O P Q R S T U V W X Y ZAll Classes and Interfaces|All Packages|Constant Field Values|Serialized Form