Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- AbstractStorageProvider<K,
V> - Class in dev.crafty.core.storage - AbstractStorageProvider(Class<V>) - Constructor for class dev.crafty.core.storage.AbstractStorageProvider
- accept(A, B, C) - Method in interface dev.crafty.core.util.Optionals.TriConsumer
- accept(A, B, C, D) - Method in interface dev.crafty.core.util.Optionals.QuadConsumer
- Action - Interface in dev.crafty.core.actions
- ActionContext - Record Class in dev.crafty.core.actions.config
- ActionContext(Player, List<ConfigValue<?>>) - Constructor for record class dev.crafty.core.actions.config.ActionContext
-
Creates an instance of a
ActionContext
record class. - ActionManager - Class in dev.crafty.core.actions
- ActionManager() - Constructor for class dev.crafty.core.actions.ActionManager
- actions() - Method in record class dev.crafty.core.gui.GuiItem
-
Returns the value of the
actions
record component. - addItem(GuiItem) - Method in class dev.crafty.core.gui.Menu
- addItems(GuiItem...) - Method in class dev.crafty.core.gui.Menu
- apply(ItemStack[], SectionWrapper, Menu) - Method in class dev.crafty.core.gui.ItemSupplier
- apply(ItemStack[], SectionWrapper, Menu) - Method in class dev.crafty.core.gui.suppliers.ConditionalItemSupplier
- apply(ItemStack[], SectionWrapper, Menu) - Method in class dev.crafty.core.gui.suppliers.DynamicItemSupplier
- apply(ItemStack[], SectionWrapper, Menu) - Method in class dev.crafty.core.gui.suppliers.MappedItemSupplier
- apply(ItemStack[], SectionWrapper, Menu) - Method in class dev.crafty.core.gui.suppliers.PaginatedMappedItemSupplier
- apply(ItemStack[], SectionWrapper, Menu) - Method in class dev.crafty.core.gui.suppliers.StaticItemSupplier
- applyToAll(ItemStack[], ItemStack) - Method in class dev.crafty.core.gui.ItemSupplier
- areAllPresent(Optional<?>...) - Static method in class dev.crafty.core.util.Optionals
B
- Bridge - Interface in dev.crafty.core.bridge
-
Bridges provide a unified api for accessing multiple plugins.
- BridgeManager - Class in dev.crafty.core.bridge
-
Manages the current bridges
- BridgeManager() - Constructor for class dev.crafty.core.bridge.BridgeManager
- bridgeName() - Method in interface dev.crafty.core.bridge.Bridge
-
Returns the type or category name of this bridge.
- bridgeName() - Method in interface dev.crafty.core.bridge.economy.EconomyBridge
-
Returns the type or category name of this bridge.
- bridgeName() - Method in interface dev.crafty.core.bridge.mobs.MobBridge
- bridgeName() - Method in interface dev.crafty.core.bridge.placeholders.PlaceholderBridge
-
Returns the name of this bridge implementation.
- bridgePriorities - Variable in class dev.crafty.core.CraftyCoreConfig
- byName(String) - Static method in class dev.crafty.core.storage.wrappers.NamedObjectReference
- byName(String, Class<T>) - Static method in class dev.crafty.core.storage.wrappers.NamedObjectReference
C
- CachedStorageProvider<K,
V> - Class in dev.crafty.core.storage.providers - CachedStorageProvider(StorageProvider<K, V>) - Constructor for class dev.crafty.core.storage.providers.CachedStorageProvider
- CachedStorageProvider(StorageProvider<K, V>, Caffeine<Object, Object>, Caffeine<Object, Object>) - Constructor for class dev.crafty.core.storage.providers.CachedStorageProvider
- cancel(String) - Method in class dev.crafty.core.scheduler.SchedulerService
-
Cancels a scheduled action by its identifier.
- canRegister() - Method in interface dev.crafty.core.bridge.Bridge
-
Checks if this bridge can be registered.
- canRegister() - Method in class dev.crafty.core.bridge.economy.vault.VaultEconomyBridge
- canRegister() - Method in class dev.crafty.core.bridge.mobs.mythicmobs.MythicMobsBridge
- canRegister() - Method in class dev.crafty.core.bridge.placeholders.placeholderapi.PlaceholderApiBridge
- clearPluginCache(CraftyPlugin) - Method in class dev.crafty.core.gui.GuiCacheManager
-
Clears the cache for a specific plugin.
- close() - Method in class dev.crafty.core.storage.AbstractStorageProvider
- close() - Method in class dev.crafty.core.storage.providers.CachedStorageProvider
- close() - Method in class dev.crafty.core.storage.providers.MySqlStorageProvider
- close() - Method in class dev.crafty.core.storage.providers.PostgresStorageProvider
- close() - Method in interface dev.crafty.core.storage.StorageProvider
-
Closes the storage provider and releases any resources.
- closeAllProviders() - Method in class dev.crafty.core.storage.ProviderManager
-
Closes all storage providers.
- collect(Player, String, String, CraftyPlugin) - Static method in class dev.crafty.core.util.Input
-
Collects a string input from a player using SignGUI.
- collectTyped(Player, String, String, CraftyPlugin, Function<String, T>, Predicate<T>, String) - Static method in class dev.crafty.core.util.Input
-
Collects an input of a specified type from a player using SignGUI.
- colorize(String) - Static method in class dev.crafty.core.util.Lang
- colorizeList(List<String>) - Static method in class dev.crafty.core.util.Lang
- colorizeListWithPlaceholders(Player, List<Component>) - Static method in class dev.crafty.core.util.Lang
-
Helper to do the same on a list of Components (like lore lines).
- colorizeWithPlaceholders(Player, Component) - Static method in class dev.crafty.core.util.Lang
-
Apply PlaceholderAPI replacements on the plain text of the given component, then parse the result as MiniMessage, and apply optional style fixes.
- commandManager - Variable in class dev.crafty.core.plugin.CraftyPlugin
- Components - Class in dev.crafty.core.util
- Components() - Constructor for class dev.crafty.core.util.Components
- CONDITIONAL - Enum constant in enum class dev.crafty.core.gui.ItemType
- ConditionalItemSupplier - Class in dev.crafty.core.gui.suppliers
- ConditionalItemSupplier() - Constructor for class dev.crafty.core.gui.suppliers.ConditionalItemSupplier
- ConfigField<T> - Record Class in dev.crafty.core.actions.config
- ConfigField(String, Class<T>, T) - Constructor for record class dev.crafty.core.actions.config.ConfigField
-
Creates an instance of a
ConfigField
record class. - Configs - Class in dev.crafty.core.util
- Configs() - Constructor for class dev.crafty.core.util.Configs
- ConfigSerializer<T> - Interface in dev.crafty.core.config.serializers
-
Simple interface for creating custom configuration serializers.
- ConfigurationFile - Annotation Interface in dev.crafty.core.config
-
Annotation to mark a class as a configuration file.
- ConfigurationManager - Class in dev.crafty.core.config
- ConfigurationManager() - Constructor for class dev.crafty.core.config.ConfigurationManager
- ConfigurationUtils - Class in dev.crafty.core.config
-
Utility class for configuration operations.
- ConfigurationUtils() - Constructor for class dev.crafty.core.config.ConfigurationUtils
- ConfigValue<T> - Record Class in dev.crafty.core.actions.config
- ConfigValue(ConfigField<T>, T) - Constructor for record class dev.crafty.core.actions.config.ConfigValue
-
Creates an instance of a
ConfigValue
record class. - configValues() - Method in record class dev.crafty.core.actions.config.ActionContext
-
Returns the value of the
configValues
record component. - connectionString - Variable in class dev.crafty.core.CraftyCoreConfig.StorageConfig.MongodbConfig
- contains(String) - Method in class dev.crafty.core.config.SectionWrapper
-
Check if a path exists in this section.
- CooldownManager - Class in dev.crafty.core.player
- CooldownManager() - Constructor for class dev.crafty.core.player.CooldownManager
- core - Variable in class dev.crafty.core.plugin.CraftyPlugin
- CraftyCore - Class in dev.crafty.core
- CraftyCore() - Constructor for class dev.crafty.core.CraftyCore
- CraftyCoreConfig - Class in dev.crafty.core
-
Main configuration class for CraftyCore.
- CraftyCoreConfig() - Constructor for class dev.crafty.core.CraftyCoreConfig
- CraftyCoreConfig.DebugConfig - Class in dev.crafty.core
- CraftyCoreConfig.StorageConfig - Class in dev.crafty.core
- CraftyCoreConfig.StorageConfig.MongodbConfig - Class in dev.crafty.core
- CraftyCoreConfig.StorageConfig.MysqlConfig - Class in dev.crafty.core
- CraftyCoreConfig.StorageConfig.PostgresConfig - Class in dev.crafty.core
- CraftyCoreConfig.StorageConfig.YamlConfig - Class in dev.crafty.core
- CraftyLogger - Class in dev.crafty.core.bukkit
-
Enhanced logger
- CraftyLogger(JavaPlugin) - Constructor for class dev.crafty.core.bukkit.CraftyLogger
- CraftyPlugin - Class in dev.crafty.core.plugin
- CraftyPlugin() - Constructor for class dev.crafty.core.plugin.CraftyPlugin
- createCachedProvider(StorageProvider<K, T>) - Static method in class dev.crafty.core.storage.StorageProviderFactory
-
Creates a cached storage provider that wraps the given provider.
- createCooldown(String, long) - Static method in class dev.crafty.core.player.CooldownManager
-
Creates a cooldown with the specified key and duration.
- createIfNotExists() - Element in annotation interface dev.crafty.core.config.ConfigurationFile
-
Whether to create the file if it doesn't exist.
- createMongoDbProvider(Class<K>, Class<T>, String, String) - Static method in class dev.crafty.core.storage.StorageProviderFactory
-
Creates a MongoDb storage provider with generic key type.
- createMongoDbProvider(Class<T>, String, String) - Static method in class dev.crafty.core.storage.StorageProviderFactory
-
Creates a MongoDb storage provider with String keys.
- createMySqlProvider(Class<K>, Class<T>, String, String, String, String) - Static method in class dev.crafty.core.storage.StorageProviderFactory
-
Creates a MySQL storage provider with generic key type.
- createMySqlProvider(Class<T>, String, String, String, String) - Static method in class dev.crafty.core.storage.StorageProviderFactory
-
Creates a MySQL storage provider with String keys.
- createPostgresProvider(Class<K>, Class<T>, String, String, String, String) - Static method in class dev.crafty.core.storage.StorageProviderFactory
-
Creates a PostgreSQL storage provider with generic key type.
- createPostgresProvider(Class<T>, String, String, String, String) - Static method in class dev.crafty.core.storage.StorageProviderFactory
-
Creates a PostgreSQL storage provider with String keys.
- createProvider(StorageProviderFactory.StorageType, Class<T>, StorageProviderFactory.StorageConfig) - Static method in class dev.crafty.core.storage.StorageProviderFactory
-
Creates a storage provider based on the specified type with String keys.
- createProvider(Class<K>, StorageProviderFactory.StorageType, Class<T>, StorageProviderFactory.StorageConfig) - Static method in class dev.crafty.core.storage.StorageProviderFactory
-
Creates a storage provider based on the specified type with generic key type.
- createYamlProvider(Class<K>, Class<T>, Path) - Static method in class dev.crafty.core.storage.StorageProviderFactory
-
Creates a YAML storage provider with generic key type.
- createYamlProvider(Class<T>, String) - Static method in class dev.crafty.core.storage.StorageProviderFactory
-
Creates a YAML storage provider with String keys.
- createYamlProvider(Class<T>, Path) - Static method in class dev.crafty.core.storage.StorageProviderFactory
-
Creates a YAML storage provider with String keys.
D
- database - Variable in class dev.crafty.core.CraftyCoreConfig.StorageConfig.MysqlConfig
- database - Variable in class dev.crafty.core.CraftyCoreConfig.StorageConfig.PostgresConfig
- dataFolder - Variable in class dev.crafty.core.CraftyCoreConfig.StorageConfig.YamlConfig
- debug - Variable in class dev.crafty.core.CraftyCoreConfig
- debug(String, Object...) - Method in class dev.crafty.core.bukkit.CraftyLogger
- DebugConfig() - Constructor for class dev.crafty.core.CraftyCoreConfig.DebugConfig
- defaultValue() - Method in record class dev.crafty.core.actions.config.ConfigField
-
Returns the value of the
defaultValue
record component. - delete(K) - Method in class dev.crafty.core.storage.providers.CachedStorageProvider
- delete(K) - Method in class dev.crafty.core.storage.providers.MongoDbStorageProvider
- delete(K) - Method in class dev.crafty.core.storage.providers.MySqlStorageProvider
- delete(K) - Method in class dev.crafty.core.storage.providers.PostgresStorageProvider
- delete(K) - Method in class dev.crafty.core.storage.providers.YamlStorageProvider
- delete(K) - Method in interface dev.crafty.core.storage.StorageProvider
-
Deletes an object from the storage.
- deposit(UUID, double) - Method in interface dev.crafty.core.bridge.economy.EconomyBridge
-
Deposits a specified amount to the player's balance.
- deposit(UUID, double) - Method in class dev.crafty.core.bridge.economy.vault.VaultEconomyBridge
- deserialize(JsonParser, DeserializationContext) - Method in class dev.crafty.core.storage.wrappers.NamedObjectReferenceDeserializer
- deserialize(SectionWrapper) - Method in interface dev.crafty.core.config.serializers.ConfigSerializer
-
Deserialize an object from a SectionWrapper.
- deserialize(SectionWrapper) - Method in class dev.crafty.core.config.serializers.ItemStackSerializer
- deserialize(SectionWrapper) - Method in class dev.crafty.core.config.serializers.LocationSerializer
- deserialize(SectionWrapper, Class<T>) - Method in class dev.crafty.core.config.serializers.SerializerRegistry
-
Deserialize an object from a SectionWrapper using the registered serializer.
- deserialize(Map<String, Object>) - Method in interface dev.crafty.core.config.serializers.ConfigSerializer
- dev.crafty.core - package dev.crafty.core
- dev.crafty.core.actions - package dev.crafty.core.actions
- dev.crafty.core.actions.config - package dev.crafty.core.actions.config
- dev.crafty.core.actions.impl - package dev.crafty.core.actions.impl
- dev.crafty.core.bridge - package dev.crafty.core.bridge
- dev.crafty.core.bridge.economy - package dev.crafty.core.bridge.economy
- dev.crafty.core.bridge.economy.vault - package dev.crafty.core.bridge.economy.vault
- dev.crafty.core.bridge.mobs - package dev.crafty.core.bridge.mobs
- dev.crafty.core.bridge.mobs.mythicmobs - package dev.crafty.core.bridge.mobs.mythicmobs
- dev.crafty.core.bridge.placeholders - package dev.crafty.core.bridge.placeholders
- dev.crafty.core.bridge.placeholders.placeholderapi - package dev.crafty.core.bridge.placeholders.placeholderapi
- dev.crafty.core.bukkit - package dev.crafty.core.bukkit
- dev.crafty.core.config - package dev.crafty.core.config
- dev.crafty.core.config.serializers - package dev.crafty.core.config.serializers
- dev.crafty.core.gui - package dev.crafty.core.gui
- dev.crafty.core.gui.suppliers - package dev.crafty.core.gui.suppliers
- dev.crafty.core.i18n - package dev.crafty.core.i18n
- dev.crafty.core.player - package dev.crafty.core.player
- dev.crafty.core.plugin - package dev.crafty.core.plugin
- dev.crafty.core.scheduler - package dev.crafty.core.scheduler
- dev.crafty.core.storage - package dev.crafty.core.storage
- dev.crafty.core.storage.providers - package dev.crafty.core.storage.providers
- dev.crafty.core.storage.serialization - package dev.crafty.core.storage.serialization
- dev.crafty.core.storage.wrappers - package dev.crafty.core.storage.wrappers
- dev.crafty.core.task.api - package dev.crafty.core.task.api
- dev.crafty.core.task.providers - package dev.crafty.core.task.providers
- dev.crafty.core.util - package dev.crafty.core.util
- DYNAMIC - Enum constant in enum class dev.crafty.core.gui.ItemType
- DynamicConfigLoader<K,
V> - Class in dev.crafty.core.config - DynamicConfigLoader(File, ConfigSerializer<V>, String, Function<String, K>, Function<K, String>) - Constructor for class dev.crafty.core.config.DynamicConfigLoader
- DynamicItemSupplier - Class in dev.crafty.core.gui.suppliers
- DynamicItemSupplier() - Constructor for class dev.crafty.core.gui.suppliers.DynamicItemSupplier
E
- EconomyBridge - Interface in dev.crafty.core.bridge.economy
- empty() - Static method in record class dev.crafty.core.gui.GuiItem
- enabled - Variable in class dev.crafty.core.CraftyCoreConfig.DebugConfig
- EnhancedBaseCommand - Class in dev.crafty.core.bukkit
-
Automatically registers the command
- EnhancedBaseCommand() - Constructor for class dev.crafty.core.bukkit.EnhancedBaseCommand
- equals(Object) - Method in record class dev.crafty.core.actions.config.ActionContext
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dev.crafty.core.actions.config.ConfigField
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dev.crafty.core.actions.config.ConfigValue
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dev.crafty.core.gui.GuiItem
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dev.crafty.core.gui.Menu.MappedItemConfig
-
Indicates whether some other object is "equal to" this one.
- error(String, Object...) - Method in class dev.crafty.core.bukkit.CraftyLogger
- evaluateForBoolean(String) - Static method in class dev.crafty.core.util.Expressions
- execute(ActionContext) - Method in interface dev.crafty.core.actions.Action
- execute(ActionContext) - Method in class dev.crafty.core.actions.impl.GiveItemAction
- execute(ActionContext) - Method in class dev.crafty.core.actions.impl.TeleportAction
- executeAction(Player, String) - Static method in class dev.crafty.core.actions.ActionManager
- exists() - Method in class dev.crafty.core.config.SectionWrapper
-
Check if the wrapped section exists and is not null.
- exists(K) - Method in class dev.crafty.core.storage.AbstractStorageProvider
- exists(K) - Method in class dev.crafty.core.storage.providers.CachedStorageProvider
- exists(K) - Method in interface dev.crafty.core.storage.StorageProvider
-
Checks if an object exists in the storage.
- Expressions - Class in dev.crafty.core.util
- Expressions() - Constructor for class dev.crafty.core.util.Expressions
F
- fetchLatestVersion() - Static method in class dev.crafty.core.util.GitHubLatestVersionFetcher
- field() - Method in record class dev.crafty.core.actions.config.ConfigValue
-
Returns the value of the
field
record component. - forMongoDb(String, String) - Static method in class dev.crafty.core.storage.StorageProviderFactory.StorageConfig
- forMySql(String, String, String, String) - Static method in class dev.crafty.core.storage.StorageProviderFactory.StorageConfig
-
Creates a new StorageConfig for MySQL storage.
- forPostgres(String, String, String, String) - Static method in class dev.crafty.core.storage.StorageProviderFactory.StorageConfig
-
Creates a new StorageConfig for PostgreSQL storage.
- forYaml(String) - Static method in class dev.crafty.core.storage.StorageProviderFactory.StorageConfig
-
Creates a new StorageConfig for YAML storage.
- fromJson(String, Class<T>) - Static method in class dev.crafty.core.storage.serialization.StorageSerializer
-
Converts a JSON string to an object.
- fromJson(String, Class<T>, Class<?>...) - Static method in class dev.crafty.core.storage.serialization.StorageSerializer
-
Converts a JSON string to an object with generic type parameters.
- fromMap(Map<String, Object>, Class<T>) - Static method in class dev.crafty.core.storage.serialization.StorageSerializer
-
Converts a Map to an object.
- fromString(String) - Static method in class dev.crafty.core.util.Components
- fromStringList(List<String>) - Static method in class dev.crafty.core.util.Components
- fromYaml(String, Class<T>) - Static method in class dev.crafty.core.storage.serialization.StorageSerializer
-
Converts a YAML string to an object.
G
- generatePlayerDataKey(UUID, String) - Method in class dev.crafty.core.storage.ProviderManager
- get() - Method in class dev.crafty.core.i18n.i18nManager.LocalizationQuery
- get(String) - Method in class dev.crafty.core.config.SectionWrapper
-
Get an object value.
- get(String, Object) - Method in class dev.crafty.core.config.SectionWrapper
-
Get an object value with a default.
- get(K) - Method in class dev.crafty.core.config.DynamicConfigLoader
- get(K) - Method in class dev.crafty.core.storage.providers.CachedStorageProvider
- get(K) - Method in class dev.crafty.core.storage.providers.MongoDbStorageProvider
- get(K) - Method in class dev.crafty.core.storage.providers.MySqlStorageProvider
- get(K) - Method in class dev.crafty.core.storage.providers.PostgresStorageProvider
- get(K) - Method in class dev.crafty.core.storage.providers.YamlStorageProvider
- get(K) - Method in interface dev.crafty.core.storage.StorageProvider
-
Retrieves an object from the storage.
- getAction(String) - Method in class dev.crafty.core.gui.Menu
- getActions(SectionWrapper, Menu) - Method in class dev.crafty.core.gui.ItemSupplier
- getAll() - Method in class dev.crafty.core.config.DynamicConfigLoader
- getAll() - Method in class dev.crafty.core.storage.providers.CachedStorageProvider
- getAll() - Method in class dev.crafty.core.storage.providers.MongoDbStorageProvider
- getAll() - Method in class dev.crafty.core.storage.providers.MySqlStorageProvider
- getAll() - Method in class dev.crafty.core.storage.providers.PostgresStorageProvider
- getAll() - Method in class dev.crafty.core.storage.providers.YamlStorageProvider
- getAll() - Method in interface dev.crafty.core.storage.StorageProvider
-
Retrieves all objects from the storage.
- getAllSerializers() - Method in class dev.crafty.core.config.serializers.SerializerRegistry
-
Get all registered serializers.
- getBalance(UUID) - Method in interface dev.crafty.core.bridge.economy.EconomyBridge
-
Retrieves the balance of the specified player.
- getBalance(UUID) - Method in class dev.crafty.core.bridge.economy.vault.VaultEconomyBridge
- getBoolean(String) - Method in class dev.crafty.core.config.SectionWrapper
-
Get a boolean value.
- getBoolean(String, boolean) - Method in class dev.crafty.core.config.SectionWrapper
-
Get a boolean value with a default.
- getBooleanList(String) - Method in class dev.crafty.core.config.SectionWrapper
-
Get a boolean list value.
- getBridge(Class<T>) - Static method in class dev.crafty.core.bridge.BridgeManager
- getByteList(String) - Method in class dev.crafty.core.config.SectionWrapper
-
Get a byte list value.
- getCachedConfigCount(CraftyPlugin) - Method in class dev.crafty.core.gui.GuiCacheManager
-
Gets the number of cached menu configurations for a plugin.
- getCharacterList(String) - Method in class dev.crafty.core.config.SectionWrapper
-
Get a character list value.
- getColor(String) - Method in class dev.crafty.core.config.SectionWrapper
-
Get a color value.
- getColor(String, Color) - Method in class dev.crafty.core.config.SectionWrapper
-
Get a color value with a default.
- getConfigFields() - Method in interface dev.crafty.core.actions.Action
- getConfigFields() - Method in class dev.crafty.core.actions.impl.GiveItemAction
- getConfigFields() - Method in class dev.crafty.core.actions.impl.TeleportAction
- getConfigValue(String) - Method in record class dev.crafty.core.actions.config.ActionContext
- getCurrentPage(String) - Method in class dev.crafty.core.gui.Menu
-
Get the current page number for a mapped item source.
- getCurrentPageDisplay() - Method in class dev.crafty.core.gui.PaginationState
-
Get the current page number (1-based) for display purposes.
- getCurrentPath() - Method in class dev.crafty.core.config.SectionWrapper
-
Get the current path of this section.
- getDataPath() - Method in class dev.crafty.core.CraftyCore
-
Get the data folder path for the plugin.
- getDouble(String) - Method in class dev.crafty.core.config.SectionWrapper
-
Get a double value.
- getDouble(String, double) - Method in class dev.crafty.core.config.SectionWrapper
-
Get a double value with a default.
- getDoubleList(String) - Method in class dev.crafty.core.config.SectionWrapper
-
Get a double list value.
- getEndIndex() - Method in class dev.crafty.core.gui.PaginationState
-
Get the ending index for the current page in the data collection.
- getFloatList(String) - Method in class dev.crafty.core.config.SectionWrapper
-
Get a float list value.
- getInstance() - Static method in class dev.crafty.core.config.ConfigurationManager
- getInstance() - Static method in class dev.crafty.core.config.serializers.SerializerRegistry
- getInt(String) - Method in class dev.crafty.core.config.SectionWrapper
-
Get an integer value.
- getInt(String, int) - Method in class dev.crafty.core.config.SectionWrapper
-
Get an integer value with a default.
- getIntegerList(String) - Method in class dev.crafty.core.config.SectionWrapper
-
Get an integer list value.
- getItemsOnCurrentPage() - Method in class dev.crafty.core.gui.PaginationState
-
Get the number of items on the current page.
- getItemStack(String) - Method in class dev.crafty.core.config.SectionWrapper
-
Get an item stack value.
- getItemStack(String, ItemStack) - Method in class dev.crafty.core.config.SectionWrapper
-
Get an item stack value with a default.
- getItemSupplier(String) - Method in class dev.crafty.core.gui.Menu
- getJsonMapper() - Static method in class dev.crafty.core.storage.serialization.StorageSerializer
-
Gets the JSON ObjectMapper instance.
- getKeys(boolean) - Method in class dev.crafty.core.config.SectionWrapper
-
Get all keys in this section.
- getList(String) - Method in class dev.crafty.core.config.SectionWrapper
-
Get a list value.
- getList(String, List<?>) - Method in class dev.crafty.core.config.SectionWrapper
-
Get a list value with a default.
- getLocation(String) - Method in class dev.crafty.core.config.SectionWrapper
-
Get a location value.
- getLocation(String, Location) - Method in class dev.crafty.core.config.SectionWrapper
-
Get a location value with a default.
- getLong(String) - Method in class dev.crafty.core.config.SectionWrapper
-
Get a long value.
- getLong(String, long) - Method in class dev.crafty.core.config.SectionWrapper
-
Get a long value with a default.
- getLongList(String) - Method in class dev.crafty.core.config.SectionWrapper
-
Get a long list value.
- getMapList(String) - Method in class dev.crafty.core.config.SectionWrapper
-
Get a map list value.
- getMappedItemConfig(String) - Method in class dev.crafty.core.gui.Menu
- getMenuConfig(CraftyPlugin, String) - Method in class dev.crafty.core.gui.GuiCacheManager
-
Gets a cached menu configuration, creating it if it doesn't exist.
- getMetadataFromItem(String, ItemStack) - Method in class dev.crafty.core.gui.Menu
- getMongoDbProvider(Class<K>, Class<T>, String, String) - Method in class dev.crafty.core.storage.ProviderManager
-
Gets a MongoDb storage provider for the specified type with generic key type.
- getMongoDbProvider(Class<T>, String, String) - Method in class dev.crafty.core.storage.ProviderManager
-
Gets a MongoDb storage provider for the specified type with String keys.
- getMySqlProvider(Class<K>, Class<T>, String, String, String, String) - Method in class dev.crafty.core.storage.ProviderManager
-
Gets a MySQL storage provider for the specified type with generic key type.
- getMySqlProvider(Class<T>, String, String, String, String) - Method in class dev.crafty.core.storage.ProviderManager
-
Gets a MySQL storage provider for the specified type with String keys.
- getName() - Method in interface dev.crafty.core.bridge.Bridge
-
Returns the unique name of this bridge instance.
- getName() - Method in class dev.crafty.core.bridge.economy.vault.VaultEconomyBridge
- getName() - Method in class dev.crafty.core.bridge.mobs.mythicmobs.MythicMobsBridge
- getName() - Method in class dev.crafty.core.bridge.placeholders.placeholderapi.PlaceholderApiBridge
- getName() - Method in class dev.crafty.core.config.SectionWrapper
-
Get the name of this section.
- getName() - Method in class dev.crafty.core.storage.wrappers.NamedObjectReference
- getOfflinePlayer(String) - Method in class dev.crafty.core.config.SectionWrapper
-
Get an offline player value.
- getOfflinePlayer(String, OfflinePlayer) - Method in class dev.crafty.core.config.SectionWrapper
-
Get an offline player value with a default.
- getOrCreateConfigFile(CraftyPlugin, String) - Static method in class dev.crafty.core.util.Configs
- getPackage() - Method in class dev.crafty.core.plugin.CraftyPlugin
- getPaginationState(String, int, int) - Method in class dev.crafty.core.gui.Menu
-
Get or create a pagination state for a mapped item source.
- getPostgresProvider(Class<K>, Class<T>, String, String, String, String) - Method in class dev.crafty.core.storage.ProviderManager
-
Gets a PostgreSQL storage provider for the specified type with generic key type.
- getPostgresProvider(Class<T>, String, String, String, String) - Method in class dev.crafty.core.storage.ProviderManager
-
Gets a PostgreSQL storage provider for the specified type with String keys.
- getPrefetchedData(String, Class<T>) - Method in class dev.crafty.core.gui.Menu
-
Retrieve prefetched data by key.
- getProvider(Class<K>, Class<T>, String) - Method in class dev.crafty.core.storage.ProviderManager
-
Gets a storage provider using the default configuration with generic key type.
- getProvider(Class<T>) - Method in class dev.crafty.core.storage.ProviderManager
-
Gets a storage provider using the default configuration with String keys.
- getProvider(Class<T>, String) - Method in class dev.crafty.core.storage.ProviderManager
-
Gets a storage provider using the default configuration with String keys.
- getReferenceId() - Method in interface dev.crafty.core.storage.wrappers.NamedEntity
- getRequiredPlugins() - Method in class dev.crafty.core.plugin.CraftyPlugin
- getScheduledActions() - Method in class dev.crafty.core.plugin.CraftyPlugin
- getSection() - Method in class dev.crafty.core.config.SectionWrapper
-
Get the underlying ConfigurationSection.
- getSection(String) - Method in class dev.crafty.core.config.SectionWrapper
-
Get a nested configuration section.
- getSerializer(Class<T>) - Method in class dev.crafty.core.config.serializers.SerializerRegistry
-
Get a serializer instance for a specific type.
- getShortList(String) - Method in class dev.crafty.core.config.SectionWrapper
-
Get a short list value.
- getStartIndex() - Method in class dev.crafty.core.gui.PaginationState
-
Get the starting index for the current page in the data collection.
- getString(String) - Method in class dev.crafty.core.config.SectionWrapper
-
Get a string value.
- getString(String, String) - Method in class dev.crafty.core.config.SectionWrapper
-
Get a string value with a default.
- getStringList(String) - Method in class dev.crafty.core.config.SectionWrapper
-
Get a string list value.
- getSupplier(ItemType) - Static method in class dev.crafty.core.gui.ItemSupplierRegistry
- getTargetClass() - Method in interface dev.crafty.core.config.serializers.ConfigSerializer
-
Get the class that this serializer handles.
- getTargetClass() - Method in class dev.crafty.core.config.serializers.ItemStackSerializer
- getTargetClass() - Method in class dev.crafty.core.config.serializers.LocationSerializer
- getTotalPages() - Method in class dev.crafty.core.gui.PaginationState
-
Calculate the total number of pages.
- getTotalPages(String) - Method in class dev.crafty.core.gui.Menu
-
Get the total number of pages for a mapped item source.
- getTranslationKey() - Method in interface dev.crafty.core.i18n.i18nEnum
- getValues(boolean) - Method in class dev.crafty.core.config.SectionWrapper
-
Get all values in this section.
- getVector(String) - Method in class dev.crafty.core.config.SectionWrapper
-
Get a vector value.
- getVector(String, Vector) - Method in class dev.crafty.core.config.SectionWrapper
-
Get a vector value with a default.
- getViewer() - Method in class dev.crafty.core.gui.Menu
- getYamlMapper() - Static method in class dev.crafty.core.storage.serialization.StorageSerializer
-
Gets the YAML ObjectMapper instance.
- getYamlProvider(Class<K>, Class<T>, String) - Method in class dev.crafty.core.storage.ProviderManager
-
Gets a YAML storage provider for the specified type with generic key type.
- getYamlProvider(Class<T>, String) - Method in class dev.crafty.core.storage.ProviderManager
-
Gets a YAML storage provider for the specified type with String keys.
- GitHubLatestVersionFetcher - Class in dev.crafty.core.util
- GitHubLatestVersionFetcher() - Constructor for class dev.crafty.core.util.GitHubLatestVersionFetcher
- GiveItemAction - Class in dev.crafty.core.actions.impl
- GiveItemAction() - Constructor for class dev.crafty.core.actions.impl.GiveItemAction
- goNextPage() - Method in class dev.crafty.core.gui.PaginationState
-
Navigate to the next page if available.
- goNextPage(String) - Method in class dev.crafty.core.gui.Menu
-
Navigate to the next page for a mapped item source.
- goPreviousPage() - Method in class dev.crafty.core.gui.PaginationState
-
Navigate to the previous page if available.
- goPreviousPage(String) - Method in class dev.crafty.core.gui.Menu
-
Navigate to the previous page for a mapped item source.
- guiCacheManager - Variable in class dev.crafty.core.CraftyCore
- GuiCacheManager - Class in dev.crafty.core.gui
-
Manages caching of GUI configuration files to improve performance.
- GuiCacheManager(CraftyLogger) - Constructor for class dev.crafty.core.gui.GuiCacheManager
- GuiItem - Record Class in dev.crafty.core.gui
-
Item that has click action for the gui
- GuiItem(ItemStack, List<Consumer<InventoryClickEvent>>) - Constructor for record class dev.crafty.core.gui.GuiItem
-
Creates an instance of a
GuiItem
record class. - GuiStackManager - Class in dev.crafty.core.gui
- GuiStackManager() - Constructor for class dev.crafty.core.gui.GuiStackManager
H
- handleInventoryClose(Player) - Static method in class dev.crafty.core.gui.GuiStackManager
-
Handles when a player closes an inventory without using the back button.
- hashCode() - Method in record class dev.crafty.core.actions.config.ActionContext
-
Returns a hash code value for this object.
- hashCode() - Method in record class dev.crafty.core.actions.config.ConfigField
-
Returns a hash code value for this object.
- hashCode() - Method in record class dev.crafty.core.actions.config.ConfigValue
-
Returns a hash code value for this object.
- hashCode() - Method in record class dev.crafty.core.gui.GuiItem
-
Returns a hash code value for this object.
- hashCode() - Method in record class dev.crafty.core.gui.Menu.MappedItemConfig
-
Returns a hash code value for this object.
- hasNextPage() - Method in class dev.crafty.core.gui.PaginationState
-
Check if there is a next page available.
- hasNextPage(String) - Method in class dev.crafty.core.gui.Menu
-
Check if there is a next page available for a mapped item source.
- hasPreviousPage() - Method in class dev.crafty.core.gui.PaginationState
-
Check if there is a previous page available.
- hasPreviousPage(String) - Method in class dev.crafty.core.gui.Menu
-
Check if there is a previous page available for a mapped item source.
- hasSerializer(Class<?>) - Method in class dev.crafty.core.config.serializers.SerializerRegistry
-
Check if a serializer is registered for a specific type.
- hologramSupport() - Method in class dev.crafty.core.plugin.CraftyPlugin
- host - Variable in class dev.crafty.core.CraftyCoreConfig.StorageConfig.MysqlConfig
- host - Variable in class dev.crafty.core.CraftyCoreConfig.StorageConfig.PostgresConfig
I
- i18n - Variable in class dev.crafty.core.plugin.CraftyPlugin
- i18nEnum - Interface in dev.crafty.core.i18n
-
To be implemented by enums that hold the translation keys
- i18nManager - Class in dev.crafty.core.i18n
-
Manages the translations for a plugin
- i18nManager(CraftyPlugin) - Constructor for class dev.crafty.core.i18n.i18nManager
- i18nManager.LocalizationQuery - Class in dev.crafty.core.i18n
- id - Variable in class dev.crafty.core.gui.Menu
- id() - Method in interface dev.crafty.core.actions.Action
- id() - Method in class dev.crafty.core.actions.impl.GiveItemAction
- id() - Method in class dev.crafty.core.actions.impl.TeleportAction
- id() - Method in interface dev.crafty.core.scheduler.ScheduledAction
-
Returns the unique identifier for this scheduled action.
- ifAllPresent(Optional<A>, Optional<B>, BiConsumer<A, B>) - Static method in class dev.crafty.core.util.Optionals
- ifAllPresent(Optional<A>, Optional<B>, Optional<C>, Optionals.TriConsumer<A, B, C>) - Static method in class dev.crafty.core.util.Optionals
- ifAllPresent(Optional<A>, Optional<B>, Optional<C>, Optional<D>, Optionals.QuadConsumer<A, B, C, D>) - Static method in class dev.crafty.core.util.Optionals
- ifNotNull(T, Consumer<T>) - Static method in class dev.crafty.core.util.Nullables
- ifNotNullOrElse(T, Consumer<T>, Runnable) - Static method in class dev.crafty.core.util.Nullables
- info(String, Object...) - Method in class dev.crafty.core.bukkit.CraftyLogger
- init() - Static method in class dev.crafty.core.actions.ActionManager
- initialize() - Method in class dev.crafty.core.storage.AbstractStorageProvider
- initialize() - Method in class dev.crafty.core.storage.providers.CachedStorageProvider
- initialize() - Method in class dev.crafty.core.storage.providers.MongoDbStorageProvider
- initialize() - Method in class dev.crafty.core.storage.providers.MySqlStorageProvider
- initialize() - Method in class dev.crafty.core.storage.providers.PostgresStorageProvider
- initialize() - Method in class dev.crafty.core.storage.providers.YamlStorageProvider
- initialize() - Method in interface dev.crafty.core.storage.StorageProvider
-
Initializes the storage provider.
- Input - Class in dev.crafty.core.util
-
Utility class for collecting input from players using SignGUI.
- Input() - Constructor for class dev.crafty.core.util.Input
- INSTANCE - Static variable in class dev.crafty.core.CraftyCore
- interval() - Method in interface dev.crafty.core.scheduler.ScheduledAction
-
Returns the time between executions.
- isBridgePresent(Class<? extends Bridge>) - Static method in class dev.crafty.core.bridge.BridgeManager
- isMenuConfigCached(CraftyPlugin, String) - Method in class dev.crafty.core.gui.GuiCacheManager
-
Checks if a menu configuration is cached.
- isOptionalTrue(Optional<?>) - Static method in class dev.crafty.core.util.Optionals
- isResolved() - Method in class dev.crafty.core.storage.wrappers.NamedObjectReference
- isSet(String, Class<?>) - Method in class dev.crafty.core.config.SectionWrapper
-
Check if a path exists and is of the specified type.
- isValidPage(int) - Method in class dev.crafty.core.gui.PaginationState
-
Check if a page number is valid.
- item() - Method in record class dev.crafty.core.gui.GuiItem
-
Returns the value of the
item
record component. - items() - Method in record class dev.crafty.core.gui.Menu.MappedItemConfig
-
Returns the value of the
items
record component. - Items - Class in dev.crafty.core.util
- Items() - Constructor for class dev.crafty.core.util.Items
- ItemStackSerializer - Class in dev.crafty.core.config.serializers
-
Serializer for ItemStack objects.
- ItemStackSerializer() - Constructor for class dev.crafty.core.config.serializers.ItemStackSerializer
- ItemSupplier - Class in dev.crafty.core.gui
- ItemSupplier(ItemType) - Constructor for class dev.crafty.core.gui.ItemSupplier
- ItemSupplierRegistry - Class in dev.crafty.core.gui
- ItemSupplierRegistry() - Constructor for class dev.crafty.core.gui.ItemSupplierRegistry
- ItemType - Enum Class in dev.crafty.core.gui
-
Item type of the items for the gui Used in the config that will use the respective supplier to create the item
K
- KeySerializer - Class in dev.crafty.core.storage.serialization
- KeySerializer() - Constructor for class dev.crafty.core.storage.serialization.KeySerializer
L
- Lang - Class in dev.crafty.core.util
- Lang() - Constructor for class dev.crafty.core.util.Lang
- load(Object) - Method in class dev.crafty.core.config.ConfigurationManager
-
Load a configuration from its file.
- load(Object) - Static method in class dev.crafty.core.config.ConfigurationUtils
-
Load a configuration from its file.
- loadAll() - Method in class dev.crafty.core.config.DynamicConfigLoader
- loadMenuConfigs(CraftyPlugin) - Method in class dev.crafty.core.gui.GuiCacheManager
-
Loads all menu configuration files for a plugin into the cache.
- LocationSerializer - Class in dev.crafty.core.config.serializers
-
Serializer for Location objects.
- LocationSerializer() - Constructor for class dev.crafty.core.config.serializers.LocationSerializer
- logger - Variable in class dev.crafty.core.CraftyCore
- logger - Variable in class dev.crafty.core.plugin.CraftyPlugin
- logLevel - Variable in class dev.crafty.core.CraftyCoreConfig.DebugConfig
M
- MAIN - Enum constant in enum class dev.crafty.core.task.api.TargetThread
-
Represents the main thread as the target execution context for a task.
- MAPPED - Enum constant in enum class dev.crafty.core.gui.ItemType
- MappedItemConfig(Function<T, Map<String, String>>, Function<T, Map<String, String>>, List<T>) - Constructor for record class dev.crafty.core.gui.Menu.MappedItemConfig
-
Creates an instance of a
MappedItemConfig
record class. - MappedItemSupplier - Class in dev.crafty.core.gui.suppliers
-
Supplies GUI items dynamically based on mapped data and a template.
- MappedItemSupplier() - Constructor for class dev.crafty.core.gui.suppliers.MappedItemSupplier
- markSuppressClose(Player) - Static method in class dev.crafty.core.gui.GuiStackManager
- Menu - Class in dev.crafty.core.gui
- Menu(String, Player, CraftyPlugin) - Constructor for class dev.crafty.core.gui.Menu
- MENU_NAMESPACE - Static variable in class dev.crafty.core.gui.Menu
- Menu.MappedItemConfig<T> - Record Class in dev.crafty.core.gui
- metadata() - Method in record class dev.crafty.core.gui.Menu.MappedItemConfig
-
Returns the value of the
metadata
record component. - minimumCoreVersion() - Method in class dev.crafty.core.plugin.CraftyPlugin
- MobBridge - Interface in dev.crafty.core.bridge.mobs
- mongodb - Variable in class dev.crafty.core.CraftyCoreConfig.StorageConfig
- MONGODB - Enum constant in enum class dev.crafty.core.storage.StorageProviderFactory.StorageType
- MongodbConfig() - Constructor for class dev.crafty.core.CraftyCoreConfig.StorageConfig.MongodbConfig
- MongoDbStorageProvider<K,
V> - Class in dev.crafty.core.storage.providers - MongoDbStorageProvider(Class<V>, String, String) - Constructor for class dev.crafty.core.storage.providers.MongoDbStorageProvider
- mysql - Variable in class dev.crafty.core.CraftyCoreConfig.StorageConfig
- MYSQL - Enum constant in enum class dev.crafty.core.storage.StorageProviderFactory.StorageType
- MysqlConfig() - Constructor for class dev.crafty.core.CraftyCoreConfig.StorageConfig.MysqlConfig
- MySqlStorageProvider<K,
V> - Class in dev.crafty.core.storage.providers - MySqlStorageProvider(Class<V>, String, String, String, String) - Constructor for class dev.crafty.core.storage.providers.MySqlStorageProvider
- MythicMobsBridge - Class in dev.crafty.core.bridge.mobs.mythicmobs
- MythicMobsBridge() - Constructor for class dev.crafty.core.bridge.mobs.mythicmobs.MythicMobsBridge
N
- NamedEntity - Interface in dev.crafty.core.storage.wrappers
- NamedObjectReference<T> - Class in dev.crafty.core.storage.wrappers
- NamedObjectReference(String) - Constructor for class dev.crafty.core.storage.wrappers.NamedObjectReference
- NamedObjectReference(T) - Constructor for class dev.crafty.core.storage.wrappers.NamedObjectReference
- NamedObjectReferenceDeserializer - Class in dev.crafty.core.storage.wrappers
- NamedObjectReferenceDeserializer() - Constructor for class dev.crafty.core.storage.wrappers.NamedObjectReferenceDeserializer
- navigateBack(Player) - Static method in class dev.crafty.core.gui.GuiStackManager
-
Navigates back to the previous menu in the stack.
- Nullables - Class in dev.crafty.core.util
- Nullables() - Constructor for class dev.crafty.core.util.Nullables
O
- of(ConfigField<T>, T) - Static method in record class dev.crafty.core.actions.config.ConfigValue
- of(String, Class<T>, T) - Static method in record class dev.crafty.core.actions.config.ConfigField
- of(String, Class<T>, T) - Static method in record class dev.crafty.core.actions.config.ConfigValue
- of(T) - Static method in class dev.crafty.core.storage.wrappers.NamedObjectReference
-
Factory methods for creating references
- onConfigReloaded() - Method in class dev.crafty.core.CraftyCore
-
Called when the configuration is reloaded.
- onConfigReloaded() - Method in class dev.crafty.core.plugin.CraftyPlugin
- onCraftyDisable() - Method in class dev.crafty.core.plugin.CraftyPlugin
- onCraftyEnable() - Method in class dev.crafty.core.plugin.CraftyPlugin
- onDisable() - Method in class dev.crafty.core.CraftyCore
- onDisable() - Method in class dev.crafty.core.plugin.CraftyPlugin
- onEnable() - Method in class dev.crafty.core.CraftyCore
- onEnable() - Method in class dev.crafty.core.plugin.CraftyPlugin
- onInventoryClick(InventoryClickEvent) - Method in class dev.crafty.core.gui.Menu
- onInventoryClose(InventoryCloseEvent) - Method in class dev.crafty.core.gui.Menu
- open() - Method in class dev.crafty.core.gui.Menu
-
Opens the menu after ensuring all data is prefetched.
- open(boolean) - Method in class dev.crafty.core.gui.Menu
-
Opens the menu after ensuring all data is prefetched.
- Optionals - Class in dev.crafty.core.util
- Optionals() - Constructor for class dev.crafty.core.util.Optionals
- Optionals.QuadConsumer<A,
B, - Interface in dev.crafty.core.utilC, D> - Optionals.TriConsumer<A,
B, - Interface in dev.crafty.core.utilC> - orElse(String) - Method in class dev.crafty.core.i18n.i18nManager.LocalizationQuery
- orElse(T, T) - Static method in class dev.crafty.core.util.Nullables
P
- PAGINATED_MAPPED - Enum constant in enum class dev.crafty.core.gui.ItemType
- PaginatedMappedItemSupplier - Class in dev.crafty.core.gui.suppliers
- PaginatedMappedItemSupplier() - Constructor for class dev.crafty.core.gui.suppliers.PaginatedMappedItemSupplier
- PaginationState - Class in dev.crafty.core.gui
-
Manages pagination state and logic for GUI components.
- PaginationState(int, int) - Constructor for class dev.crafty.core.gui.PaginationState
-
Creates a new pagination state.
- parseValue(Map<String, String>) - Method in record class dev.crafty.core.actions.config.ConfigField
- password - Variable in class dev.crafty.core.CraftyCoreConfig.StorageConfig.MysqlConfig
- password - Variable in class dev.crafty.core.CraftyCoreConfig.StorageConfig.PostgresConfig
- path() - Method in record class dev.crafty.core.actions.config.ConfigField
-
Returns the value of the
path
record component. - path() - Method in record class dev.crafty.core.actions.config.ConfigValue
- placeholder(String, String) - Method in class dev.crafty.core.i18n.i18nManager.LocalizationQuery
-
Adds a placeholder to the localization query.
- PlaceholderApiBridge - Class in dev.crafty.core.bridge.placeholders.placeholderapi
- PlaceholderApiBridge() - Constructor for class dev.crafty.core.bridge.placeholders.placeholderapi.PlaceholderApiBridge
- PlaceholderBridge - Interface in dev.crafty.core.bridge.placeholders
- PLATFORM - Enum constant in enum class dev.crafty.core.task.api.TargetThread
-
Represents a platform-specific thread as the target execution context for a task.
- player - Variable in class dev.crafty.core.gui.Menu
- player() - Method in record class dev.crafty.core.actions.config.ActionContext
-
Returns the value of the
player
record component. - player(Player) - Method in class dev.crafty.core.i18n.i18nManager.LocalizationQuery
- plugin - Variable in class dev.crafty.core.gui.Menu
- pluginEnabled(String) - Method in interface dev.crafty.core.bridge.Bridge
- port - Variable in class dev.crafty.core.CraftyCoreConfig.StorageConfig.MysqlConfig
- port - Variable in class dev.crafty.core.CraftyCoreConfig.StorageConfig.PostgresConfig
- postgres - Variable in class dev.crafty.core.CraftyCoreConfig.StorageConfig
- POSTGRES - Enum constant in enum class dev.crafty.core.storage.StorageProviderFactory.StorageType
- PostgresConfig() - Constructor for class dev.crafty.core.CraftyCoreConfig.StorageConfig.PostgresConfig
- PostgresStorageProvider<K,
V> - Class in dev.crafty.core.storage.providers - PostgresStorageProvider(Class<V>, String, String, String, String) - Constructor for class dev.crafty.core.storage.providers.PostgresStorageProvider
- postStartup() - Method in class dev.crafty.core.plugin.CraftyPlugin
- prefetchData() - Method in class dev.crafty.core.gui.Menu
-
Override this method to asynchronously fetch data needed for the menu.
- ProviderManager - Class in dev.crafty.core.storage
- ProviderManager() - Constructor for class dev.crafty.core.storage.ProviderManager
Q
- query(i18nEnum) - Method in class dev.crafty.core.i18n.i18nManager
- quotePlaceholderValues(String, Player) - Static method in class dev.crafty.core.util.Lang
-
Used in expressions
R
- refreshMappedItems() - Method in class dev.crafty.core.gui.Menu
-
Refresh the mapped items by recreating the inventory.
- refreshMenu() - Method in class dev.crafty.core.gui.Menu
-
Refreshes the entire menu, including reloading configuration.
- register(ItemType, ItemSupplier) - Static method in class dev.crafty.core.gui.ItemSupplierRegistry
- registerAction(Action) - Static method in class dev.crafty.core.actions.ActionManager
- registerAction(String, Consumer<InventoryClickEvent>) - Method in class dev.crafty.core.gui.Menu
- registerAndLoad(Plugin, Object) - Method in class dev.crafty.core.config.ConfigurationManager
-
Register and load a configuration object.
- registerAndLoad(Plugin, Object) - Static method in class dev.crafty.core.config.ConfigurationUtils
-
Register and load a configuration object.
- registerBridge(Class<T>, T) - Static method in class dev.crafty.core.bridge.BridgeManager
- registerConfig(Plugin, Object) - Method in class dev.crafty.core.CraftyCore
-
Register a configuration object with CraftyCore.
- registerInStack(Player, Menu) - Static method in class dev.crafty.core.gui.GuiStackManager
-
Registers a menu in the player's stack.
- registerItemSupplier(String, Supplier<ItemStack>) - Method in class dev.crafty.core.gui.Menu
- registerMappedItemConfig(String, Function<T, Map<String, String>>, Function<T, Map<String, String>>, List<T>) - Method in class dev.crafty.core.gui.Menu
- registerPlaceholder(String, BiFunction<Player, String, String>) - Method in class dev.crafty.core.bridge.placeholders.placeholderapi.PlaceholderApiBridge
- registerPlaceholder(String, BiFunction<Player, String, String>) - Method in interface dev.crafty.core.bridge.placeholders.PlaceholderBridge
-
Registers a new placeholder with the given identifier and replacement function.
- registerPlaceholder(String, Function<Player, String>) - Method in class dev.crafty.core.gui.Menu
-
Register a local placeholder for this menu.
- registerResolver(Class<T>, Function<String, T>) - Static method in class dev.crafty.core.storage.wrappers.NamedObjectReference
-
Register a resolver for a specific type.
- registerSerializer(ConfigSerializer<T>) - Method in class dev.crafty.core.config.serializers.SerializerRegistry
-
Register a custom serializer.
- registerSerializer(Plugin, ConfigSerializer<T>) - Method in class dev.crafty.core.config.serializers.SerializerRegistry
-
Register a custom serializer for a specific plugin.
- reload() - Method in class dev.crafty.core.i18n.i18nManager
- reload(Object) - Method in class dev.crafty.core.config.ConfigurationManager
-
Reload a configuration from its file.
- reload(Object) - Static method in class dev.crafty.core.config.ConfigurationUtils
-
Reload a configuration from its file.
- reloadAllConfigs() - Method in class dev.crafty.core.CraftyCore
-
Reload all registered configuration objects for all plugins.
- reloadAllConfigs(Plugin) - Method in class dev.crafty.core.config.ConfigurationManager
-
Reload all configurations for a plugin.
- reloadAllConfigs(Plugin) - Static method in class dev.crafty.core.config.ConfigurationUtils
-
Reload all configurations for a plugin.
- reloadAllMenuConfigs() - Method in class dev.crafty.core.gui.GuiCacheManager
-
Reloads all menu configurations for all plugins.
- reloadConfig() - Method in class dev.crafty.core.CraftyCore
- reloadConfigs() - Method in class dev.crafty.core.plugin.CraftyPlugin
-
Reloads all configurations for this plugin, including GUI configurations.
- reloadConfigs(String) - Method in class dev.crafty.core.CraftyCore
-
Reload all registered configuration objects for a plugin.
- reloadMenuConfigs(CraftyPlugin) - Method in class dev.crafty.core.gui.GuiCacheManager
-
Reloads all menu configurations for a plugin.
- remove(K) - Method in class dev.crafty.core.config.DynamicConfigLoader
- replacements() - Method in record class dev.crafty.core.gui.Menu.MappedItemConfig
-
Returns the value of the
replacements
record component. - replacePlaceholders(boolean) - Method in class dev.crafty.core.i18n.i18nManager.LocalizationQuery
- replacePlaceholders(String) - Method in class dev.crafty.core.bridge.placeholders.placeholderapi.PlaceholderApiBridge
- replacePlaceholders(String) - Method in interface dev.crafty.core.bridge.placeholders.PlaceholderBridge
-
Replaces all registered placeholders in the given input string with their corresponding values.
- replacePlaceholders(String, Player) - Method in class dev.crafty.core.bridge.placeholders.placeholderapi.PlaceholderApiBridge
- replacePlaceholders(String, Player) - Method in interface dev.crafty.core.bridge.placeholders.PlaceholderBridge
-
Replaces all registered placeholders in the given input string with their corresponding values, using the provided
Player
context for player-specific placeholders. - replacePlaceholders(String, Player) - Static method in class dev.crafty.core.util.Lang
-
Replaces placeholders in the given message using the PlaceholderAPI context.
- replaceText(ItemStack, Map<String, String>) - Static method in class dev.crafty.core.util.Lang
- resolve() - Method in class dev.crafty.core.storage.wrappers.NamedObjectReference
-
Resolve using the type that was captured during creation.
- resolve(Class<T>) - Method in class dev.crafty.core.storage.wrappers.NamedObjectReference
-
Resolve the object using the registered resolver for this type.
- run() - Method in interface dev.crafty.core.scheduler.ScheduledAction
-
Executes the scheduled action's logic.
- run() - Method in class dev.crafty.core.scheduler.SchedulerService
-
Executes all scheduled actions whose next execution time has been reached or passed.
- run(Runnable, TargetThread) - Method in interface dev.crafty.core.task.api.Task
-
Executes a given task on a specified target thread.
- run(Runnable, TargetThread) - Method in class dev.crafty.core.task.providers.TaskProvider
- run(Callable<T>, Consumer<T>, TargetThread) - Method in interface dev.crafty.core.task.api.Task
-
Executes a given task on a specified target thread and returns the result.
- run(Callable<T>, Consumer<T>, TargetThread) - Method in class dev.crafty.core.task.providers.TaskProvider
- run(Callable<T>, Consumer<T>, Runnable, TargetThread) - Method in interface dev.crafty.core.task.api.Task
-
Executes a given task on a specified target thread and returns the result.
- run(Callable<T>, Consumer<T>, Runnable, TargetThread) - Method in class dev.crafty.core.task.providers.TaskProvider
S
- save(Object) - Method in class dev.crafty.core.config.ConfigurationManager
-
Save a configuration to its file.
- save(Object) - Static method in class dev.crafty.core.config.ConfigurationUtils
-
Save a configuration to its file.
- save(K, V) - Method in class dev.crafty.core.storage.providers.CachedStorageProvider
- save(K, V) - Method in class dev.crafty.core.storage.providers.MongoDbStorageProvider
- save(K, V) - Method in class dev.crafty.core.storage.providers.MySqlStorageProvider
- save(K, V) - Method in class dev.crafty.core.storage.providers.PostgresStorageProvider
- save(K, V) - Method in class dev.crafty.core.storage.providers.YamlStorageProvider
- save(K, V) - Method in interface dev.crafty.core.storage.StorageProvider
-
Saves an object to the storage.
- scanAndLoadConfigs(Plugin) - Method in class dev.crafty.core.config.ConfigurationManager
-
Scan a plugin for configuration classes and automatically load them.
- scanAndLoadConfigs(Plugin) - Static method in class dev.crafty.core.config.ConfigurationUtils
-
Scan a plugin for configuration classes and automatically load them.
- scanAndLoadConfigs(Plugin) - Method in class dev.crafty.core.CraftyCore
-
Scan a plugin for classes with the @ConfigurationFile annotation and automatically register and load them.
- scanAndReloadConfigs(Plugin) - Method in class dev.crafty.core.CraftyCore
-
Scan a plugin for configuration classes and reload all of them.
- schedule(ScheduledAction) - Method in class dev.crafty.core.scheduler.SchedulerService
-
Schedules a new action for execution.
- schedule(Runnable, Duration, TargetThread) - Method in class dev.crafty.core.task.providers.TaskProvider
- schedule(Runnable, Duration, TargetThread) - Method in interface dev.crafty.core.task.api.Task
-
Schedules a task for execution on a specified target thread after a specified delay.
- schedule(Callable<T>, Consumer<T>, Runnable, Duration, TargetThread) - Method in interface dev.crafty.core.task.api.Task
-
Schedules a task for execution on a specified target thread after a specified delay and returns the result of the task execution.
- schedule(Callable<T>, Consumer<T>, Runnable, Duration, TargetThread) - Method in class dev.crafty.core.task.providers.TaskProvider
- schedule(Callable<T>, Consumer<T>, Duration, TargetThread) - Method in interface dev.crafty.core.task.api.Task
-
Schedules a task for execution on a specified target thread after a specified delay and returns the result of the task execution.
- schedule(Callable<T>, Consumer<T>, Duration, TargetThread) - Method in class dev.crafty.core.task.providers.TaskProvider
- ScheduledAction - Interface in dev.crafty.core.scheduler
-
Represents an action that can be scheduled for execution.
- SchedulerService - Class in dev.crafty.core.scheduler
-
Service responsible for scheduling, executing, and managing
ScheduledAction
instances. - SchedulerService() - Constructor for class dev.crafty.core.scheduler.SchedulerService
-
Constructs a new
SchedulerService
and initializes the storage provider. - SectionWrapper - Class in dev.crafty.core.config
-
Wrapper class for ConfigurationSection that provides Optional-based access to configuration values.
- SectionWrapper(ConfigurationSection) - Constructor for class dev.crafty.core.config.SectionWrapper
-
Create a new SectionWrapper.
- SelfRegisteringListener - Interface in dev.crafty.core.bukkit
-
Automatically registers itself as a listener
- send() - Method in class dev.crafty.core.i18n.i18nManager.LocalizationQuery
- serialize(Object) - Static method in class dev.crafty.core.storage.serialization.KeySerializer
-
Serializes a key of any type to a string representation.
- serialize(ItemStack, MemoryConfiguration) - Method in class dev.crafty.core.config.serializers.ItemStackSerializer
- serialize(Location, MemoryConfiguration) - Method in class dev.crafty.core.config.serializers.LocationSerializer
- serialize(T) - Method in interface dev.crafty.core.config.serializers.ConfigSerializer
- serialize(T) - Method in class dev.crafty.core.config.serializers.SerializerRegistry
-
Serialize an object to a SectionWrapper using the registered serializer.
- serialize(T, MemoryConfiguration) - Method in interface dev.crafty.core.config.serializers.ConfigSerializer
-
Serialize an object to a MemoryConfiguration.
- serializeKey(K) - Method in class dev.crafty.core.storage.AbstractStorageProvider
- SerializerRegistry - Class in dev.crafty.core.config.serializers
-
Registry for managing configuration serializers.
- set(K, V) - Method in class dev.crafty.core.config.DynamicConfigLoader
- setDefaultMongoDbConfig(String, String) - Method in class dev.crafty.core.storage.ProviderManager
-
Sets the default MongoDB configuration.
- setDefaultMySqlConfig(String, String, String, String) - Method in class dev.crafty.core.storage.ProviderManager
-
Sets the default MySQL configuration.
- setDefaultPostgresConfig(String, String, String, String) - Method in class dev.crafty.core.storage.ProviderManager
-
Sets the default PostgreSQL configuration.
- setDefaultYamlConfig(String) - Method in class dev.crafty.core.storage.ProviderManager
-
Sets the default YAML configuration.
- setItemGlow(ItemStack) - Static method in class dev.crafty.core.util.Items
- setPage(int) - Method in class dev.crafty.core.gui.PaginationState
-
Jump directly to a specific page.
- setPage(String, int) - Method in class dev.crafty.core.gui.Menu
-
Jump to a specific page for a mapped item source.
- setup() - Method in class dev.crafty.core.gui.Menu
- spawnMob(String, Location, String) - Method in interface dev.crafty.core.bridge.mobs.MobBridge
-
Spawns a mob with the given name at the specified
Location
location, using a default level of 1. - spawnMob(String, Location, String, int) - Method in interface dev.crafty.core.bridge.mobs.MobBridge
-
Spawns a mob with the given name at the specified
Location
location. - spawnMob(String, Location, String, int) - Method in class dev.crafty.core.bridge.mobs.mythicmobs.MythicMobsBridge
- STATIC - Enum constant in enum class dev.crafty.core.gui.ItemType
- StaticItemSupplier - Class in dev.crafty.core.gui.suppliers
- StaticItemSupplier() - Constructor for class dev.crafty.core.gui.suppliers.StaticItemSupplier
- storage - Variable in class dev.crafty.core.CraftyCore
- storage - Variable in class dev.crafty.core.CraftyCoreConfig
- StorageConfig() - Constructor for class dev.crafty.core.CraftyCoreConfig.StorageConfig
- StorageConfig() - Constructor for class dev.crafty.core.storage.StorageProviderFactory.StorageConfig
- StorageProvider<K,
V> - Interface in dev.crafty.core.storage -
Base interface for all storage providers.
- StorageProviderFactory - Class in dev.crafty.core.storage
-
Factory for creating storage providers.
- StorageProviderFactory() - Constructor for class dev.crafty.core.storage.StorageProviderFactory
- StorageProviderFactory.StorageConfig - Class in dev.crafty.core.storage
-
Configuration for storage providers.
- StorageProviderFactory.StorageType - Enum Class in dev.crafty.core.storage
-
Enum representing the available storage types.
- StorageSerializer - Class in dev.crafty.core.storage.serialization
- StorageSerializer() - Constructor for class dev.crafty.core.storage.serialization.StorageSerializer
- storePrefetchedData(String, T) - Method in class dev.crafty.core.gui.Menu
-
Store prefetched data with a key for later use in setup().
- subdirectory() - Element in annotation interface dev.crafty.core.config.ConfigurationFile
-
The subdirectory within the plugin's data folder where this config should be stored.
T
- TargetThread - Enum Class in dev.crafty.core.task.api
- task - Variable in class dev.crafty.core.plugin.CraftyPlugin
- Task - Interface in dev.crafty.core.task.api
-
Provides asynchronous task execution and scheduling functionality.
- TaskProvider - Class in dev.crafty.core.task.providers
- TaskProvider() - Constructor for class dev.crafty.core.task.providers.TaskProvider
- TeleportAction - Class in dev.crafty.core.actions.impl
- TeleportAction() - Constructor for class dev.crafty.core.actions.impl.TeleportAction
- toArray(GuiItem...) - Method in class dev.crafty.core.gui.ItemSupplier
- toArray(GuiItem, int) - Method in class dev.crafty.core.gui.ItemSupplier
- toJson(Object) - Static method in class dev.crafty.core.storage.serialization.StorageSerializer
-
Converts an object to a JSON string.
- toMap(Object) - Static method in class dev.crafty.core.storage.serialization.StorageSerializer
-
Converts an object to a Map.
- toString() - Method in record class dev.crafty.core.actions.config.ActionContext
-
Returns a string representation of this record class.
- toString() - Method in record class dev.crafty.core.actions.config.ConfigField
-
Returns a string representation of this record class.
- toString() - Method in record class dev.crafty.core.actions.config.ConfigValue
-
Returns a string representation of this record class.
- toString() - Method in record class dev.crafty.core.gui.GuiItem
-
Returns a string representation of this record class.
- toString() - Method in record class dev.crafty.core.gui.Menu.MappedItemConfig
-
Returns a string representation of this record class.
- toString() - Method in class dev.crafty.core.gui.PaginationState
- toString() - Method in class dev.crafty.core.storage.wrappers.NamedObjectReference
- toString(Component) - Static method in class dev.crafty.core.util.Components
- toStringList(List<Component>) - Static method in class dev.crafty.core.util.Components
- toYaml(Object) - Static method in class dev.crafty.core.storage.serialization.StorageSerializer
-
Converts an object to a YAML string.
- trace(String, Object...) - Method in class dev.crafty.core.bukkit.CraftyLogger
- tryPerformAction(String, UUID, Runnable) - Static method in class dev.crafty.core.player.CooldownManager
-
Attempts to perform an action if the player is not on cooldown.
- type - Variable in class dev.crafty.core.CraftyCoreConfig.StorageConfig
- type() - Method in record class dev.crafty.core.actions.config.ConfigField
-
Returns the value of the
type
record component.
U
- unregisterConfigs(Plugin) - Method in class dev.crafty.core.CraftyCore
-
Unregister all configuration objects for a plugin.
- unregisterPlugin(Plugin) - Method in class dev.crafty.core.config.ConfigurationManager
-
Unregister all configurations for a plugin.
- unregisterPlugin(Plugin) - Static method in class dev.crafty.core.config.ConfigurationUtils
-
Unregister all configurations for a plugin.
- unregisterPlugin(Plugin) - Method in class dev.crafty.core.config.serializers.SerializerRegistry
-
Unregister all serializers for a plugin.
- unwrapSquareBrackets(Component) - Static method in class dev.crafty.core.util.Components
- username - Variable in class dev.crafty.core.CraftyCoreConfig.StorageConfig.MysqlConfig
- username - Variable in class dev.crafty.core.CraftyCoreConfig.StorageConfig.PostgresConfig
V
- value() - Method in record class dev.crafty.core.actions.config.ConfigValue
-
Returns the value of the
value
record component. - value() - Element in annotation interface dev.crafty.core.config.ConfigurationFile
-
The name of the configuration file (including extension).
- valueOf(String) - Static method in enum class dev.crafty.core.gui.ItemType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class dev.crafty.core.storage.StorageProviderFactory.StorageType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class dev.crafty.core.task.api.TargetThread
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class dev.crafty.core.gui.ItemType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class dev.crafty.core.storage.StorageProviderFactory.StorageType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class dev.crafty.core.task.api.TargetThread
-
Returns an array containing the constants of this enum class, in the order they are declared.
- valueType - Variable in class dev.crafty.core.storage.AbstractStorageProvider
- VaultEconomyBridge - Class in dev.crafty.core.bridge.economy.vault
- VaultEconomyBridge() - Constructor for class dev.crafty.core.bridge.economy.vault.VaultEconomyBridge
- VIRTUAL - Enum constant in enum class dev.crafty.core.task.api.TargetThread
-
Represents a virtual thread as the target execution context for a task.
W
- warn(String, Object...) - Method in class dev.crafty.core.bukkit.CraftyLogger
- withdraw(UUID, double) - Method in interface dev.crafty.core.bridge.economy.EconomyBridge
-
Withdraws a specified amount from the player's balance.
- withdraw(UUID, double) - Method in class dev.crafty.core.bridge.economy.vault.VaultEconomyBridge
Y
- yaml - Variable in class dev.crafty.core.CraftyCoreConfig.StorageConfig
- YAML - Enum constant in enum class dev.crafty.core.storage.StorageProviderFactory.StorageType
- YamlConfig() - Constructor for class dev.crafty.core.CraftyCoreConfig.StorageConfig.YamlConfig
- YamlStorageProvider<K,
V> - Class in dev.crafty.core.storage.providers - YamlStorageProvider(Class<V>, Path) - Constructor for class dev.crafty.core.storage.providers.YamlStorageProvider
- YamlStorageProvider(Class<V>, Path, String) - Constructor for class dev.crafty.core.storage.providers.YamlStorageProvider
All Classes and Interfaces|All Packages|Constant Field Values