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
  • Constructor Details

    • WeaponMechanics

      public WeaponMechanics()
  • Method Details

    • onLoad

      public void onLoad()
      Specified by:
      onLoad in interface org.bukkit.plugin.Plugin
      Overrides:
      onLoad in class me.deecaad.core.MechanicsPlugin
    • onEnable

      public void onEnable()
      Specified by:
      onEnable in interface org.bukkit.plugin.Plugin
      Overrides:
      onEnable in class me.deecaad.core.MechanicsPlugin
    • handleCommands

      @NotNull public CompletableFuture<Void> handleCommands()
      Overrides:
      handleCommands in class me.deecaad.core.MechanicsPlugin
    • handleResourcePack

      @NotNull public CompletableFuture<Void> handleResourcePack()
    • handleConfigs

      @NotNull public CompletableFuture<Void> handleConfigs()
      Overrides:
      handleConfigs in class me.deecaad.core.MechanicsPlugin
    • handleDatabase

      @NotNull public CompletableFuture<Void> handleDatabase()
    • handleListeners

      @NotNull public CompletableFuture<Void> handleListeners()
      Overrides:
      handleListeners in class me.deecaad.core.MechanicsPlugin
    • handlePacketListeners

      @NotNull public CompletableFuture<Void> handlePacketListeners()
      Overrides:
      handlePacketListeners in class me.deecaad.core.MechanicsPlugin
    • handlePermissions

      @NotNull public CompletableFuture<Void> handlePermissions()
      Overrides:
      handlePermissions in class me.deecaad.core.MechanicsPlugin
    • handleMetrics

      @NotNull public CompletableFuture<Void> handleMetrics()
      Overrides:
      handleMetrics in class me.deecaad.core.MechanicsPlugin
    • init

      public void init()
      Overrides:
      init in class me.deecaad.core.MechanicsPlugin
    • reload

      @NotNull public CompletableFuture<com.cjcrafter.foliascheduler.TaskImplementation<Void>> reload()
      Overrides:
      reload in class me.deecaad.core.MechanicsPlugin
    • onDisable

      public void onDisable()
      Specified by:
      onDisable in interface org.bukkit.plugin.Plugin
      Overrides:
      onDisable in class me.deecaad.core.MechanicsPlugin
    • getWeaponHandler

      @NotNull public WeaponHandler getWeaponHandler()
    • getDatabase

      @NotNull public me.deecaad.core.database.Database getDatabase()
    • getProjectileSpawner

      @NotNull public ProjectileSpawner 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

      @NotNull public static WeaponMechanics getInstance()
    • getEntityWrapper

      @NotNull public EntityWrapper getEntityWrapper(@NotNull org.bukkit.entity.LivingEntity entity)
      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 entity
      noAutoAdd - 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

      @NotNull public PlayerWrapper getPlayerWrapper(@NotNull org.bukkit.entity.Player player)
      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)