Class TreasureDebuff
java.lang.Object
com.Moshu.TreasureHunt.Components.TreasureDebuff
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 Summary
ConstructorsConstructorDescriptionCreates a new treasure debuff with the specified treasure data. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Applies debuff effects to players near the treasure when triggered.int
List
<org.bukkit.potion.PotionEffect> boolean
boolean
boolean
void
setClicksToDebuff
(int clicksToDebuff) void
setEnabled
(boolean enabled) void
setPotionEffects
(List<org.bukkit.potion.PotionEffect> potionEffects) void
setRespawnMobs
(boolean respawnMobs) void
setShockwave
(boolean shockwave)
-
Constructor Details
-
TreasureDebuff
Creates a new treasure debuff with the specified treasure data.- Parameters:
d
- The treasure data configuration
-
-
Method Details
-
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
-
setPotionEffects
-
debuff
Applies debuff effects to players near the treasure when triggered.- Parameters:
t
- The treasure instance to apply debuffs for
-