Class LagStopModule

java.lang.Object
com.haven.havenplugin.LagStopModule
All Implemented Interfaces:
Module, org.bukkit.event.Listener

public class LagStopModule extends Object implements Module, org.bukkit.event.Listener
  • Constructor Details

    • LagStopModule

      public LagStopModule()
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface Module
    • getListeners

      public List<org.bukkit.event.Listener> getListeners()
      Specified by:
      getListeners in interface Module
    • getCommands

      public List<String> getCommands()
      Description copied from interface: Module
      Command names this module owns, matching entries in plugin.yml.
      Specified by:
      getCommands in interface Module
    • getExecutor

      public org.bukkit.command.CommandExecutor getExecutor(String cmd)
      Specified by:
      getExecutor in interface Module
    • getTabCompleter

      public org.bukkit.command.TabCompleter getTabCompleter(String cmd)
      Specified by:
      getTabCompleter in interface Module
    • onEnable

      public void onEnable(Main plugin)
      Specified by:
      onEnable in interface Module
    • onDisable

      public void onDisable()
      Specified by:
      onDisable in interface Module
    • reloadConfig

      public void reloadConfig()
      Specified by:
      reloadConfig in interface Module
    • onPreCreatureSpawn

      public void onPreCreatureSpawn(com.destroystokyo.paper.event.entity.PreCreatureSpawnEvent e)
    • onCreatureSpawn

      public void onCreatureSpawn(org.bukkit.event.entity.CreatureSpawnEvent e)
    • onEntityPathfind

      public void onEntityPathfind(com.destroystokyo.paper.event.entity.EntityPathfindEvent e)
    • onEntityTarget

      public void onEntityTarget(org.bukkit.event.entity.EntityTargetEvent e)
    • onEntityTargetLivingEntity

      public void onEntityTargetLivingEntity(org.bukkit.event.entity.EntityTargetLivingEntityEvent e)
    • onEntityBreed

      public void onEntityBreed(org.bukkit.event.entity.EntityBreedEvent e)
    • onEntityTransform

      public void onEntityTransform(org.bukkit.event.entity.EntityTransformEvent e)
    • onVillagerAcquireTrade

      public void onVillagerAcquireTrade(org.bukkit.event.entity.VillagerAcquireTradeEvent e)
    • onVillagerCareerChange

      public void onVillagerCareerChange(org.bukkit.event.entity.VillagerCareerChangeEvent e)
    • onVillagerReplenishTrade

      public void onVillagerReplenishTrade(org.bukkit.event.entity.VillagerReplenishTradeEvent e)
    • onEntityChangeBlock

      public void onEntityChangeBlock(org.bukkit.event.entity.EntityChangeBlockEvent e)
    • onEntityTeleport

      public void onEntityTeleport(org.bukkit.event.entity.EntityTeleportEvent e)
    • onEntityPickupItem

      public void onEntityPickupItem(org.bukkit.event.entity.EntityPickupItemEvent e)
    • onEntityDropItem

      public void onEntityDropItem(org.bukkit.event.entity.EntityDropItemEvent e)
    • onPiglinBarter

      public void onPiglinBarter(org.bukkit.event.entity.PiglinBarterEvent e)
    • onEntityShootBow

      public void onEntityShootBow(org.bukkit.event.entity.EntityShootBowEvent e)
    • onProjectileLaunch

      public void onProjectileLaunch(org.bukkit.event.entity.ProjectileLaunchEvent e)
    • startMonitoring

      public void startMonitoring()
    • stopMonitoring

      public void stopMonitoring()
    • isMonitoring

      public boolean isMonitoring()
    • setSimulationMode

      public void setSimulationMode(boolean enabled, double mspt)
    • isSimulationMode

      public boolean isSimulationMode()
    • getSimulatedMSPT

      public double getSimulatedMSPT()
    • reload

      public void reload()
      Full reload: stop monitoring, re-read LagStop.yml, restart if appropriate.
    • getActions

      public Map<Integer, Map<String,Object>> getActions()
    • getInterval

      public int getInterval()
    • getCurrentActiveKey

      public int getCurrentActiveKey()
    • getMsptRatio

      public double getMsptRatio()
    • getPlugin

      public Main getPlugin()
    • getThresholds

      public List<String> getThresholds()
    • getDefaultSettings

      public Map<String,Object> getDefaultSettings()