Class DimensionManager

java.lang.Object
stawa.vitalstrike.world.DimensionManager

public class DimensionManager extends Object
Manages dimension-specific settings and multipliers for VitalStrike. Handles configuration loading and application of dimension-based rules.
  • Constructor Details

    • DimensionManager

      public DimensionManager(VitalStrike plugin)
      Constructs a new DimensionManager instance.
      Parameters:
      plugin - The VitalStrike plugin instance
  • Method Details

    • isDimensionEnabled

      public boolean isDimensionEnabled(org.bukkit.entity.Entity entity)
      Checks if damage indicators are enabled for the given entity's dimension.
      Parameters:
      entity - The entity to check dimension settings for
      Returns:
      true if damage indicators are enabled in the dimension, false otherwise
    • getDimensionMultiplier

      public double getDimensionMultiplier(org.bukkit.entity.Entity entity)
      Gets the damage multiplier for the given entity's dimnsion.
      Parameters:
      entity - The entity to get the dimension multiplier for
      Returns:
      The damage multiplier for the dimension
    • reload

      public void reload()
      Reloads dimension settings from the configuration. Clears existing settings and reloads from config.