AdvancedCombatRuntime

public final class AdvancedCombatRuntime implements Listener, PlayerCombatState.Listener

Bukkit adapter for the fixed health, hunger, food-healing, and out-of-combat baseline.

Constructors

Link copied to clipboard
public void AdvancedCombatRuntime(PlayerCombatState combatState)

Functions

Link copied to clipboard
public static void clearHudProvider()
Link copied to clipboard
public static void clearPersistedState(Player player)
Removes only state identified by EliteMobs' stable namespaced modifier key.
Link copied to clipboard
public static void installHudProvider(Function<Player, String> provider)
Link copied to clipboard
public static boolean isActive(Player player)
Link copied to clipboard
public void onCakeConsumed(PlayerInteractEvent event)
Link copied to clipboard
public void onCombatEnded(UUID playerId)
Link copied to clipboard
public void onCombatStarted(UUID playerId)
Link copied to clipboard
public void onFoodConsumed(PlayerItemConsumeEvent event)
Link copied to clipboard
public void onFoodLevelChange(FoodLevelChangeEvent event)
Link copied to clipboard
public void onFoodUseAttempt(PlayerInteractEvent event)
Link copied to clipboard
public void onNaturalHealing(EntityRegainHealthEvent event)
Link copied to clipboard
public void onPlayerChangedWorld(PlayerChangedWorldEvent event)
Link copied to clipboard
public void onPlayerDamaged(EntityDamageEvent event)
Link copied to clipboard
public void onPlayerDeath(PlayerDeathEvent event)
Link copied to clipboard
public void onPlayerJoin(PlayerJoinEvent event)
Link copied to clipboard
public void onPlayerQuit(PlayerQuitEvent event)
Link copied to clipboard
public void onPlayerRespawn(PlayerRespawnEvent event)
Link copied to clipboard
public static void prepareForSoftReload()
Keeps the owned max-health modifier in place while /em reload rebuilds the runtime.
Link copied to clipboard
public void shutdown()
Link copied to clipboard
public static void shutdownIfInitialized()
Link copied to clipboard
public void start()