Index

A B C D E F G H I J L M N P R S T U V 
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
addAll(Map<E, Double>) - Method in class dev.selena.luacore.utils.RandomCollection
Used for appending the collection map with another existing map
addCustomNBT(String, Object) - Method in class dev.selena.luacore.utils.items.ItemBuilder
Used for adding custom NBT data to the item
addCustomNBTData(String, Object) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used for adding custom NBTData to the entity
addCustomNBTDataValues(Map<String, Object>) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used for adding a map of NBTData to add to the entity
addDrop(double, ItemBuilder) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used for adding a drop to the collection
addDrop(double, ItemStack) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used for adding a drop to the collection
addDrops(Map<ItemBuilder, Double>) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
used to add a map of drops to the drop collection
addDropsFromItemMap(Map<ItemStack, Double>) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
used to add a map of drops to the drop collection
addEnchant(String, int) - Method in class dev.selena.luacore.utils.items.ItemBuilder
Used for adding an enchantment
addEnchant(Enchantment, int) - Method in class dev.selena.luacore.utils.items.ItemBuilder
Used for adding an enchantment
addMetaDataValue(String, MetadataValue) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used for adding metadata to the entity (Not to sure if I can make it save on server restart) (NOTE: I Suggest using EntityBuilder.addCustomNBTData(String, Object))
addMetaDataValues(Map<String, MetadataValue>) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used for adding a map of metadata values to the entity (NOTE: I Suggest using EntityBuilder.addCustomNBTDataValues(Map))
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
addPotionEffect(PotionEffect) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used for adding a potion effect to the list of effects
addPotionEffects(List<PotionEffect>) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used for adding a list of potion effects to the entity
addPotionEffects(PotionEffect...) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used for adding an array of potion effects to the entity
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
cloneTo(Class<T>, Function<E, T>) - Method in class dev.selena.luacore.utils.RandomCollection
Used for cloning a collection instance to another type and doing the required entry manipulation
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
 
ConfigurationSerializableAdapter - Class in dev.selena.luacore.utils.typeadapters
ConfigurationSerializableAdapter() - Constructor for class dev.selena.luacore.utils.typeadapters.ConfigurationSerializableAdapter
 
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
 
CoreLogger - Class in dev.selena.luacore
Modified Logger class allowing LuaCore to log with color
CoreLogger(Plugin) - Constructor for class dev.selena.luacore.CoreLogger
Used for creating a new instance of the plugin logger

D

deleteItem(ItemStack, int) - Static method in class dev.selena.luacore.utils.items.ItemUtils
Used for removing x items from a player inventory or some form of stack
deserialize(JsonElement, Type, JsonDeserializationContext) - Method in class dev.selena.luacore.utils.typeadapters.ConfigurationSerializableAdapter
 
deserialize(JsonElement, Type, JsonDeserializationContext) - Method in class dev.selena.luacore.utils.typeadapters.ItemStackAdapter
 
deserialize(JsonElement, Type, JsonDeserializationContext) - Method in class dev.selena.luacore.utils.typeadapters.SpigotTypeAdapter
 
deserializeItemMeta(Map<String, Object>) - Static method in class dev.selena.luacore.utils.typeadapters.ItemStackAdapter
 
dev.selena.luacore - package dev.selena.luacore
 
dev.selena.luacore.exceptions.data - package dev.selena.luacore.exceptions.data
 
dev.selena.luacore.exceptions.entity - package dev.selena.luacore.exceptions.entity
 
dev.selena.luacore.exceptions.lua - package dev.selena.luacore.exceptions.lua
 
dev.selena.luacore.nms - package dev.selena.luacore.nms
 
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.nbt - package dev.selena.luacore.utils.nbt
 
dev.selena.luacore.utils.objects - package dev.selena.luacore.utils.objects
 
dev.selena.luacore.utils.text - package dev.selena.luacore.utils.text
 
dev.selena.luacore.utils.typeadapters - package dev.selena.luacore.utils.typeadapters
 
disable() - Static method in class dev.selena.luacore.LuaCore
This needs to be called in the onDisable method of lock file management
doDrops() - Method in class dev.selena.luacore.LuaEntityDeathEvent
So long as the event isn't canceled, you will not need to call this method.
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
THIS CLASS IS NOT AT ALL READY YET PLEASE DO NOT USE
EntityBuilder() - Constructor for class dev.selena.luacore.utils.entities.EntityBuilder
Used for creating a blank instance
EntityBuilder(EntityType) - Constructor for class dev.selena.luacore.utils.entities.EntityBuilder
Used for creating an instance with EntityType
EntityBuildException - Exception Class in dev.selena.luacore.exceptions.entity
Exception thrown during the build process in the EntityBuilder class
EntityBuildException(String) - Constructor for exception class dev.selena.luacore.exceptions.entity.EntityBuildException
Thrown when there is an error with the EntityBuilder.spawn(Location)
EntityEvents - Class in dev.selena.luacore.utils.entities
Used by LuaCore to call LuaEntityDeathEvent
EntityEvents() - Constructor for class dev.selena.luacore.utils.entities.EntityEvents
 
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
Used to create a new FileClass instance for user data
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
forEach(Function<E, E>) - Method in class dev.selena.luacore.utils.RandomCollection
Used for executing lambda function on each value
fromItemStack(ItemStack) - Static method in class dev.selena.luacore.utils.items.ItemBuilder
Used for creating an instance of ItemBuilder from an ItemStack

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
getEntityNBTContent(Class<T>, String, ReadWriteNBT) - Static method in class dev.selena.luacore.utils.nbt.NBTUtils
Gets custom NBT data
getEntityNBTContent(Type, String, ReadWriteNBT) - Static method in class dev.selena.luacore.utils.nbt.NBTUtils
Gets custom NBT data
getHandlers() - Method in class dev.selena.luacore.LuaEntityDeathEvent
 
getInstance() - Static method in class dev.selena.luacore.utils.items.ItemEventSingleton
Used for creating one single instance of ItemEvents
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
getLockFileName(String) - Static method in class dev.selena.luacore.LuaCore
Method to get a specific lock file name
getNBTContent(Class<T>, String, NBTCompound) - Static method in class dev.selena.luacore.utils.nbt.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
isCancelled() - Method in class dev.selena.luacore.LuaEntityDeathEvent
 
isChestplate(ItemStack) - Static method in class dev.selena.luacore.utils.items.ItemUtils
Checks if the ItemStack is a chestplate
isCommandReward() - Method in class dev.selena.luacore.utils.objects.RewardItem
Checks if the reward has a command set
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
isEmpty() - Method in class dev.selena.luacore.utils.RandomCollection
Used for checking if the collection is empty
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
isItemReward() - Method in class dev.selena.luacore.utils.objects.RewardItem
Checks if the reward has an item set
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
isLuaEntity(Entity) - Static method in class dev.selena.luacore.utils.entities.LuaEntity
Used for seeing if an entity is a LuaEntity (This is plugin-specific)
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
 
ItemEventSingleton - Class in dev.selena.luacore.utils.items
Used for ensuring there is ever only one instance of ItemEvent loaded
itemSpawn(ItemSpawnEvent) - Method in class dev.selena.luacore.utils.items.ItemEvent
used for handling unstackable items
ItemStackAdapter - Class in dev.selena.luacore.utils.typeadapters
Kinda works but not fully its a bit iffy.
ItemStackAdapter() - Constructor for class dev.selena.luacore.utils.typeadapters.ItemStackAdapter
 
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.
json_dump(String, 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
lockCrashHandling(boolean...) - Static method in class dev.selena.luacore.LuaCore
Used for crash handling of the lock files.
log(Level, String) - Method in class dev.selena.luacore.CoreLogger
Used for sending a message to console
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
 
LuaEntity - Class in dev.selena.luacore.utils.entities
Used for handling of LuaCore Entities
LuaEntity(Entity) - Constructor for class dev.selena.luacore.utils.entities.LuaEntity
used for setting up stuff for the LuaEntity
luaEntityDeathCall(EntityDeathEvent) - Method in class dev.selena.luacore.utils.entities.EntityEvents
Used for calling the LuaEntityDeathEvent.
LuaEntityDeathEvent - Class in dev.selena.luacore
Used for handling custom drops only currently, but you can use this for whatever you need.
LuaEntityDeathEvent(LuaEntity) - Constructor for class dev.selena.luacore.LuaEntityDeathEvent
Used for handling custom drops only currently, but you can use this for whatever you need.
luaEntityDeathListen(LuaEntityDeathEvent) - Method in class dev.selena.luacore.utils.entities.EntityEvents
Listens to LuaEntityDeathEvent will be called last, so if you wish to change the drop amount you can
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

map - Variable in class dev.selena.luacore.utils.RandomCollection
 
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
NBTConstants - Enum Class in dev.selena.luacore.utils.nbt
 
NBTUtils - Class in dev.selena.luacore.utils.nbt
NBT utility class mainly for serialization and storing custom nbt compounds
NBTUtils() - Constructor for class dev.selena.luacore.utils.nbt.NBTUtils
 
NoReturnValueException - Exception Class in dev.selena.luacore.exceptions.lua
Thrown when the Lua file does not have any return table
NoReturnValueException(String) - Constructor for exception class dev.selena.luacore.exceptions.lua.NoReturnValueException
Thrown when the Lua file does not have any return table
NOT_SUPPORTED - Enum constant in enum class dev.selena.luacore.nms.Version
Used for any other versions
NotUserFolderException - Exception Class in dev.selena.luacore.exceptions.data
Used for player data management related issues
NotUserFolderException(String) - Constructor for exception class 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 Class in dev.selena.luacore.exceptions.data
Thrown when the user data folder contains no json files
NoUserJsonFoundException(String) - Constructor for exception class 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(long) - 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 (Note the seed will be the next long generated this is for serialization reason)
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
RewardItem - Class in dev.selena.luacore.utils.objects
An example class for the RandomCollection class
RewardItem(ItemStack, String, String) - Constructor for class dev.selena.luacore.utils.objects.RewardItem
Used to setup the reward
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
serialize(ConfigurationSerializable, Type, JsonSerializationContext) - Method in class dev.selena.luacore.utils.typeadapters.ConfigurationSerializableAdapter
 
serialize(ItemStack, Type, JsonSerializationContext) - Method in class dev.selena.luacore.utils.typeadapters.ItemStackAdapter
 
serialize(T, Type, JsonSerializationContext) - Method in class dev.selena.luacore.utils.typeadapters.SpigotTypeAdapter
 
serializeItemMeta(ItemMeta) - Static method in class dev.selena.luacore.utils.typeadapters.ItemStackAdapter
 
setAmount(int) - Method in class dev.selena.luacore.utils.items.ItemBuilder
Used for setting the amount of items
setArmorBonus(float) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used for setting the armor bonus attribute (0.0 to 30.0, default 0.0)
setArmorToughnessBonus(float) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used for setting the armor toughness bonus attribute (0.0 to 20.0, default 0.0)
setArmorTrim(ArmorTrim) - Method in class dev.selena.luacore.utils.items.ItemBuilder
Used to add armor trims to a piece of armor
setAttackDamageBonus(float) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used for setting the attack damage bonus (0.0 to 2048.0 default, 2.0)
setAttackKnockBack(float) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used for setting the attack knock back attribute (0.0 to 5.0, default 0.0)
setAttackSpeed(float) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used for setting the attack speed attribute (0.0 to 1024.0, default 4)
setBooleanNBT(Map<String, Boolean>) - Method in class dev.selena.luacore.utils.items.ItemBuilder
Used for setting the values of the NBT boolean map
setBoots(ItemStack) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used for setting the entity boots
setCancelled(boolean) - Method in class dev.selena.luacore.LuaEntityDeathEvent
 
setChestplate(ItemStack) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used for setting the entity chestplate
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
setCustomNBTData(Map<String, Object>) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used for setting the custom NBTData map
setCustomPathfinderGoal(Class<?>) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used for setting a custom pathfinder goal NOTE: THIS IS NOT ADDED YET
setDisplayName(String) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used for setting the display name of the entity (Color is translated once applied so no need to do it before)
setDrops(RandomCollection<ItemBuilder>) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used for setting the drop collection for entity death
setDropsFromItemCollection(RandomCollection<ItemStack>) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used for setting the drop collection for entity death
setEnchantsFromEnchantments(Map<Enchantment, Integer>) - Method in class dev.selena.luacore.utils.items.ItemBuilder
Used for setting the enchantment map using spigot Enchantments
setEnchantsFromKey(Map<String, Integer>) - Method in class dev.selena.luacore.utils.items.ItemBuilder
Used for setting enchantments
setEntityInteractWithBlockDistance(float) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used to set the entity interaction with block distance attribute (0.0 to 64, default 4.5)
setEntityInteractWithEntityDistance(float) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used to set the entity interaction with entity distance attribute (0.0 to 64.0, default 3.0)
setEntityScale(float) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used for setting the entity scale attribute (0.0625 to 16.0, default 1.0)
setEntityType(EntityType) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used for setting the type of entity to spawn
setFlyingSpeed(float) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used for setting the flight speed attribute (0.0 to 1024.0, default 0.4)
setFollowRange(float) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used for setting the entity follow range attribute (0.0 to 2048, default 32.0)
setGlowing(boolean) - Method in class dev.selena.luacore.utils.items.ItemBuilder
Used for making an item glow
setHelmet(ItemStack) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used for setting the entity helmet
setHorseJumpStrength(float) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used for setting the horse jump strength attribute (0.0 to 2.0, default 0.7)
setIntNBT(Map<String, Integer>) - Method in class dev.selena.luacore.utils.items.ItemBuilder
Used for setting the value of the NBT Int Map
setKnockBackResistance(float) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used for setting the knock back resistance attribute (0.0 to 1.0, default 0.0)
setLeggings(ItemStack) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used for setting the entity leggings
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
setLuck(float) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used for setting the luck attribute (-1024.0 to 1024.0, default 0.0)
setMainHandItem(ItemStack) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used for setting the item in the entities main hand
setMaxAbsorption(float) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used for setting the maximum absorption attribute (0.0 to 2048.0, default 0.0)
setMaxHealth(float) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used for setting the maximum health attribute (0.0 to 1024.0, default 20.0)
setMetadataValues(Map<String, MetadataValue>) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used for setting the map of metadata values (NOTE: I suggest using EntityBuilder.setCustomNBTData(Map))
setMovementSpeed(float) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used for setting the entity movement speed attribute (0.0 to 1024.0, default depends on entity)
setOffHandItem(ItemStack) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used for setting the item in the entities offhand
setPlugin(Plugin) - Static method in class dev.selena.luacore.LuaCore
Deprecated, for removal: This API element is subject to removal in a future version.
setPotionEffects(List<PotionEffect>) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used for setting the list of potion effects
setSkullProfile(URL, UUID, String) - Method in class dev.selena.luacore.utils.items.ItemBuilder
Used for setting the skulls PlayerProfile texture.
setSkullProfile(PlayerProfile) - Method in class dev.selena.luacore.utils.items.ItemBuilder
Used for setting the skulls PlayerProfile
setSkullTexture(URL) - Method in class dev.selena.luacore.utils.items.ItemBuilder
Used for setting the skull texture (Won't work if the material isn't Material.PLAYER_HEAD)
setStackable(boolean) - Method in class dev.selena.luacore.utils.items.ItemBuilder
Used for making items only be able to stack to 1
setStepHeight(float) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used for setting the entity step height attribute (0.0 to 10.0, default 0.6)
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
setupCore(Plugin) - Static method in class dev.selena.luacore.LuaCore
Method to setup the library with the required methods (setPlugin and setCoreLogger)
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
setZombieReinforcements(boolean) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used for setting the zombie reinforcements attribute (true or false, default false)
spawn(Location) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used for spawning the entity in the world
spawn(Location, World) - Method in class dev.selena.luacore.utils.entities.EntityBuilder
Used for spawning the entity in the world
SpigotTypeAdapter<T> - Class in dev.selena.luacore.utils.typeadapters
 
SpigotTypeAdapter(Function<Map<String, Object>, T>) - Constructor for class dev.selena.luacore.utils.typeadapters.SpigotTypeAdapter
 
storeEntityNBTContent(ReadWriteNBT, Object, String) - Static method in class dev.selena.luacore.utils.nbt.NBTUtils
Stores custom NBT content for entity
storeEntityNBTContent(ReadWriteNBT, Object, String, Type) - Static method in class dev.selena.luacore.utils.nbt.NBTUtils
Stores custom NBT content for entity
storeNBTContent(NBTCompound, Object, String) - Static method in class dev.selena.luacore.utils.nbt.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

UNSTACKABLE - Enum constant in enum class dev.selena.luacore.utils.nbt.NBTConstants
 
UNUSABLE - Enum constant in enum class dev.selena.luacore.utils.nbt.NBTConstants
 
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

v1_20_6 - Enum constant in enum class dev.selena.luacore.nms.Version
 
v1_20_R2 - Enum constant in enum class dev.selena.luacore.nms.Version
Used for 1.20.2
v1_20_R3 - Enum constant in enum class dev.selena.luacore.nms.Version
Used for 1.20.3-1.20.4
value() - Method in record class dev.selena.luacore.utils.lua.LuaArgValue
Used to get the value of the argument variable
valueOf(String) - Static method in enum class dev.selena.luacore.nms.Version
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class dev.selena.luacore.utils.nbt.NBTConstants
Returns the enum constant of this class with the specified name.
values() - Static method in enum class dev.selena.luacore.nms.Version
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class dev.selena.luacore.utils.nbt.NBTConstants
Returns an array containing the constants of this enum class, in the order they are declared.
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
Version - Enum Class in dev.selena.luacore.nms
Used for NMS reflections
A B C D E F G H I J L M N P R S T U V 
All Classes and Interfaces|All Packages|Serialized Form