Class CondIsPotionInstant

java.lang.Object
ch.njol.skript.lang.TriggerItem
ch.njol.skript.lang.Statement
ch.njol.skript.lang.Condition
ch.njol.skript.conditions.base.PropertyCondition<org.bukkit.potion.PotionEffectType>
org.skriptlang.skript.bukkit.potion.elements.conditions.CondIsPotionInstant
All Implemented Interfaces:
Debuggable, Simplifiable<Condition>, SyntaxElement, Predicate<org.bukkit.potion.PotionEffectType>, Conditional<org.bukkit.event.Event>, RuntimeErrorProducer, SyntaxRuntimeErrorProducer

@Name("Potion Effect Type - Is Instant") @Description({"Checks whether a potion effect type is instant.","That is, whether the effect happens once/immediately."}) @Example("if any of the potion effects of the player\'s tool are instant:\n\tmessage \"Use your tool for immediate benefits!\"\n") @Since("2.14") public class CondIsPotionInstant extends ch.njol.skript.conditions.base.PropertyCondition<org.bukkit.potion.PotionEffectType>
  • Constructor Details

    • CondIsPotionInstant

      public CondIsPotionInstant()
  • Method Details

    • register

      public static void register(SyntaxRegistry registry, Origin origin)
    • check

      public boolean check(org.bukkit.potion.PotionEffectType potionEffectType)
      Specified by:
      check in class ch.njol.skript.conditions.base.PropertyCondition<org.bukkit.potion.PotionEffectType>
    • getPropertyName

      protected String getPropertyName()
      Specified by:
      getPropertyName in class ch.njol.skript.conditions.base.PropertyCondition<org.bukkit.potion.PotionEffectType>