Package me.deecaad.weaponmechanics
Class WeaponMechanics
java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
me.deecaad.core.MechanicsPlugin
me.deecaad.weaponmechanics.WeaponMechanics
- All Implemented Interfaces:
io.papermc.paper.plugin.lifecycle.event.LifecycleEventOwner,net.kyori.adventure.key.Namespaced,org.bukkit.command.CommandExecutor,org.bukkit.command.TabCompleter,org.bukkit.command.TabExecutor,org.bukkit.plugin.Plugin
public class WeaponMechanics
extends me.deecaad.core.MechanicsPlugin
-
Field Summary
Fields inherited from class me.deecaad.core.MechanicsPlugin
configuration, debugger, foliaScheduler -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionme.deecaad.core.file.Configurationme.deecaad.core.database.DatabasegetEntityWrapper(org.bukkit.entity.LivingEntity entity) This method can't return null because new EntityWrapper is created if not found.getEntityWrapper(org.bukkit.entity.LivingEntity entity, boolean noAutoAdd) This method will return null if no auto add is set to true and EntityWrapper is not found.static WeaponMechanicsgetPlayerWrapper(org.bukkit.entity.Player player) This method can't return null because new PlayerWrapper is created if not found.me.deecaad.core.file.Configurationme.deecaad.core.file.Configurationvoidinit()voidvoidonEnable()voidonLoad()CompletableFuture<com.cjcrafter.foliascheduler.TaskImplementation<Void>> reload()voidremoveEntityWrapper(org.bukkit.entity.LivingEntity entity) Removes entity (and player) wrapper and all of its content.Methods inherited from class me.deecaad.core.MechanicsPlugin
getClassLoader0, getConfiguration, getDebugger, getFoliaScheduler, getMetrics, getPrimaryColor, getSecondaryColor, handleExtensions, handleFiles, setConfiguration, setDebugger, setFoliaScheduler, setMetricsMethods inherited from class org.bukkit.plugin.java.JavaPlugin
getClassLoader, getCommand, getConfig, getDataFolder, getDefaultBiomeProvider, getDefaultWorldGenerator, getDescription, getFile, getLifecycleManager, getLogger, getPlugin, getPluginLoader, getPluginMeta, getProvidingPlugin, getResource, getServer, getTextResource, init, init, isEnabled, isNaggable, onCommand, onTabComplete, registerCommand, registerCommand, registerCommand, registerCommand, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toStringMethods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCode, namespaceMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bukkit.plugin.Plugin
getComponentLogger, getDataPath, getLog4JLogger, getSLF4JLogger
-
Constructor Details
-
WeaponMechanics
public WeaponMechanics()
-
-
Method Details
-
onLoad
public void onLoad()- Specified by:
onLoadin interfaceorg.bukkit.plugin.Plugin- Overrides:
onLoadin classme.deecaad.core.MechanicsPlugin
-
onEnable
public void onEnable()- Specified by:
onEnablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onEnablein classme.deecaad.core.MechanicsPlugin
-
handleCommands
- Overrides:
handleCommandsin classme.deecaad.core.MechanicsPlugin
-
handleResourcePack
-
handleConfigs
- Overrides:
handleConfigsin classme.deecaad.core.MechanicsPlugin
-
handleDatabase
-
handleListeners
- Overrides:
handleListenersin classme.deecaad.core.MechanicsPlugin
-
handlePacketListeners
- Overrides:
handlePacketListenersin classme.deecaad.core.MechanicsPlugin
-
handlePermissions
- Overrides:
handlePermissionsin classme.deecaad.core.MechanicsPlugin
-
handleMetrics
- Overrides:
handleMetricsin classme.deecaad.core.MechanicsPlugin
-
init
public void init()- Overrides:
initin classme.deecaad.core.MechanicsPlugin
-
reload
- Overrides:
reloadin classme.deecaad.core.MechanicsPlugin
-
onDisable
public void onDisable()- Specified by:
onDisablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onDisablein classme.deecaad.core.MechanicsPlugin
-
getWeaponHandler
-
getDatabase
@NotNull public me.deecaad.core.database.Database getDatabase() -
getProjectileSpawner
-
getAmmoConfigurations
@NotNull public me.deecaad.core.file.Configuration getAmmoConfigurations() -
getProjectileConfigurations
@NotNull public me.deecaad.core.file.Configuration getProjectileConfigurations() -
getWeaponConfigurations
@NotNull public me.deecaad.core.file.Configuration getWeaponConfigurations() -
getInstance
-
getEntityWrapper
This method can't return null because new EntityWrapper is created if not found.- Parameters:
entity- the entity wrapper to get- Returns:
- the entity wrapper
-
getEntityWrapper
@Nullable public EntityWrapper getEntityWrapper(@NotNull org.bukkit.entity.LivingEntity entity, boolean noAutoAdd) This method will return null if no auto add is set to true and EntityWrapper is not found. If no auto add is false then new EntityWrapper is automatically created if not found and returned by this method.- Parameters:
entity- the entitynoAutoAdd- true means that EntityWrapper wont be automatically added if not found- Returns:
- the entity wrapper or null if no auto add is true and EntityWrapper was not found
-
getPlayerWrapper
This method can't return null because new PlayerWrapper is created if not found. Use mainly getEntityWrapper() instead of this unless you especially need something from PlayerWrapper.- Parameters:
player- the player wrapper to get- Returns:
- the player wrapper
-
removeEntityWrapper
public void removeEntityWrapper(@NotNull org.bukkit.entity.LivingEntity entity) Removes entity (and player) wrapper and all of its content. Move task is also cancelled.- Parameters:
entity- the entity (or player)
-