Index
All Classes and Interfaces|All Packages|Serialized Form
A
- add(double, E) - Method in class dev.selena.luacore.utils.RandomCollection
-
Used for adding a weight
- addCustomNBT(String, Object) - Method in class dev.selena.luacore.utils.items.ItemBuilder
-
Used for adding custom NBT data to the item
- addEnchant(String, int) - Method in class dev.selena.luacore.utils.items.ItemBuilder
-
Used for adding an enchantment
- addNBTBoolean(String, boolean) - Method in class dev.selena.luacore.utils.items.ItemBuilder
-
Used for adding a boolean NBT value to the item
- addNBTInt(String, int) - Method in class dev.selena.luacore.utils.items.ItemBuilder
-
Used for adding an NBT Int to the item
- addNBTString(String, String) - Method in class dev.selena.luacore.utils.items.ItemBuilder
-
Used for adding an NBT string value to the item
- announce(Object...) - Static method in class dev.selena.luacore.utils.text.LuaMessageUtils
-
Sends a message to all online players
- applyPotionEffect(Player, PotionEffectType, int, int) - Method in class dev.selena.luacore.utils.lua.ScriptHelper
-
applies a potion effect to the player Note: if you are running the script on a different thread you will need to use applyPotionEffectAsync
- applyPotionEffectAsync(Player, String, int, int) - Method in class dev.selena.luacore.utils.lua.ScriptHelper
-
Used for when you cant seem to bind the class in lua
- applyPotionEffectAsync(Player, PotionEffectType, int, int) - Method in class dev.selena.luacore.utils.lua.ScriptHelper
-
Used for applying potion effects when the Lua script isn't on the main thread
B
- blockPlace(BlockPlaceEvent) - Method in class dev.selena.luacore.utils.items.ItemEvent
-
Used to stop players from placing blocks with the unusable tag
- build() - Method in class dev.selena.luacore.utils.items.ItemBuilder
-
Used for creating the previously created ItemStack
C
- capsFirst(String) - Static method in class dev.selena.luacore.utils.text.ContentUtils
-
Used for making the first Letter of each word caps
- color(String) - Static method in class dev.selena.luacore.utils.text.ContentUtils
-
Used for coloring string using Iridium
- colorArray(Object[]) - Static method in class dev.selena.luacore.utils.text.ContentUtils
-
Colors an array using Iridium
- colorArray(List<Objects>) - Static method in class dev.selena.luacore.utils.text.ContentUtils
-
Colors a List using Iridium then convert to a String array
- colorList(List<String>) - Static method in class dev.selena.luacore.utils.text.ContentUtils
-
Colors a List using Iridium
- ConfigLoader - Class in dev.selena.luacore.utils.config
-
Config loader used to load and save json config files
- ConfigLoader() - Constructor for class dev.selena.luacore.utils.config.ConfigLoader
- consoleError(Object) - Static method in class dev.selena.luacore.utils.text.LuaMessageUtils
-
Used for sending an error to the console
- consoleSend(Object) - Static method in class dev.selena.luacore.utils.text.LuaMessageUtils
-
Sends a message to console
- consoleWarn(Object) - Static method in class dev.selena.luacore.utils.text.LuaMessageUtils
-
Used for sending a warning to the console
- ContentUtils - Class in dev.selena.luacore.utils.text
-
Used for message content manipulation
- ContentUtils() - Constructor for class dev.selena.luacore.utils.text.ContentUtils
D
- deleteItem(ItemStack, int) - Static method in class dev.selena.luacore.utils.items.ItemUtils
-
Used for removing x items from a players inventory or some form of stack
- dev.selena.luacore - package dev.selena.luacore
- dev.selena.luacore.exceptions.data - package dev.selena.luacore.exceptions.data
- dev.selena.luacore.exceptions.lua - package dev.selena.luacore.exceptions.lua
- dev.selena.luacore.utils - package dev.selena.luacore.utils
- dev.selena.luacore.utils.config - package dev.selena.luacore.utils.config
- dev.selena.luacore.utils.data - package dev.selena.luacore.utils.data
- dev.selena.luacore.utils.entities - package dev.selena.luacore.utils.entities
- dev.selena.luacore.utils.items - package dev.selena.luacore.utils.items
- dev.selena.luacore.utils.lua - package dev.selena.luacore.utils.lua
- dev.selena.luacore.utils.text - package dev.selena.luacore.utils.text
- dropItem(ItemStack, Location) - Method in class dev.selena.luacore.utils.lua.ScriptHelper
-
Used for dropping an ItemStack at a location in the world
E
- EntityBuilder - Class in dev.selena.luacore.utils.entities
- EntityBuilder() - Constructor for class dev.selena.luacore.utils.entities.EntityBuilder
- equals(Object) - Method in record class dev.selena.luacore.utils.lua.LuaArgValue
-
Indicates whether some other object is "equal to" this one.
- extractConstantValue(String, String) - Static method in class dev.selena.luacore.utils.lua.ScriptHelper
-
Used for getting a LuaValue from a script
F
- file(String, String) - Static method in class dev.selena.luacore.utils.config.FileManager
-
Returns the specified file
- FileClass(String, Object) - Constructor for class dev.selena.luacore.utils.data.UserFolder.FileClass
- FileManager - Class in dev.selena.luacore.utils.config
-
Internally used file manager for loading, creating, and saving files
- FileManager() - Constructor for class dev.selena.luacore.utils.config.FileManager
-
Used for initial class setup
- folder(String) - Static method in class dev.selena.luacore.utils.config.FileManager
-
Used for getting a folder
- folderName - Static variable in class dev.selena.luacore.utils.data.UserDataManager
-
The folder that the user data is stored in
- folderPath(String) - Static method in class dev.selena.luacore.utils.config.FileManager
-
Returns a folder from your Plugins data folder
G
- get() - Static method in class dev.selena.luacore.utils.config.FileManager
-
Used for getting the instance of this class
- getBlockAtLocation(Location) - Method in class dev.selena.luacore.utils.lua.ScriptHelper
-
Used for getting the Block at a location
- getBlockLocation(Block) - Method in class dev.selena.luacore.utils.lua.ScriptHelper
-
Used for getting the location of a block
- getCompountName() - Static method in class dev.selena.luacore.LuaCore
-
Used for NBT compounds
- getIntFromLuaValue(LuaValue) - Static method in class dev.selena.luacore.utils.lua.ScriptHelper
-
Used for getting an Integer from a LuaValue
- getItem(Material, int) - Method in class dev.selena.luacore.utils.lua.ScriptHelper
-
Used for getting an ItemStack in lua
- getNBTContent(Class<T>, String, NBTCompound) - Static method in class dev.selena.luacore.utils.items.NBTUtils
-
Gets custom NBT data
- getRandom() - Method in class dev.selena.luacore.utils.RandomCollection
-
Gets a weighted random value
- getRelativeUserFolderPath(UUID) - Method in class dev.selena.luacore.utils.data.UserDataManager
-
Used for getting the path inside your plugin data folder excluding /plugins/PLUGIN/
- getStringArrayFromLuaValue(LuaValue) - Static method in class dev.selena.luacore.utils.lua.ScriptHelper
-
Used for getting a string array from a LuaValue
- getStringFromLuaValue(LuaValue) - Static method in class dev.selena.luacore.utils.lua.ScriptHelper
-
Used for getting a string from a LuaValue
- getUserDataFolder(Class<T>, UUID) - Method in class dev.selena.luacore.utils.data.UserDataManager
-
Used for getting the initialized data folder class
- getUserFolderPath(UUID) - Method in class dev.selena.luacore.utils.data.UserDataManager
-
Used for getting the users data path as a string.
- giveItem(Player, ItemStack) - Method in class dev.selena.luacore.utils.lua.ScriptHelper
-
User for giving a player an ItemStack
H
- hasDebuff(Player) - Static method in class dev.selena.luacore.utils.lua.ScriptHelper
-
Checks if the player has a debuff potion effect
- hashCode() - Method in record class dev.selena.luacore.utils.lua.LuaArgValue
-
Returns a hash code value for this object.
- hasPotionEffect(Player, String) - Static method in class dev.selena.luacore.utils.lua.ScriptHelper
-
Used for checking if the player has a potion effect
I
- init() - Method in class dev.selena.luacore.utils.data.UserFolder
-
Used for setting up the class extending UserFolder
- intToRoman(int) - Static method in class dev.selena.luacore.utils.lua.ScriptHelper
-
Used for converting an Int to roman numerals
- isArmor(ItemStack) - Static method in class dev.selena.luacore.utils.items.ItemUtils
-
Checks if the ItemStack is armor
- isAxe(ItemStack) - Static method in class dev.selena.luacore.utils.items.ItemUtils
-
Checks if the ItemStack is an axe
- isBoots(ItemStack) - Static method in class dev.selena.luacore.utils.items.ItemUtils
-
Checks if the ItemStack is boots
- isBow(ItemStack) - Static method in class dev.selena.luacore.utils.items.ItemUtils
-
Checks if the ItemStack in question is a bow
- isChestplate(ItemStack) - Static method in class dev.selena.luacore.utils.items.ItemUtils
-
Checks if the ItemStack is a chestplate
- isCrossBow(ItemStack) - Static method in class dev.selena.luacore.utils.items.ItemUtils
-
Checks if the ItemStack in question is a cross bow
- isDebuff(PotionEffectType) - Static method in class dev.selena.luacore.utils.lua.ScriptHelper
-
Used for checking of a potion effect is a debuff
- isHelmet(ItemStack) - Static method in class dev.selena.luacore.utils.items.ItemUtils
-
Checks if the ItemStack is a helmet
- isHoe(ItemStack) - Static method in class dev.selena.luacore.utils.items.ItemUtils
-
Checks if the ItemStack is a hoe
- isLeather(ItemStack) - Static method in class dev.selena.luacore.utils.items.ItemUtils
-
Used for checking if an item is leather for dying
- isLeggings(ItemStack) - Static method in class dev.selena.luacore.utils.items.ItemUtils
-
Checks if the ItemStack is leggings
- isPickaxe(ItemStack) - Static method in class dev.selena.luacore.utils.items.ItemUtils
-
Checks if the ItemStack is a pickaxe
- isShovel(ItemStack) - Static method in class dev.selena.luacore.utils.items.ItemUtils
-
Checks if the ItemStack is a shovel
- isSword(ItemStack) - Static method in class dev.selena.luacore.utils.items.ItemUtils
-
Checks if the ItemStack in question is a sword
- isTool(ItemStack) - Static method in class dev.selena.luacore.utils.items.ItemUtils
-
Checks if the ItemStack is a tool
- isWeapon(ItemStack) - Static method in class dev.selena.luacore.utils.items.ItemUtils
-
Used for seeing if an ItemStack is a weapon
- ItemBuilder - Class in dev.selena.luacore.utils.items
-
Used for easily creating custom items
- ItemBuilder() - Constructor for class dev.selena.luacore.utils.items.ItemBuilder
-
Used for creating the item builder with no initial material type
- ItemBuilder(Material) - Constructor for class dev.selena.luacore.utils.items.ItemBuilder
-
Start the creation of the ItemBuilder and setting the type
- ItemEvent - Class in dev.selena.luacore.utils.items
-
Used for managing items, This should only be used in one plugin on your server.
- ItemEvent() - Constructor for class dev.selena.luacore.utils.items.ItemEvent
- itemUse(PlayerInteractEvent) - Method in class dev.selena.luacore.utils.items.ItemEvent
-
event to stop users from consuming items with the unusable tag
- ItemUtils - Class in dev.selena.luacore.utils.items
-
Useful item utility class
- ItemUtils() - Constructor for class dev.selena.luacore.utils.items.ItemUtils
J
- json_dump(Object) - Static method in class dev.selena.luacore.utils.text.LuaMessageUtils
-
Dumps a Java class to console, can be used for most.
L
- loadConfig(Class<T>, File) - Static method in class dev.selena.luacore.utils.config.ConfigLoader
-
Loads a provided config object from a given JSON file.
- loadData(Class<T>, String) - Method in class dev.selena.luacore.utils.data.UserFolder
-
Used for setting up the GSON mapping classes for user data
- loadFile(Class<T>, File) - Static method in class dev.selena.luacore.utils.config.FileManager
-
Uses the GSON ConfigLoader class to map the config json to the specified class
- loadResourceFolder(String) - Static method in class dev.selena.luacore.utils.lua.LuaManager
-
Used for loading a folder from the Resources folder Note its best to add all the resource files into sub folders
- loadTable(String) - Static method in class dev.selena.luacore.utils.lua.LuaValueMapper
-
Used for loading a Lua table into memory
- LuaArgValue - Record Class in dev.selena.luacore.utils.lua
-
Used for parsing args into the Lua script using
runScript
- LuaArgValue(String, Object) - Constructor for record class dev.selena.luacore.utils.lua.LuaArgValue
-
Creates an instance of a
LuaArgValue
record class. - LuaCore - Class in dev.selena.luacore
-
Main class for the library
- LuaCore() - Constructor for class dev.selena.luacore.LuaCore
- LuaManager - Class in dev.selena.luacore.utils.lua
-
Main class for Lua management
- LuaManager() - Constructor for class dev.selena.luacore.utils.lua.LuaManager
- LuaMessageUtils - Class in dev.selena.luacore.utils.text
-
Used for sending messages to both console and users
- LuaMessageUtils() - Constructor for class dev.selena.luacore.utils.text.LuaMessageUtils
- LuaValueMapper - Class in dev.selena.luacore.utils.lua
-
Used for mapping Lua values to a class Note there is still a bit of work needed here
- LuaValueMapper() - Constructor for class dev.selena.luacore.utils.lua.LuaValueMapper
M
- mapToClass(Class<T>, String) - Static method in class dev.selena.luacore.utils.lua.LuaValueMapper
-
Used for mapping lua values to the class
- multiplyArray(Object[], int) - Static method in class dev.selena.luacore.utils.lua.ScriptHelper
-
Used for duplicating the array x times Example of use, I had a mask plugin and one of the maks gave 2x the rewards from fishing Using this method you can double the rewards easily
N
- name() - Method in record class dev.selena.luacore.utils.lua.LuaArgValue
-
Used to get the argument variable name
- NBTUtils - Class in dev.selena.luacore.utils.items
-
NBT utility class mainly for serialization and storing custom nbt compounds
- NBTUtils() - Constructor for class dev.selena.luacore.utils.items.NBTUtils
- NoReturnValueException - Exception in dev.selena.luacore.exceptions.lua
-
Thrown when the Lua file does not have any return table
- NoReturnValueException(String) - Constructor for exception dev.selena.luacore.exceptions.lua.NoReturnValueException
-
Thrown when the Lua file does not have any return table
- NotUserFolderException - Exception in dev.selena.luacore.exceptions.data
-
Used for player data management related issues
- NotUserFolderException(String) - Constructor for exception dev.selena.luacore.exceptions.data.NotUserFolderException
-
Thrown when the class you are trying to use as the mapper is not instance of
UserFolder
- NoUserJsonFoundException - Exception in dev.selena.luacore.exceptions.data
-
Thrown when the user data folder contains no json files
- NoUserJsonFoundException(String) - Constructor for exception dev.selena.luacore.exceptions.data.NoUserJsonFoundException
-
Thrown when the user folder has not been set up correctly and does not contain any json files
P
- playerSend(Player, Object...) - Static method in class dev.selena.luacore.utils.text.LuaMessageUtils
-
Sends a message to the selected player
R
- RandomCollection<E> - Class in dev.selena.luacore.utils
-
Used for weighted random item/object generation For examples check the wiki
- RandomCollection() - Constructor for class dev.selena.luacore.utils.RandomCollection
-
Used to initialize the class using a new instance of random
- RandomCollection(Random) - Constructor for class dev.selena.luacore.utils.RandomCollection
-
Used to initialize the class using a fixed instance of random
- registerItemEvents() - Static method in class dev.selena.luacore.LuaCore
-
This should only be called by one plugin on your server, Used for preventing the placement/usage of un usable items
- removeDebuffs(Player) - Static method in class dev.selena.luacore.utils.lua.ScriptHelper
-
Removes all debuffs from the player
- removeEffects(Player, PotionEffectType...) - Static method in class dev.selena.luacore.utils.lua.ScriptHelper
-
Used for removing potion effects from a player
- removeEffectsAsync(Player, PotionEffectType) - Static method in class dev.selena.luacore.utils.lua.ScriptHelper
-
Used for removing potion effects when on a different thread
- runEvent(String, LuaArgValue...) - Static method in class dev.selena.luacore.utils.lua.LuaManager
-
Used for running lua script functions
- runEvent(String, String, LuaArgValue...) - Static method in class dev.selena.luacore.utils.lua.LuaManager
-
Used for running lua script event function
- runScript(String, String, LuaArgValue...) - Static method in class dev.selena.luacore.utils.lua.LuaManager
-
Used for running lua script functions
- runScript(String, String, String, LuaArgValue...) - Static method in class dev.selena.luacore.utils.lua.LuaManager
-
Used to run a lua script
S
- save() - Static method in class dev.selena.luacore.LuaCore
-
Used for saving all needed data call this in onDisable
- saveAllUserData() - Method in class dev.selena.luacore.utils.data.UserDataManager
-
Used for saving all users data
- saveConfig(Object, File) - Static method in class dev.selena.luacore.utils.config.ConfigLoader
-
Saves a config object to the specified file in JSON format
- saveUserData(UserFolder) - Method in class dev.selena.luacore.utils.data.UserDataManager
-
Used for saving the users data
- ScriptHelper - Class in dev.selena.luacore.utils.lua
-
A useful tool for script assistance
- ScriptHelper() - Constructor for class dev.selena.luacore.utils.lua.ScriptHelper
- sender(CommandSender, Object...) - Static method in class dev.selena.luacore.utils.text.LuaMessageUtils
-
Sends a message to a command sender
- setAmount(int) - Method in class dev.selena.luacore.utils.items.ItemBuilder
-
Used for setting the amount of items
- setArmorTrim(ArmorTrim) - Method in class dev.selena.luacore.utils.items.ItemBuilder
-
Used to add armor trims to a piece of armor
- setBooleanNBT(Map<String, Boolean>) - Method in class dev.selena.luacore.utils.items.ItemBuilder
-
Used for setting the values of the NBT boolean map
- setColor(Color) - Method in class dev.selena.luacore.utils.items.ItemBuilder
-
Used for setting color of leather armor
- setCustomNBT(Map<String, Object>) - Method in class dev.selena.luacore.utils.items.ItemBuilder
-
Used for setting the values of the custom NBT map
- setEnchants(Map<String, Integer>) - Method in class dev.selena.luacore.utils.items.ItemBuilder
-
Used for setting enchantments
- setGlowing(boolean) - Method in class dev.selena.luacore.utils.items.ItemBuilder
-
Used for making an item glow
- setIntNBT(Map<String, Integer>) - Method in class dev.selena.luacore.utils.items.ItemBuilder
-
Used for setting the value of the NBT Int Map
- setLore(String...) - Method in class dev.selena.luacore.utils.items.ItemBuilder
-
Sets the lore using a string array
- setLore(List<String>) - Method in class dev.selena.luacore.utils.items.ItemBuilder
-
Used for setting the lore using List
- setPlugin(Plugin) - Static method in class dev.selena.luacore.LuaCore
-
This needs to be called in the OnEnable method of your plugin for it to work
- setStackable(boolean) - Method in class dev.selena.luacore.utils.items.ItemBuilder
-
Used for making items only be able to stack to 1
- setStringNBT(Map<String, String>) - Method in class dev.selena.luacore.utils.items.ItemBuilder
-
Used for setting the NBTString map
- setTitle(String) - Method in class dev.selena.luacore.utils.items.ItemBuilder
-
Used for setting the display name of the item
- setType(Material) - Method in class dev.selena.luacore.utils.items.ItemBuilder
-
Used for setting the material type
- setUsable(boolean) - Method in class dev.selena.luacore.utils.items.ItemBuilder
-
Allows you to stop users from using items that should not be used
- setUserDataManager(UserDataManager) - Static method in class dev.selena.luacore.LuaCore
-
Used for setting up user data management, This is in early beta currently
- setVerbose(boolean) - Static method in class dev.selena.luacore.LuaCore
-
Used for enabling extra messages
- storeNBTContent(NBTCompound, Object, String) - Static method in class dev.selena.luacore.utils.items.NBTUtils
-
Stores custom NBT content
T
- toString() - Method in record class dev.selena.luacore.utils.lua.LuaArgValue
-
Returns a string representation of this record class.
U
- UserDataManager - Class in dev.selena.luacore.utils.data
-
Used for internal handling of player data
- UserDataManager(String) - Constructor for class dev.selena.luacore.utils.data.UserDataManager
-
Used for setting up the manager class.
- UserFolder - Class in dev.selena.luacore.utils.data
-
This class is required for any User folder class
- UserFolder(UUID) - Constructor for class dev.selena.luacore.utils.data.UserFolder
-
Used for setting the UUID for various internal uses
- UserFolder.FileClass - Class in dev.selena.luacore.utils.data
-
Data file class used for managing data internally
V
- value() - Method in record class dev.selena.luacore.utils.lua.LuaArgValue
-
Used to get the value of the argument variable
- verboseError(String) - Static method in class dev.selena.luacore.utils.text.LuaMessageUtils
-
Used for debugging sending an error to the console
- verboseMessage(String) - Static method in class dev.selena.luacore.utils.text.LuaMessageUtils
-
Used for debugging sending a message to the console
- verboseWarn(String) - Static method in class dev.selena.luacore.utils.text.LuaMessageUtils
-
Used for debugging sending a warning to the console
All Classes and Interfaces|All Packages|Serialized Form