Package stawa.vitalstrike.world
Class DimensionManager
java.lang.Object
stawa.vitalstrike.world.DimensionManager
Manages dimension-specific settings and multipliers for VitalStrike. Handles configuration
loading and application of dimension-based rules.
-
Constructor Summary
ConstructorsConstructorDescriptionDimensionManager(VitalStrike plugin) Constructs a new DimensionManager instance. -
Method Summary
Modifier and TypeMethodDescriptiondoublegetDimensionMultiplier(org.bukkit.entity.Entity entity) Gets the damage multiplier for the given entity's dimnsion.booleanisDimensionEnabled(org.bukkit.entity.Entity entity) Checks if damage indicators are enabled for the given entity's dimension.voidreload()Reloads dimension settings from the configuration.
-
Constructor Details
-
DimensionManager
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.
-