Class PotionImmunity

All Implemented Interfaces:
org.bukkit.event.Listener

public class PotionImmunity extends SimpleTrait
Makes player completely unable to be affected by potions (although potions can be whitelisted from this effect).
  • Field Details

  • Constructor Details

    • PotionImmunity

      public PotionImmunity(String name, String description, org.bukkit.ChatColor color, org.bukkit.Material material, Trait.Type type, boolean whitelist, org.bukkit.potion.PotionEffectType... types)
    • PotionImmunity

      public PotionImmunity(ItemIcon icon, Trait.Type type, org.json.simple.JSONArray types, Boolean whitelist)
  • Method Details

    • preventEffect

      public void preventEffect(org.bukkit.event.entity.EntityPotionEffectEvent event)