Package io.github.djtpj.trait.traits
Class PermanentEffect
java.lang.Object
io.github.djtpj.trait.Trait
io.github.djtpj.trait.SimpleTrait
io.github.djtpj.trait.traits.RunnableSimpleTrait
io.github.djtpj.trait.traits.PermanentEffect
- All Implemented Interfaces:
org.bukkit.event.Listener
A PermanentEffect is an ability that constantly applies a potion effect
-
Nested Class Summary
Nested classes/interfaces inherited from class io.github.djtpj.trait.Trait
Trait.Type
-
Field Summary
FieldsFields inherited from class io.github.djtpj.trait.Trait
icon, playerTraitMap, type
-
Constructor Summary
ConstructorsConstructorDescriptionPermanentEffect
(ItemIcon icon, Trait.Type type, String effectType, Long amplifier) PermanentEffect
(ItemIcon icon, Trait.Type type, org.bukkit.potion.PotionEffectType effectType, int amplifier) PermanentEffect
(String name, String description, org.bukkit.ChatColor color, Trait.Type type, org.bukkit.potion.PotionEffectType effectType, int amplifier) PermanentEffect
(org.bukkit.potion.PotionEffectType effectType, int amplifier) -
Method Summary
Methods inherited from class io.github.djtpj.trait.traits.RunnableSimpleTrait
getApplicablePlayers
-
Field Details
-
ID
- See Also:
-
-
Constructor Details
-
PermanentEffect
public PermanentEffect(org.bukkit.potion.PotionEffectType effectType, int amplifier) -
PermanentEffect
public PermanentEffect(String name, String description, org.bukkit.ChatColor color, Trait.Type type, org.bukkit.potion.PotionEffectType effectType, int amplifier) -
PermanentEffect
public PermanentEffect(ItemIcon icon, Trait.Type type, org.bukkit.potion.PotionEffectType effectType, int amplifier) -
PermanentEffect
-
-
Method Details
-
onTick
protected void onTick(org.bukkit.entity.Player player) Description copied from class:RunnableSimpleTrait
The method to run on each player every ten ticks- Specified by:
onTick
in classRunnableSimpleTrait
- Parameters:
player
- The player to run the method on
-
onDisable
protected void onDisable(org.bukkit.entity.Player player)
-