Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- accept(T) - Method in interface com.github.pinont.singularitylib.api.storage.Database.ThrowingConsumer
- addAttribute(AttributeType, double, AttributeModifier.Operation, EquipmentSlot) - Method in class com.github.pinont.singularitylib.api.items.ItemCreator
-
Adds an attribute modifier to the item.
- addButton(Button) - Method in class com.github.pinont.singularitylib.api.ui.Menu
-
Adds a button to this menu.
- addChargedProjectile(ItemStack) - Method in class com.github.pinont.singularitylib.api.items.CrossbowCreator
-
Adds a charged projectile to the crossbow.
- addCommands(SimpleSlashCommands...) - Method in class com.github.pinont.singularitylib.api.hook.discordJDA.DiscordApp
-
Adds slash commands to the bot.
- addEnchant(Enchantment, int, boolean) - Method in class com.github.pinont.singularitylib.api.items.ItemCreator
-
Adds an enchantment to the item.
- addExtraBottomRowInto(List) - Method in class com.github.pinont.singularitylib.api.ui.PaginatedMenu
-
Hook: subclasses add bottom-row buttons here (they are merged before rendering).
- addInteraction(ItemInteraction) - Method in class com.github.pinont.singularitylib.api.items.ItemCreator
-
Adds an interaction to the item.
- addItemFlag(ItemFlag...) - Method in class com.github.pinont.singularitylib.api.items.ItemCreator
-
Adds item flags to hide certain item properties.
- addLore(String) - Method in class com.github.pinont.singularitylib.api.items.ItemCreator
-
Adds lore to the item.
- addLore(String...) - Method in class com.github.pinont.singularitylib.api.items.ItemCreator
-
Adds lore to the item.
- addLore(Component...) - Method in class com.github.pinont.singularitylib.api.items.ItemCreator
-
Adds lore to the item.
- addPassenger(Entity) - Method in class com.github.pinont.singularitylib.api.entity.EntityCreator
-
Adds a passenger entity to this entity.
- addScoreboardTag(String...) - Method in class com.github.pinont.singularitylib.api.entity.EntityCreator
-
Adds scoreboard tags to the entity.
- addTag(String) - Method in class com.github.pinont.singularitylib.api.items.ItemCreator
-
Adds a single tag to the item.
- addTag(String, String) - Method in class com.github.pinont.singularitylib.api.items.ItemCreator
-
Adds a tag with a specific value to the item.
- addTags(String...) - Method in class com.github.pinont.singularitylib.api.items.ItemCreator
-
Adds tags to the item.
- apply(T) - Method in interface com.github.pinont.singularitylib.api.storage.Database.ThrowingFunction
- applyItemNbt(ItemStack, Object) - Static method in class com.github.pinont.singularitylib.api.nms.NmsBridge
-
Writes processed NBT back to an item via the NMS
applyTo(ItemStack); returns the new ItemStack (NMS treats Bukkit stacks as value copies) or the original when NMS is unavailable. - ARMOR - Enum constant in enum class com.github.pinont.singularitylib.api.enums.AttributeType
-
Armor attribute.
- ARMOR_CHEST - Enum constant in enum class com.github.pinont.singularitylib.api.enums.PlayerInventorySlotType
-
Chestplate armor slot.
- ARMOR_FEET - Enum constant in enum class com.github.pinont.singularitylib.api.enums.PlayerInventorySlotType
-
Boots armor slot.
- ARMOR_HEAD - Enum constant in enum class com.github.pinont.singularitylib.api.enums.PlayerInventorySlotType
-
Helmet armor slot.
- ARMOR_LEGS - Enum constant in enum class com.github.pinont.singularitylib.api.enums.PlayerInventorySlotType
-
Leggings armor slot.
- ARMOR_TOUGHNESS - Enum constant in enum class com.github.pinont.singularitylib.api.enums.AttributeType
-
Armor toughness attribute.
- ATTACK_DAMAGE - Enum constant in enum class com.github.pinont.singularitylib.api.enums.AttributeType
-
Attack damage attribute.
- ATTACK_KNOCKBACK - Enum constant in enum class com.github.pinont.singularitylib.api.enums.AttributeType
-
Attack knockback attribute.
- ATTACK_SPEED - Enum constant in enum class com.github.pinont.singularitylib.api.enums.AttributeType
-
Attack speed attribute.
- Attributes - Class in com.github.pinont.singularitylib.api.items
-
Attribute helpers for ItemStacks (Phase 2).
- AttributeType - Enum Class in com.github.pinont.singularitylib.api.enums
-
Enumeration of attribute types available in the game.
- AutoRegister - Annotation Interface in com.github.pinont.singularitylib.api.annotation
-
Annotation to mark classes for automatic registration by the plugin.
B
- back(Plugin, Menu, String) - Static method in class com.github.pinont.singularitylib.api.ui.StandardButtons
-
A button that re-opens the given parent menu when clicked.
- bukkitTask - Variable in class com.github.pinont.singularitylib.api.runnable.Scheduler
- Button - Interface in com.github.pinont.singularitylib.api.ui
-
Interface representing a clickable button in a user interface.
- BYTE - Enum constant in enum class com.github.pinont.singularitylib.api.enums.PersistType
-
Byte data type.
- BYTE_ARRAY - Enum constant in enum class com.github.pinont.singularitylib.api.enums.PersistType
-
Byte array data type.
C
- callEvent() - Method in class com.github.pinont.singularitylib.api.event.ItemExecuteEvent
- callEvent() - Method in class com.github.pinont.singularitylib.api.event.PlayerDamageByPlayerEvent
- cancel(Plugin, Material, String, Runnable) - Static method in class com.github.pinont.singularitylib.api.ui.StandardButtons
-
A cancel-style button that runs the given action on click.
- cancelAllTasks(Plugin) - Method in class com.github.pinont.singularitylib.api.runnable.Scheduler
-
Cancels every task owned by the plugin across all schedulers used by this class: on Paper the whole Bukkit scheduler; on Folia the async and global-region schedulers.
- cancelEvent() - Method in class com.github.pinont.singularitylib.api.items.ItemInteraction
-
Whether to cancel the original event when this interaction is executed.
- cancelTask() - Method in class com.github.pinont.singularitylib.api.runnable.Scheduler
-
Cancels the single task started by this Scheduler instance, if any.
- checkAirInSlot(PlayerInventorySlotType, Player) - Static method in class com.github.pinont.singularitylib.api.utils.Common
-
Checks if a specific inventory slot contains air for a player.
- checkBoolean(boolean, String, Object...) - Static method in class com.github.pinont.singularitylib.api.utils.Common
-
Checks if a boolean expression is true, logs a message if false.
- checkConsole(CommandSender) - Method in class com.github.pinont.singularitylib.api.command.SubCommand
-
Checks that the sender is allowed for this subcommand (console vs player).
- checkPermission(CommandSender) - Method in class com.github.pinont.singularitylib.api.command.SubCommand
-
Checks the sender's permission for this subcommand.
- clear() - Static method in class com.github.pinont.singularitylib.api.registry.PluginRegistry
-
Clears the registry (used between MockBukkit test runs).
- clearButtons() - Method in class com.github.pinont.singularitylib.api.ui.Menu
-
Clears all buttons (used by subclasses that re-render per page).
- clone() - Method in class com.github.pinont.singularitylib.api.items.ItemCreator
- close() - Method in class com.github.pinont.singularitylib.api.storage.Database
- close() - Method in class com.github.pinont.singularitylib.api.storage.Mongo
- close(Plugin) - Static method in class com.github.pinont.singularitylib.api.ui.StandardButtons
-
A button that closes the open inventory.
- closeConnection() - Method in class com.github.pinont.singularitylib.api.utils.MySQL
-
Closes the database connection if it exists.
- colorize(String) - Static method in class com.github.pinont.singularitylib.api.utils.Common
-
Colorizes a string message using MiniMessage format without disabling italic.
- colorize(String, boolean) - Static method in class com.github.pinont.singularitylib.api.utils.Common
-
Colorizes a string message using MiniMessage format.
- com.github.pinont.singularitylib.api - package com.github.pinont.singularitylib.api
- com.github.pinont.singularitylib.api.annotation - package com.github.pinont.singularitylib.api.annotation
- com.github.pinont.singularitylib.api.command - package com.github.pinont.singularitylib.api.command
- com.github.pinont.singularitylib.api.config - package com.github.pinont.singularitylib.api.config
- com.github.pinont.singularitylib.api.entity - package com.github.pinont.singularitylib.api.entity
- com.github.pinont.singularitylib.api.enums - package com.github.pinont.singularitylib.api.enums
- com.github.pinont.singularitylib.api.event - package com.github.pinont.singularitylib.api.event
- com.github.pinont.singularitylib.api.hook.discordJDA - package com.github.pinont.singularitylib.api.hook.discordJDA
- com.github.pinont.singularitylib.api.items - package com.github.pinont.singularitylib.api.items
- com.github.pinont.singularitylib.api.manager - package com.github.pinont.singularitylib.api.manager
- com.github.pinont.singularitylib.api.nms - package com.github.pinont.singularitylib.api.nms
- com.github.pinont.singularitylib.api.recipes - package com.github.pinont.singularitylib.api.recipes
- com.github.pinont.singularitylib.api.registry - package com.github.pinont.singularitylib.api.registry
- com.github.pinont.singularitylib.api.runnable - package com.github.pinont.singularitylib.api.runnable
- com.github.pinont.singularitylib.api.storage - package com.github.pinont.singularitylib.api.storage
- com.github.pinont.singularitylib.api.ui - package com.github.pinont.singularitylib.api.ui
- com.github.pinont.singularitylib.api.utils - package com.github.pinont.singularitylib.api.utils
- com.github.pinont.singularitylib.plugin - package com.github.pinont.singularitylib.plugin
- com.github.pinont.singularitylib.plugin.listener - package com.github.pinont.singularitylib.plugin.listener
- com.github.pinont.singularitylib.plugin.register - package com.github.pinont.singularitylib.plugin.register
- CommandGroup - Class in com.github.pinont.singularitylib.api.command
-
A command that groups
SubCommands under one root label, with an auto-generated help menu when invoked with no arguments. - CommandGroup() - Constructor for class com.github.pinont.singularitylib.api.command.CommandGroup
- CommandManager - Class in com.github.pinont.singularitylib.api.manager
-
Manages the registration of commands for the plugin.
- CommandManager() - Constructor for class com.github.pinont.singularitylib.api.manager.CommandManager
-
Default constructor for CommandManager.
- commands() - Method in record class com.github.pinont.singularitylib.api.registry.PluginRegistry.RegisteredComponents
-
Returns the value of the
commandsrecord component. - comment(String, String) - Method in class com.github.pinont.singularitylib.api.manager.CommentConfigManager
-
Attaches a comment to a path (emitted above that key on save).
- CommentConfigManager - Class in com.github.pinont.singularitylib.api.manager
-
A comment-preserving, auto-updating configuration manager (Phase 2 upgrade).
- CommentConfigManager(Plugin, String) - Constructor for class com.github.pinont.singularitylib.api.manager.CommentConfigManager
- Common - Class in com.github.pinont.singularitylib.api.utils
-
Utility class providing common operations and helper methods.
- Common() - Constructor for class com.github.pinont.singularitylib.api.utils.Common
-
Default constructor for Common utility class.
- componentsOf(CorePlugin) - Static method in class com.github.pinont.singularitylib.api.registry.PluginRegistry
-
Returns a plugin's registered components (empty record if none recorded).
- ConfigManager - Class in com.github.pinont.singularitylib.api.manager
-
Manages configuration files for the plugin.
- ConfigManager(Plugin, String) - Constructor for class com.github.pinont.singularitylib.api.manager.ConfigManager
-
Creates a ConfigManager for a configuration file in the plugin's data folder.
- ConfigManager(Plugin, String, String) - Constructor for class com.github.pinont.singularitylib.api.manager.ConfigManager
-
Creates a ConfigManager for a configuration file in a specific subfolder.
- confirm(Plugin, Material, String, Runnable) - Static method in class com.github.pinont.singularitylib.api.ui.StandardButtons
-
A confirmation-style button that runs the given action on click.
- Console - Class in com.github.pinont.singularitylib.api.utils
-
Utility class for console logging operations.
- Console() - Constructor for class com.github.pinont.singularitylib.api.utils.Console
-
Default constructor for Console utility class.
- CorePlugin - Class in com.github.pinont.singularitylib.plugin
-
Abstract base class for plugins using the SingularityLib framework.
- CorePlugin() - Constructor for class com.github.pinont.singularitylib.plugin.CorePlugin
-
Default constructor for CorePlugin.
- count() - Static method in class com.github.pinont.singularitylib.api.registry.PluginRegistry
- count(String, Document) - Method in class com.github.pinont.singularitylib.api.storage.Mongo
-
Counts matching documents.
- create() - Method in class com.github.pinont.singularitylib.api.items.ItemCreator
-
Creates the final ItemStack with all applied properties.
- create() - Method in class com.github.pinont.singularitylib.api.items.ItemHeadCreator
- CrossbowCreator - Class in com.github.pinont.singularitylib.api.items
-
A specialized ItemCreator for creating crossbow items.
- CrossbowCreator(Plugin) - Constructor for class com.github.pinont.singularitylib.api.items.CrossbowCreator
-
Creates a new CrossbowCreator with a crossbow ItemStack.
- CustomItem - Class in com.github.pinont.singularitylib.api.items
-
Abstract base class for creating custom items with interactions.
- CustomItem() - Constructor for class com.github.pinont.singularitylib.api.items.CustomItem
-
Default constructor for CustomItem.
- CustomItemManager - Class in com.github.pinont.singularitylib.api.manager
-
Manages custom items and provides a give command for them.
- CustomItemManager() - Constructor for class com.github.pinont.singularitylib.api.manager.CustomItemManager
-
Default constructor for CustomItemManager.
- customItems - Variable in class com.github.pinont.singularitylib.api.manager.CustomItemManager
-
List of registered custom items managed by this manager.
- customItems() - Method in record class com.github.pinont.singularitylib.api.registry.PluginRegistry.RegisteredComponents
-
Returns the value of the
customItemsrecord component.
D
- Database - Class in com.github.pinont.singularitylib.api.storage
-
Async-first database facade (Phase 2).
- Database(Plugin) - Constructor for class com.github.pinont.singularitylib.api.storage.Database
- Database.ThrowingConsumer<T> - Interface in com.github.pinont.singularitylib.api.storage
-
A consumer that may throw.
- Database.ThrowingFunction<T,
R> - Interface in com.github.pinont.singularitylib.api.storage -
A function that may throw.
- debug(String) - Static method in class com.github.pinont.singularitylib.api.utils.Console
-
Logs a debug message to the console.
- delete(String, Document) - Method in class com.github.pinont.singularitylib.api.storage.Mongo
-
Deletes all documents matching the filter.
- description() - Method in interface com.github.pinont.singularitylib.api.hook.discordJDA.SlashCommandComponent
-
Gets the description of the slash command.
- DiscordApp - Class in com.github.pinont.singularitylib.api.hook.discordJDA
-
Abstract base class for Discord bot applications using JDA (Java Discord API).
- DiscordApp(Plugin, String) - Constructor for class com.github.pinont.singularitylib.api.hook.discordJDA.DiscordApp
-
Creates a new DiscordApp with single-threaded execution.
- DiscordApp(Plugin, String, boolean) - Constructor for class com.github.pinont.singularitylib.api.hook.discordJDA.DiscordApp
-
Creates a new DiscordApp with specified threading configuration.
- DOUBLE - Enum constant in enum class com.github.pinont.singularitylib.api.enums.PersistType
-
Double data type.
E
- EMPTY - Static variable in record class com.github.pinont.singularitylib.api.registry.PluginRegistry.RegisteredComponents
- EntityCreator - Class in com.github.pinont.singularitylib.api.entity
-
Builder class for creating and configuring entities before spawning them.
- EntityCreator(EntityType) - Constructor for class com.github.pinont.singularitylib.api.entity.EntityCreator
-
Creates a new EntityCreator for the specified entity type.
- EntityDamageListener - Class in com.github.pinont.singularitylib.plugin.listener
- EntityDamageListener() - Constructor for class com.github.pinont.singularitylib.plugin.listener.EntityDamageListener
- equals(Object) - Method in record class com.github.pinont.singularitylib.api.registry.PluginRegistry.RegisteredComponents
-
Indicates whether some other object is "equal to" this one.
- execute() - Method in class com.github.pinont.singularitylib.api.event.ItemExecuteEvent
-
Executes the item interaction if the event is not cancelled.
- execute(CommandSourceStack, String[]) - Method in class com.github.pinont.singularitylib.api.command.CommandGroup
- execute(CommandSourceStack, String[]) - Method in class com.github.pinont.singularitylib.api.command.SubCommand
-
Convenience overload used by
CommandGroup(extracts the sender). - execute(CommandSender, String[]) - Method in class com.github.pinont.singularitylib.api.command.CommandGroup
-
Dispatches to subcommands using a plain CommandSender (console-friendly and unit-testable without a CommandSourceStack).
- execute(CommandSender, String[]) - Method in class com.github.pinont.singularitylib.api.command.SubCommand
-
Executes the subcommand.
- execute(Player) - Method in class com.github.pinont.singularitylib.api.items.ItemInteraction
-
Executes this interaction for the given player.
F
- FileManager - Class in com.github.pinont.singularitylib.api.manager
-
Manages file operations for the plugin.
- FileManager(Plugin) - Constructor for class com.github.pinont.singularitylib.api.manager.FileManager
-
Default constructor for FileManager.
- filler(Plugin, Material) - Static method in class com.github.pinont.singularitylib.api.ui.StandardButtons
-
A non-interactive filler item (e.g.
- find(String) - Static method in class com.github.pinont.singularitylib.api.registry.PluginRegistry
-
Looks up a registered plugin by its plugin name (optional-friendly).
- findFirst(String, Document) - Method in class com.github.pinont.singularitylib.api.storage.Mongo
-
Finds the first document matching the filter.
- FLOAT - Enum constant in enum class com.github.pinont.singularitylib.api.enums.PersistType
-
Float data type.
- FLYING_SPEED - Enum constant in enum class com.github.pinont.singularitylib.api.enums.AttributeType
-
Flying speed attribute.
- FOLLOW_RANGE - Enum constant in enum class com.github.pinont.singularitylib.api.enums.AttributeType
-
Follow range attribute for mobs.
G
- get(String) - Method in class com.github.pinont.singularitylib.api.manager.CommentConfigManager
- get(String) - Method in class com.github.pinont.singularitylib.api.manager.ConfigManager
-
Gets a value from the specified path in the configuration.
- get(String) - Static method in class com.github.pinont.singularitylib.api.registry.PluginRegistry
-
Looks up a registered plugin by its plugin name.
- getAction() - Method in class com.github.pinont.singularitylib.api.event.ItemExecuteEvent
-
Gets the action that triggered this event.
- getAction() - Method in class com.github.pinont.singularitylib.api.items.ItemInteraction
-
Gets the set of actions that trigger this interaction.
- getAllItemsMaterials() - Static method in class com.github.pinont.singularitylib.api.utils.Common
-
Gets all valid item materials, filtering out invalid or non-item materials.
- getAmount() - Method in class com.github.pinont.singularitylib.api.items.ItemCreator
-
Gets the amount of items in the stack.
- getAPIVersion() - Static method in class com.github.pinont.singularitylib.api.utils.Common
-
Gets the current API version.
- getAsyncScheduler() - Method in class com.github.pinont.singularitylib.api.runnable.Scheduler
- getAttribute() - Method in enum class com.github.pinont.singularitylib.api.enums.AttributeType
-
Gets the corresponding Bukkit Attribute for this AttributeType.
- getAttribute(ItemStack, AttributeType) - Static method in class com.github.pinont.singularitylib.api.items.Attributes
-
Sums the attribute modifier amounts currently applied to the item for the type.
- getBoolean(String, boolean) - Method in class com.github.pinont.singularitylib.api.manager.CommentConfigManager
- getBukkitScheduler() - Method in class com.github.pinont.singularitylib.api.runnable.Scheduler
- getButton() - Method in class com.github.pinont.singularitylib.api.ui.Layout
-
Gets the button associated with this layout.
- getButtons() - Method in class com.github.pinont.singularitylib.api.ui.Menu
-
Gets the list of buttons in this menu.
- getCommand() - Method in class com.github.pinont.singularitylib.api.hook.discordJDA.SimpleSlashCommands
-
Gets the slash command component for this command.
- getCommandData() - Method in interface com.github.pinont.singularitylib.api.hook.discordJDA.SlashCommandComponent
-
Gets the CommandData for this command.
- getCommands() - Method in class com.github.pinont.singularitylib.plugin.register.Register
-
Gets the collected commands.
- getConfig() - Method in class com.github.pinont.singularitylib.api.manager.CommentConfigManager
- getConfig() - Method in class com.github.pinont.singularitylib.api.manager.ConfigManager
-
Gets the FileConfiguration instance.
- getConfig() - Method in class com.github.pinont.singularitylib.plugin.CorePlugin
- getConfigManager() - Method in class com.github.pinont.singularitylib.plugin.CorePlugin
-
Gets the configuration manager for the main config file.
- getConnection() - Method in class com.github.pinont.singularitylib.api.storage.Database
- getConnection() - Method in class com.github.pinont.singularitylib.api.utils.MySQL
-
Gets a connection to the database using the default config file.
- getConnection(String) - Method in class com.github.pinont.singularitylib.api.utils.MySQL
-
Gets a connection to the database using the specified config file.
- getCustomItems() - Method in class com.github.pinont.singularitylib.api.manager.CustomItemManager
-
Gets the list of registered custom items.
- getCustomItems() - Method in class com.github.pinont.singularitylib.plugin.register.Register
-
Gets the collected custom items.
- getDamager() - Method in class com.github.pinont.singularitylib.api.event.PlayerDamageByPlayerEvent
- getDescription() - Method in class com.github.pinont.singularitylib.api.command.SubCommand
- getEntity() - Method in class com.github.pinont.singularitylib.api.entity.EntityCreator
-
Gets the entity class for the entity type this creator will spawn.
- getFile(String) - Method in class com.github.pinont.singularitylib.api.manager.FileManager
-
Gets a file from the plugin's data folder.
- getFile(String, String) - Method in class com.github.pinont.singularitylib.api.manager.FileManager
-
Gets a file from a specific subfolder within the plugin's data folder.
- getFileFromFolder(String) - Method in class com.github.pinont.singularitylib.api.manager.FileManager
-
Gets all files from a specific subfolder.
- getGlobalScheduler() - Method in class com.github.pinont.singularitylib.api.runnable.Scheduler
- getHandlerList() - Static method in class com.github.pinont.singularitylib.api.event.ItemExecuteEvent
-
Gets the handler list for this event.
- getHandlerList() - Static method in class com.github.pinont.singularitylib.api.event.PlayerDamageByPlayerEvent
- getHandlers() - Method in class com.github.pinont.singularitylib.api.event.ItemExecuteEvent
- getHandlers() - Method in class com.github.pinont.singularitylib.api.event.PlayerDamageByPlayerEvent
- getInstance() - Static method in class com.github.pinont.singularitylib.plugin.CorePlugin
-
Gets the singleton instance of the plugin.
- getInt(String, int) - Method in class com.github.pinont.singularitylib.api.manager.CommentConfigManager
- getInteraction() - Method in class com.github.pinont.singularitylib.api.event.ItemExecuteEvent
-
Gets the ItemInteraction that will be executed.
- getInteraction() - Method in class com.github.pinont.singularitylib.api.items.CustomItem
-
Gets the interaction behavior for this custom item.
- getInteraction(Plugin, ItemStack) - Static method in class com.github.pinont.singularitylib.api.items.ItemInteraction
-
Gets the interaction associated with the given ItemStack.
- getInteractions() - Static method in class com.github.pinont.singularitylib.api.items.ItemCreator
-
Gets all registered item interactions.
- getItem() - Method in class com.github.pinont.singularitylib.api.event.ItemExecuteEvent
-
Gets the ItemStack that was interacted with.
- getItem() - Method in class com.github.pinont.singularitylib.api.items.CustomItem
-
Gets the final ItemStack for this custom item.
- getItem() - Method in interface com.github.pinont.singularitylib.api.ui.Button
-
Gets the ItemStack that represents this button's visual appearance.
- getItem(String) - Static method in class com.github.pinont.singularitylib.api.utils.Common
-
Creates an ItemStack from a material name string.
- getItemInSlot(PlayerInventorySlotType, Player) - Static method in class com.github.pinont.singularitylib.api.utils.Common
-
Gets the ItemStack in a specific inventory slot for a player.
- getItemMeta() - Method in class com.github.pinont.singularitylib.api.items.ItemCreator
-
Gets the ItemMeta of the item.
- getItemPersistData(Plugin, ItemStack, String, PersistentDataType) - Static method in class com.github.pinont.singularitylib.api.items.ItemInteraction
-
Gets the persistent data of an item.
- getKey() - Method in class com.github.pinont.singularitylib.api.ui.Layout
-
Gets the character key used to position this layout in a menu.
- getKey(String) - Method in class com.github.pinont.singularitylib.api.items.ItemCreator
-
Gets the value of a specific key from the item's tags.
- getLayout() - Method in class com.github.pinont.singularitylib.api.ui.Menu
-
Gets the layout pattern of this menu.
- getListeners() - Method in class com.github.pinont.singularitylib.plugin.register.Register
-
Gets the collected listeners.
- getMaxPage() - Method in class com.github.pinont.singularitylib.api.ui.PaginatedMenu
- getName() - Method in interface com.github.pinont.singularitylib.api.command.SimpleCommand
-
Gets the name of the command.
- getName() - Method in class com.github.pinont.singularitylib.api.command.SubCommand
- getName() - Method in class com.github.pinont.singularitylib.api.items.CustomItem
-
Gets the normalized name of this custom item.
- getName() - Method in class com.github.pinont.singularitylib.api.items.ItemCreator
-
Gets the display name of the item.
- getName() - Method in class com.github.pinont.singularitylib.api.items.ItemInteraction
-
Gets the name of this interaction.
- getNearestPlayer(Location, int) - Static method in class com.github.pinont.singularitylib.api.utils.Common
-
Gets the nearest player to a location within a specified radius.
- getOnlinePlayers() - Static method in class com.github.pinont.singularitylib.api.utils.Common
-
Gets all online players.
- getOnlinePlayersNames() - Static method in class com.github.pinont.singularitylib.api.utils.Common
-
Gets the names of all online players.
- getPage() - Method in class com.github.pinont.singularitylib.api.ui.PaginatedMenu
- getPermission() - Method in class com.github.pinont.singularitylib.api.command.SubCommand
- getPlayer() - Method in class com.github.pinont.singularitylib.api.event.ItemExecuteEvent
-
Gets the player who triggered this event.
- getPlayer() - Method in class com.github.pinont.singularitylib.api.event.PlayerDamageByPlayerEvent
- getPlugin() - Method in class com.github.pinont.singularitylib.api.ui.Menu
-
Gets the owning plugin.
- getPrefix() - Static method in class com.github.pinont.singularitylib.plugin.CorePlugin
-
Gets the plugin's console message prefix.
- getRegionScheduler() - Method in class com.github.pinont.singularitylib.api.runnable.Scheduler
- getSize() - Method in class com.github.pinont.singularitylib.api.ui.Menu
-
Gets the size of this menu.
- getSlashCommandData() - Method in interface com.github.pinont.singularitylib.api.hook.discordJDA.SlashCommandComponent
-
Gets the SlashCommandData for this command.
- getSlot() - Method in interface com.github.pinont.singularitylib.api.ui.Button
-
Gets the slot position where this button should be placed.
- getStartTime() - Static method in class com.github.pinont.singularitylib.plugin.CorePlugin
-
Gets the time when the plugin started loading.
- getString(String, String) - Method in class com.github.pinont.singularitylib.api.manager.CommentConfigManager
- getSubcommandNames() - Method in class com.github.pinont.singularitylib.api.command.CommandGroup
- getTagValue(String) - Method in class com.github.pinont.singularitylib.api.items.ItemCreator
-
Gets the value of a specific tag.
- getTask() - Method in class com.github.pinont.singularitylib.api.runnable.Scheduler
- getTitle() - Method in class com.github.pinont.singularitylib.api.ui.Menu
-
Gets the title of this menu.
- getType() - Method in class com.github.pinont.singularitylib.api.entity.EntityCreator
-
Gets the entity type this creator will spawn.
- getType() - Method in class com.github.pinont.singularitylib.api.items.ItemCreator
-
Gets the material type of the item.
- getUsageHint(String) - Method in class com.github.pinont.singularitylib.api.command.CommandGroup
H
- hasGravity(boolean) - Method in class com.github.pinont.singularitylib.api.entity.EntityCreator
-
Sets whether the entity is affected by gravity.
- hashCode() - Method in record class com.github.pinont.singularitylib.api.registry.PluginRegistry.RegisteredComponents
-
Returns a hash code value for this object.
- hasTag(String) - Method in class com.github.pinont.singularitylib.api.items.ItemCreator
-
Checks if the item has a specific tag.
- hasVanillaNbt(ItemStack) - Static method in class com.github.pinont.singularitylib.api.nms.NmsBridge
-
Convenience: whether an item currently carries vanilla custom_data (best-effort; only meaningful when NMS is available).
- hungerChange(FoodLevelChangeEvent) - Method in class com.github.pinont.singularitylib.plugin.listener.PlayerListener
-
Handles food level change events.
I
- INDEX_RESOURCE - Static variable in class com.github.pinont.singularitylib.plugin.register.Register
-
Classpath resource path of the compile-time auto-register index.
- init(String) - Method in class com.github.pinont.singularitylib.api.utils.MySQL
-
Initializes the database connection using the specified config file.
- insert(String, Document) - Method in class com.github.pinont.singularitylib.api.storage.Mongo
-
Inserts a document.
- INT - Enum constant in enum class com.github.pinont.singularitylib.api.enums.PersistType
-
Integer data type.
- INT_ARRAY - Enum constant in enum class com.github.pinont.singularitylib.api.enums.PersistType
-
Integer array data type.
- IntegerToRomanNumeral(int) - Static method in class com.github.pinont.singularitylib.api.utils.Common
-
Converts an integer to Roman numeral representation.
- interaction(PlayerInteractEvent) - Method in class com.github.pinont.singularitylib.plugin.listener.PlayerListener
-
Handles player interaction events for custom item interactions.
- inventoryClick(InventoryClickEvent) - Method in class com.github.pinont.singularitylib.plugin.listener.PlayerListener
-
Handles inventory click events for menu interactions.
- inventoryClose(InventoryCloseEvent) - Method in class com.github.pinont.singularitylib.plugin.listener.PlayerListener
-
Handles inventory close events for menu cleanup.
- isAir(ItemStack) - Static method in class com.github.pinont.singularitylib.api.utils.Common
-
Checks if the given ItemStack is air or null.
- isAvailable() - Static method in class com.github.pinont.singularitylib.api.nms.NmsBridge
- isCancelled() - Method in class com.github.pinont.singularitylib.api.event.ItemExecuteEvent
- isCancelled() - Method in class com.github.pinont.singularitylib.api.event.PlayerDamageByPlayerEvent
- isExists(Plugin, String, String) - Static method in class com.github.pinont.singularitylib.api.manager.ConfigManager
-
Checks if a configuration file exists in a specific subfolder.
- isFirstLoad() - Method in class com.github.pinont.singularitylib.api.manager.ConfigManager
-
Checks if this is the first time the configuration file is being loaded.
- isFolderExists(String) - Method in class com.github.pinont.singularitylib.api.manager.FileManager
-
Checks if a subfolder exists within the plugin's data directory.
- isFolia() - Static method in class com.github.pinont.singularitylib.plugin.CorePlugin
- isItemHasPersistData(Plugin, ItemStack, String, PersistentDataType) - Static method in class com.github.pinont.singularitylib.api.items.ItemInteraction
-
Checks if the item has persistent data of a specific type.
- isItemIsMaterial(Material) - Static method in class com.github.pinont.singularitylib.api.utils.Common
-
Checks if the given material is a valid item material.
- isMainHandEmpty(Player) - Static method in class com.github.pinont.singularitylib.api.utils.Common
-
Checks if a player's main hand is empty.
- isPlayerOnly() - Method in class com.github.pinont.singularitylib.api.command.SubCommand
-
Optionally restrict to players only.
- isTest - Variable in class com.github.pinont.singularitylib.plugin.CorePlugin
-
Flag indicating if the plugin is running in test mode.
- ItemCreator - Class in com.github.pinont.singularitylib.api.items
-
Builder class for creating and modifying ItemStacks with enhanced functionality.
- ItemCreator(Plugin, ItemStack) - Constructor for class com.github.pinont.singularitylib.api.items.ItemCreator
-
Creates a new ItemCreator from an existing ItemStack.
- ItemCreator(Plugin, Material) - Constructor for class com.github.pinont.singularitylib.api.items.ItemCreator
-
Creates a new ItemCreator for the specified material type.
- ItemCreator(Plugin, Material, int) - Constructor for class com.github.pinont.singularitylib.api.items.ItemCreator
-
Creates a new ItemCreator for the specified material type and amount.
- ItemExecuteEvent - Class in com.github.pinont.singularitylib.api.event
-
Event that is fired when a player executes an item interaction.
- ItemExecuteEvent(PlayerInteractEvent, ItemStack, ItemInteraction) - Constructor for class com.github.pinont.singularitylib.api.event.ItemExecuteEvent
-
Creates a new ItemExecuteEvent.
- ItemHeadCreator - Class in com.github.pinont.singularitylib.api.items
-
Specialized ItemCreator for creating player head items.
- ItemHeadCreator(Plugin, ItemStack) - Constructor for class com.github.pinont.singularitylib.api.items.ItemHeadCreator
-
Creates a new ItemHeadCreator from an existing ItemStack.
- ItemInteraction - Class in com.github.pinont.singularitylib.api.items
-
Interface for defining custom item interactions.
- ItemInteraction(String, Set) - Constructor for class com.github.pinont.singularitylib.api.items.ItemInteraction
J
- JUMP_STRENGTH - Enum constant in enum class com.github.pinont.singularitylib.api.enums.AttributeType
-
Jump strength attribute for horses.
K
- KNOCKBACK_RESISTANCE - Enum constant in enum class com.github.pinont.singularitylib.api.enums.AttributeType
-
Knockback resistance attribute.
L
- Layout - Class in com.github.pinont.singularitylib.api.ui
- Layout(char, Button) - Constructor for class com.github.pinont.singularitylib.api.ui.Layout
- listeners() - Method in record class com.github.pinont.singularitylib.api.registry.PluginRegistry.RegisteredComponents
-
Returns the value of the
listenersrecord component. - loadFromIndex() - Method in class com.github.pinont.singularitylib.plugin.register.Register
-
Loads the compile-time
@AutoRegisterindex from every resource named "META-INF/singularitylib/auto-register-index.properties" on the runtime classpath and collects the listed classes for registration. - loadFromIndex(ClassLoader) - Method in class com.github.pinont.singularitylib.plugin.register.Register
-
Loads the compile-time
@AutoRegisterindex using an explicit classloader. - log(String) - Static method in class com.github.pinont.singularitylib.api.utils.Console
-
Logs a regular message to the console.
- logError(String) - Static method in class com.github.pinont.singularitylib.api.utils.Console
-
Logs an error message to the console with red color formatting.
- logWarning(String) - Static method in class com.github.pinont.singularitylib.api.utils.Console
-
Logs a warning message to the console with yellow color formatting.
- LONG - Enum constant in enum class com.github.pinont.singularitylib.api.enums.PersistType
-
Long data type.
- LONG_ARRAY - Enum constant in enum class com.github.pinont.singularitylib.api.enums.PersistType
-
Long array data type.
- LUCK - Enum constant in enum class com.github.pinont.singularitylib.api.enums.AttributeType
-
Luck attribute.
M
- MAINHAND - Enum constant in enum class com.github.pinont.singularitylib.api.enums.PlayerInventorySlotType
-
Main hand slot.
- MAX_ABSORPTION - Enum constant in enum class com.github.pinont.singularitylib.api.enums.AttributeType
-
Maximum absorption attribute.
- MAX_HEALTH - Enum constant in enum class com.github.pinont.singularitylib.api.enums.AttributeType
-
Maximum health attribute.
- Menu - Class in com.github.pinont.singularitylib.api.ui
-
Class for creating and managing custom inventory menus.
- Menu(Plugin, String) - Constructor for class com.github.pinont.singularitylib.api.ui.Menu
-
Creates a new Menu with the specified title and automatic size.
- Menu(Plugin, String, int) - Constructor for class com.github.pinont.singularitylib.api.ui.Menu
-
Creates a new Menu with the specified title and size.
- mergeDefaults(Map) - Method in class com.github.pinont.singularitylib.api.manager.CommentConfigManager
-
Merges missing defaults from the given map into the config (existing user values win).
- Mongo - Class in com.github.pinont.singularitylib.api.storage
-
Thin MongoDB client for the Singularity framework (Phase 2).
- Mongo(Plugin, ConfigurationSection) - Constructor for class com.github.pinont.singularitylib.api.storage.Mongo
- MOVEMENT_SPEED - Enum constant in enum class com.github.pinont.singularitylib.api.enums.AttributeType
-
Movement speed attribute.
- mySql(Plugin, ConfigurationSection) - Static method in class com.github.pinont.singularitylib.api.storage.Database
-
Creates a MySQL-backed database from a config section (database.host/port/name/user/password).
- MySQL - Class in com.github.pinont.singularitylib.api.utils
-
Utility class for managing MySQL database connections.
- MySQL(Plugin) - Constructor for class com.github.pinont.singularitylib.api.utils.MySQL
-
Default constructor for MySQL utility class.
N
- name - Variable in enum class com.github.pinont.singularitylib.api.enums.AttributeType
-
The internal name of the attribute.
- name() - Method in interface com.github.pinont.singularitylib.api.hook.discordJDA.SlashCommandComponent
-
Gets the name of the slash command.
- NmsBridge - Class in com.github.pinont.singularitylib.api.nms
-
Soft-loading bridge to the optional SingularityNMS module.
- normalizeStringName(String) - Static method in class com.github.pinont.singularitylib.api.utils.Common
-
Normalizes a string name by converting underscores to spaces and capitalizing words.
O
- OFFHAND - Enum constant in enum class com.github.pinont.singularitylib.api.enums.PlayerInventorySlotType
-
Off hand slot.
- onAppReady(ReadyEvent) - Method in class com.github.pinont.singularitylib.api.hook.discordJDA.DiscordApp
-
Called when the bot is ready and connected to Discord.
- onClick(Player) - Method in interface com.github.pinont.singularitylib.api.ui.Button
-
Called when a player clicks on this button.
- onDisable() - Method in class com.github.pinont.singularitylib.plugin.CorePlugin
- onEnable() - Method in class com.github.pinont.singularitylib.plugin.CorePlugin
- onEntityDamage(EntityDamageByEntityEvent) - Method in class com.github.pinont.singularitylib.plugin.listener.EntityDamageListener
- onPluginStart() - Method in class com.github.pinont.singularitylib.api.Plugin
- onPluginStart() - Method in class com.github.pinont.singularitylib.plugin.CorePlugin
-
Called when the plugin starts.
- onPluginStop() - Method in class com.github.pinont.singularitylib.api.Plugin
- onPluginStop() - Method in class com.github.pinont.singularitylib.plugin.CorePlugin
-
Called when the plugin stops.
- onReady(ReadyEvent) - Method in class com.github.pinont.singularitylib.api.hook.discordJDA.Ready
- onShutdown() - Method in class com.github.pinont.singularitylib.api.hook.discordJDA.DiscordApp
-
Called when the bot is shutting down.
- onStartup() - Method in class com.github.pinont.singularitylib.api.hook.discordJDA.DiscordApp
-
Called when the bot is starting up.
- openConnection() - Method in class com.github.pinont.singularitylib.api.storage.Database
-
Opens (and caches) a raw connection.
P
- PaginatedMenu<T> - Class in com.github.pinont.singularitylib.api.ui
-
A paginated inventory menu over a list of items of type
T. - PaginatedMenu(Plugin, String, int, int, int[], List, Function, BiConsumer) - Constructor for class com.github.pinont.singularitylib.api.ui.PaginatedMenu
- PersistType - Enum Class in com.github.pinont.singularitylib.api.enums
-
Enumeration of persistent data types for storing data in ItemStacks.
- PlayerDamageByPlayerEvent - Class in com.github.pinont.singularitylib.api.event
- PlayerDamageByPlayerEvent(Player, Player) - Constructor for class com.github.pinont.singularitylib.api.event.PlayerDamageByPlayerEvent
- PlayerInventorySlotType - Enum Class in com.github.pinont.singularitylib.api.enums
-
Enumeration of player inventory slot types.
- playerJoin(PlayerJoinEvent) - Method in class com.github.pinont.singularitylib.plugin.listener.PlayerListener
-
Handles player join events.
- playerLeave(PlayerQuitEvent) - Method in class com.github.pinont.singularitylib.plugin.listener.PlayerListener
-
Handles player quit events.
- PlayerListener - Class in com.github.pinont.singularitylib.plugin.listener
-
Event listener for handling player interactions and menu operations.
- PlayerListener() - Constructor for class com.github.pinont.singularitylib.plugin.listener.PlayerListener
- plugin - Variable in class com.github.pinont.singularitylib.api.manager.FileManager
-
The plugin instance for accessing the data folder.
- plugin - Variable in class com.github.pinont.singularitylib.api.storage.Database
- Plugin - Class in com.github.pinont.singularitylib.api
- Plugin() - Constructor for class com.github.pinont.singularitylib.api.Plugin
- PluginRegistry - Class in com.github.pinont.singularitylib.api.registry
-
Runtime registry of every loaded Singularity plugin and its components.
- PluginRegistry.RegisteredComponents - Record Class in com.github.pinont.singularitylib.api.registry
-
Immutable snapshot of a plugin's registered components.
- plugins() - Static method in class com.github.pinont.singularitylib.api.registry.PluginRegistry
Q
- query(Database.ThrowingFunction) - Method in class com.github.pinont.singularitylib.api.storage.Database
-
Runs a query asynchronously; the function maps the result set to a value.
R
- readItemNbt(ItemStack) - Static method in class com.github.pinont.singularitylib.api.nms.NmsBridge
-
Reads the vanilla NBT of an item as a raw Object (actually
singularitynms.nbt.NbtCompound) — usable via reflection only, ornullwhen NMS is unavailable. - readItemNbtAsMap(ItemStack) - Static method in class com.github.pinont.singularitylib.api.nms.NmsBridge
-
Returns a map of the item's vanilla NBT keys to their SNBT string values (best-effort via reflection on the NMS NbtCompound; empty when NMS is absent).
- Ready - Class in com.github.pinont.singularitylib.api.hook.discordJDA
-
Discord bot ready event listener.
- Ready(DiscordApp) - Constructor for class com.github.pinont.singularitylib.api.hook.discordJDA.Ready
-
Creates a new Ready listener for the specified Discord app.
- recipeOpen(PlayerRecipeBookClickEvent) - Method in class com.github.pinont.singularitylib.plugin.listener.PlayerListener
-
Handles recipe book click events.
- RecipeRegistry - Class in com.github.pinont.singularitylib.api.recipes
-
Registry helpers for custom crafting recipes (Phase 2).
- register() - Method in class com.github.pinont.singularitylib.api.items.CustomItem
-
Registers and configures the ItemCreator for this custom item.
- register(CorePlugin) - Static method in class com.github.pinont.singularitylib.api.registry.PluginRegistry
-
Called by CorePlugin lifecycle.
- register(Class...) - Method in class com.github.pinont.singularitylib.plugin.register.Register
-
Explicitly registers component CLASSES (no index, no classpath scanning).
- register(Object...) - Method in class com.github.pinont.singularitylib.plugin.register.Register
-
Explicitly registers component INSTANCES (already constructed by the caller) — the fastest path, with no reflection at all.
- register(List) - Method in class com.github.pinont.singularitylib.api.manager.CustomItemManager
-
Registers a list of custom items with the manager.
- register(Plugin, List) - Method in class com.github.pinont.singularitylib.api.manager.CommandManager
-
Registers a list of SimpleCommand instances with the plugin.
- Register - Class in com.github.pinont.singularitylib.plugin.register
-
Class for automatically registering annotated components.
- Register() - Constructor for class com.github.pinont.singularitylib.plugin.register.Register
-
Default constructor for Register.
- registerAll(Plugin) - Method in class com.github.pinont.singularitylib.plugin.register.Register
-
Registers all collected components with the specified plugin.
- registerCommand(SimpleCommand...) - Method in class com.github.pinont.singularitylib.plugin.CorePlugin
-
Deprecated.Use the automatic registration system instead
- registerComponentClasses(Class...) - Method in class com.github.pinont.singularitylib.plugin.CorePlugin
-
Registers component classes (instantiated reflectively via no-arg ctor) with this plugin.
- registerComponents(CorePlugin, Collection, Collection, Collection) - Static method in class com.github.pinont.singularitylib.api.registry.PluginRegistry
-
Records a plugin's classified components (from its Register).
- registerComponents(Object...) - Method in class com.github.pinont.singularitylib.plugin.CorePlugin
-
Registers component instances directly (listeners, commands, custom items) with this plugin — the fast, explicit path (no classpath scanning).
- RegisteredComponents(List, List, List) - Constructor for record class com.github.pinont.singularitylib.api.registry.PluginRegistry.RegisteredComponents
-
Creates an instance of a
RegisteredComponentsrecord class. - registerFurnace(Plugin, String, ItemStack, ItemStack, float) - Static method in class com.github.pinont.singularitylib.api.recipes.RecipeRegistry
-
Registers a furnace (smelting) recipe.
- registerReloadable(Reloadable) - Method in class com.github.pinont.singularitylib.plugin.CorePlugin
-
Registers a Reloadable component for this plugin.
- registerShaped(Plugin, String, ItemStack, String[], Map) - Static method in class com.github.pinont.singularitylib.api.recipes.RecipeRegistry
-
Registers a shaped (grid) recipe.
- registerShapeless(Plugin, String, ItemStack, List) - Static method in class com.github.pinont.singularitylib.api.recipes.RecipeRegistry
-
Registers a shapeless recipe.
- registerSubcommand(SubCommand) - Method in class com.github.pinont.singularitylib.api.command.CommandGroup
-
Registers a subcommand (also registers its aliases via
name:alias). - reload() - Method in interface com.github.pinont.singularitylib.api.config.Reloadable
-
Reloads configuration state from disk / manager.
- Reloadable - Interface in com.github.pinont.singularitylib.api.config
-
Contract for components that support live (hot) reload of configuration.
- reloadConfig() - Method in class com.github.pinont.singularitylib.api.hook.discordJDA.DiscordApp
-
Reloads the bot configuration and restarts the bot.
- reloadConfig() - Method in class com.github.pinont.singularitylib.api.manager.ConfigManager
-
Reloads the configuration from disk.
- reloadReloadables() - Method in class com.github.pinont.singularitylib.plugin.CorePlugin
-
Triggers reload on every registered Reloadable (e.g.
- removeItemAmountOnExecute() - Method in class com.github.pinont.singularitylib.api.items.ItemInteraction
-
Gets the number of items to remove when this interaction is executed.
- removeTag(String) - Method in class com.github.pinont.singularitylib.api.items.ItemCreator
-
Removes a tag from the item.
- replaceTag(String, String) - Method in class com.github.pinont.singularitylib.api.items.ItemCreator
-
Replaces an existing tag with a new key.
- resetDedupe() - Static method in class com.github.pinont.singularitylib.plugin.register.Register
-
Resets the cross-process dedupe set.
- resetStringColor(String) - Static method in class com.github.pinont.singularitylib.api.utils.Common
-
Removes color codes from a string.
- resetStringColor(Component) - Static method in class com.github.pinont.singularitylib.api.utils.Common
-
Converts a Component to its MiniMessage string representation.
- run() - Method in interface com.github.pinont.singularitylib.api.runnable.Runner
- runAsync(Database.ThrowingConsumer) - Method in class com.github.pinont.singularitylib.api.storage.Database
-
Runs an async DB task with a raw connection, completing when done.
- Runner - Interface in com.github.pinont.singularitylib.api.runnable
- runRepeatingTask(Plugin, Location, Runner, int, long, TimeUnit) - Method in class com.github.pinont.singularitylib.api.runnable.Scheduler
-
Runs a task repeatedly on the region owning the given location (Folia) or on the main thread (Paper).
- runRepeatingTask(Plugin, World, Runner, int, long, TimeUnit) - Method in class com.github.pinont.singularitylib.api.runnable.Scheduler
-
Runs a task repeatedly in the given world (at its spawn chunk origin on Folia) or on the main thread (Paper).
- runRepeatingTaskAsync(Plugin, Runner, int, long, TimeUnit) - Method in class com.github.pinont.singularitylib.api.runnable.Scheduler
-
Runs a task repeatedly off the main thread / region threads.
- runTask(Plugin, Runner) - Method in class com.github.pinont.singularitylib.api.runnable.Scheduler
- runTaskAsync(Plugin, Runner) - Method in class com.github.pinont.singularitylib.api.runnable.Scheduler
S
- save() - Method in class com.github.pinont.singularitylib.api.manager.CommentConfigManager
-
Saves to disk with comments preserved.
- save(String, File) - Method in class com.github.pinont.singularitylib.api.manager.FileManager
-
Saves a file to a specific subfolder within the plugin's data directory.
- saveConfig() - Method in class com.github.pinont.singularitylib.api.manager.ConfigManager
-
Saves the configuration to the file.
- scanAndCollect(String) - Method in class com.github.pinont.singularitylib.plugin.register.Register
-
Deprecated.
- scheduledTask - Variable in class com.github.pinont.singularitylib.api.runnable.Scheduler
- Scheduler - Class in com.github.pinont.singularitylib.api.runnable
-
Platform-agnostic task scheduler facade.
- Scheduler() - Constructor for class com.github.pinont.singularitylib.api.runnable.Scheduler
- sendConsoleMessage(String) - Static method in class com.github.pinont.singularitylib.plugin.CorePlugin
-
Sends a message to the console with the plugin prefix.
- sendConsoleMessage(Component) - Static method in class com.github.pinont.singularitylib.plugin.CorePlugin
-
Sends a message to the console with the plugin prefix.
- sendDebugMessage(String) - Static method in class com.github.pinont.singularitylib.plugin.CorePlugin
-
Sends a debug message to the console if debug mode is enabled.
- sendDebugMessage(Component) - Static method in class com.github.pinont.singularitylib.plugin.CorePlugin
-
Sends a debug message to the console if debug mode is enabled.
- sendHelp(CommandSender) - Method in class com.github.pinont.singularitylib.api.command.CommandGroup
-
Sends the paginated help listing to the sender.
- set(String, Object) - Method in class com.github.pinont.singularitylib.api.manager.CommentConfigManager
-
Sets a value and saves (preserving comments).
- set(String, Object) - Method in class com.github.pinont.singularitylib.api.manager.ConfigManager
-
Sets a value at the specified path in the configuration.
- setAmount(int) - Method in class com.github.pinont.singularitylib.api.items.ItemCreator
-
Sets the amount of items in the stack.
- setAttribute(ItemStack, AttributeType, double, AttributeModifier.Operation) - Static method in class com.github.pinont.singularitylib.api.items.Attributes
-
Adds an attribute modifier to the item.
- setCancelled(boolean) - Method in class com.github.pinont.singularitylib.api.event.ItemExecuteEvent
- setCancelled(boolean) - Method in class com.github.pinont.singularitylib.api.event.PlayerDamageByPlayerEvent
- setCannotMove(boolean) - Method in class com.github.pinont.singularitylib.api.items.ItemCreator
-
Sets whether the item can be moved in inventories.
- setCustomNameVisible(Boolean) - Method in class com.github.pinont.singularitylib.api.entity.EntityCreator
-
Sets whether the entity's custom name is visible.
- setDataContainer(String, Object, PersistType) - Method in class com.github.pinont.singularitylib.api.items.ItemCreator
-
Sets data in the item's PersistentDataContainer.
- setDurability(int) - Method in class com.github.pinont.singularitylib.api.items.ItemCreator
-
Sets the durability of the item.
- setDurability(short) - Method in class com.github.pinont.singularitylib.api.items.ItemCreator
-
Sets the durability of the item.
- setFallingDistance(float) - Method in class com.github.pinont.singularitylib.api.entity.EntityCreator
-
Sets the falling distance for the entity.
- setFireTicks(int) - Method in class com.github.pinont.singularitylib.api.entity.EntityCreator
-
Sets the number of fire ticks for the entity.
- setFreezeTicks(int) - Method in class com.github.pinont.singularitylib.api.entity.EntityCreator
-
Sets the number of freeze ticks for the entity.
- setGlowing(boolean) - Method in class com.github.pinont.singularitylib.api.entity.EntityCreator
-
Sets whether the entity should glow.
- setInvulnerable(boolean) - Method in class com.github.pinont.singularitylib.api.entity.EntityCreator
-
Sets whether the entity is invulnerable to damage.
- setItemMeta(ItemMeta) - Method in class com.github.pinont.singularitylib.api.items.ItemCreator
-
Sets the ItemMeta for the item.
- setKey(Layout...) - Method in class com.github.pinont.singularitylib.api.ui.Menu
-
Sets the layout keys that map characters to buttons.
- setLayout(String...) - Method in class com.github.pinont.singularitylib.api.ui.Menu
-
Sets the layout pattern for this menu using string patterns.
- setMaxHealth(double) - Method in class com.github.pinont.singularitylib.api.entity.EntityCreator
-
Sets the maximum health for the entity (only applies to LivingEntity).
- setModelData(int) - Method in class com.github.pinont.singularitylib.api.items.ItemCreator
-
Sets the custom model data for the item.
- setName(String) - Method in class com.github.pinont.singularitylib.api.items.ItemCreator
-
Sets the display name of the item.
- setName(String) - Method in class com.github.pinont.singularitylib.api.items.ItemHeadCreator
- setName(Component) - Method in class com.github.pinont.singularitylib.api.items.ItemCreator
-
Sets the display name of the item using a Component.
- setOwner(String) - Method in class com.github.pinont.singularitylib.api.items.ItemHeadCreator
-
Sets the owner of the skull, which determines the skin texture.
- setPersistent(Boolean) - Method in class com.github.pinont.singularitylib.api.entity.EntityCreator
-
Sets whether the entity is persistent (won't despawn).
- setPortalCooldown(int) - Method in class com.github.pinont.singularitylib.api.entity.EntityCreator
-
Sets the portal cooldown for the entity.
- setRotation(float, float) - Method in class com.github.pinont.singularitylib.api.entity.EntityCreator
-
Sets the rotation (yaw and pitch) for the entity.
- setSilent(boolean) - Method in class com.github.pinont.singularitylib.api.entity.EntityCreator
-
Sets whether the entity makes sounds.
- setTagValue(String, String) - Method in class com.github.pinont.singularitylib.api.items.ItemCreator
-
Sets the value of a specific tag.
- setTicksLived(int) - Method in class com.github.pinont.singularitylib.api.entity.EntityCreator
-
Sets the number of ticks the entity has been alive.
- setType(Material) - Method in class com.github.pinont.singularitylib.api.items.ItemCreator
-
Sets the material type of the item.
- setUnbreakable(boolean) - Method in class com.github.pinont.singularitylib.api.items.ItemCreator
-
Sets whether the item is unbreakable.
- setUnstackable(boolean) - Method in class com.github.pinont.singularitylib.api.items.ItemCreator
-
Sets the item as unstackable.
- setVelocity(Vector) - Method in class com.github.pinont.singularitylib.api.entity.EntityCreator
-
Sets the velocity vector for the entity.
- setVisibleByDefault(boolean) - Method in class com.github.pinont.singularitylib.api.entity.EntityCreator
-
Sets whether the entity is visible by default.
- setVisualFire(boolean) - Method in class com.github.pinont.singularitylib.api.entity.EntityCreator
-
Sets whether the entity has visual fire effect.
- SHORT - Enum constant in enum class com.github.pinont.singularitylib.api.enums.PersistType
-
Short data type.
- show(Player) - Method in class com.github.pinont.singularitylib.api.ui.Menu
-
Shows this menu to the specified player.
- show(Player) - Method in class com.github.pinont.singularitylib.api.ui.PaginatedMenu
- showPage(Player, int) - Method in class com.github.pinont.singularitylib.api.ui.PaginatedMenu
-
Jumps to a specific page and re-renders the inventory for the player.
- shutdown() - Method in class com.github.pinont.singularitylib.api.hook.discordJDA.DiscordApp
-
Shuts down the Discord bot and cleans up resources.
- SimpleCommand - Interface in com.github.pinont.singularitylib.api.command
-
Interface for creating simple commands that extend Paper's BasicCommand.
- SimpleSlashCommands - Class in com.github.pinont.singularitylib.api.hook.discordJDA
-
Abstract base class for Discord slash commands.
- SimpleSlashCommands() - Constructor for class com.github.pinont.singularitylib.api.hook.discordJDA.SimpleSlashCommands
-
Default constructor for SimpleSlashCommands.
- SlashCommandComponent - Interface in com.github.pinont.singularitylib.api.hook.discordJDA
-
Interface for defining Discord slash command components.
- slashCommands - Variable in class com.github.pinont.singularitylib.api.hook.discordJDA.DiscordApp
-
List of registered slash commands for the Discord bot.
- sneaky(Throwable) - Static method in class com.github.pinont.singularitylib.api.utils.Common
-
Logs an error message from a throwable.
- spawn(Location) - Method in class com.github.pinont.singularitylib.api.entity.EntityCreator
-
Spawns the entity at the specified location with all configured properties.
- spawn(World, double, double, double) - Method in class com.github.pinont.singularitylib.api.entity.EntityCreator
-
Spawns the entity at the specified coordinates in the given world.
- SPAWN_REINFORCEMENTS - Enum constant in enum class com.github.pinont.singularitylib.api.enums.AttributeType
-
Spawn reinforcements attribute for zombies.
- sqlite(Plugin, String) - Static method in class com.github.pinont.singularitylib.api.storage.Database
-
Creates a SQLite-backed database stored at the given file.
- StandardButtons - Class in com.github.pinont.singularitylib.api.ui
-
Factory for common menu buttons (back, close, filler, confirm, cancel).
- start() - Method in class com.github.pinont.singularitylib.api.hook.discordJDA.DiscordApp
-
Starts the Discord bot with the configured settings.
- STRING - Enum constant in enum class com.github.pinont.singularitylib.api.enums.PersistType
-
String data type.
- SubCommand - Class in com.github.pinont.singularitylib.api.command
-
A subcommand within a
CommandGroup. - SubCommand() - Constructor for class com.github.pinont.singularitylib.api.command.SubCommand
T
- Tick semantics - Section in class com.github.pinont.singularitylib.api.runnable.Scheduler
- toString() - Method in record class com.github.pinont.singularitylib.api.registry.PluginRegistry.RegisteredComponents
-
Returns a string representation of this record class.
- toTicks(long, TimeUnit) - Static method in class com.github.pinont.singularitylib.api.utils.Common
U
- unregister(CorePlugin) - Static method in class com.github.pinont.singularitylib.api.registry.PluginRegistry
-
Called by CorePlugin lifecycle.
- update(String, Object...) - Method in class com.github.pinont.singularitylib.api.storage.Database
-
Executes an update/DDL statement asynchronously.
- updateItems(List, Function, BiConsumer) - Method in class com.github.pinont.singularitylib.api.ui.PaginatedMenu
-
Re-points the data this menu pages over (used by subclasses that re-render, e.g.
- upsert(String, Document, Document) - Method in class com.github.pinont.singularitylib.api.storage.Mongo
-
Upserts: $set the update fields on the first match, inserting if absent.
- usage(Boolean) - Method in class com.github.pinont.singularitylib.api.command.CommandGroup
- usage(Boolean) - Method in interface com.github.pinont.singularitylib.api.command.SimpleCommand
-
Gets the usage string for this command.
V
- value() - Element in annotation interface com.github.pinont.singularitylib.api.annotation.AutoRegister
-
Indicates that the annotated class should be automatically registered by the plugin.
- valueOf(String) - Static method in enum class com.github.pinont.singularitylib.api.enums.AttributeType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.github.pinont.singularitylib.api.enums.PersistType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.github.pinont.singularitylib.api.enums.PlayerInventorySlotType
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.github.pinont.singularitylib.api.enums.AttributeType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.github.pinont.singularitylib.api.enums.PersistType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.github.pinont.singularitylib.api.enums.PlayerInventorySlotType
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- WorldManager - Class in com.github.pinont.singularitylib.api.manager
-
Manager class for creating, loading, and managing worlds.
- WorldManager() - Constructor for class com.github.pinont.singularitylib.api.manager.WorldManager
All Classes and Interfaces|All Packages|Constant Field Values