Class TreasureDebuff

java.lang.Object
com.Moshu.TreasureHunt.Components.TreasureDebuff

public class TreasureDebuff extends Object
Represents a debuff system that can be applied to players during treasure hunts. This class manages negative effects that can be triggered when players interact with treasures, including potion effects, shockwaves, and mob respawning.
  • Constructor Details

    • TreasureDebuff

      public TreasureDebuff(TreasureData d)
      Creates a new treasure debuff with the specified treasure data.
      Parameters:
      d - The treasure data configuration
  • Method Details

    • getTreasureData

      public TreasureData getTreasureData()
    • isEnabled

      public boolean isEnabled()
    • setEnabled

      public void setEnabled(boolean enabled)
    • getClicksToDebuff

      public int getClicksToDebuff()
    • setClicksToDebuff

      public void setClicksToDebuff(int clicksToDebuff)
    • isShockwave

      public boolean isShockwave()
    • setShockwave

      public void setShockwave(boolean shockwave)
    • isRespawnMobs

      public boolean isRespawnMobs()
    • setRespawnMobs

      public void setRespawnMobs(boolean respawnMobs)
    • getPotionEffects

      public List<org.bukkit.potion.PotionEffect> getPotionEffects()
    • setPotionEffects

      public void setPotionEffects(List<org.bukkit.potion.PotionEffect> potionEffects)
    • debuff

      public void debuff(Treasure t)
      Applies debuff effects to players near the treasure when triggered.
      Parameters:
      t - The treasure instance to apply debuffs for