Class LuaEntity
java.lang.Object
dev.selena.luacore.utils.entities.LuaEntity
Used for handling of LuaCore Entities
-
Constructor Summary
ConstructorsConstructorDescriptionLuaEntity(org.bukkit.entity.Entity entity) used for setting up stuff for the LuaEntity -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.plugin.PluginGets the owning plugin of the entitystatic booleanisLuaEntity(org.bukkit.entity.Entity entity) Used for seeing if an entity is a LuaEntity (This is plugin-specific)
-
Constructor Details
-
LuaEntity
public LuaEntity(org.bukkit.entity.Entity entity) used for setting up stuff for the LuaEntity- Parameters:
entity- The entity you want to parse
-
-
Method Details
-
isLuaEntity
public static boolean isLuaEntity(org.bukkit.entity.Entity entity) Used for seeing if an entity is a LuaEntity (This is plugin-specific)- Parameters:
entity- The entity you want to check- Returns:
- True if contains the "LuaCoreEntity" NBT for your plugin
-
getOwningPlugin
public org.bukkit.plugin.Plugin getOwningPlugin()Gets the owning plugin of the entity- Returns:
- The owning plugin of the entity
-