Class CondIsPotionAmbient

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

@Name("Potion Effect - Is Ambient") @Description({"Checks whether a potion effect is ambient.","That is, whether the potion effect produces more, translucent, particles."}) @Example("on entity potion effect modification:\n\tif the potion effect is ambient:\n\t\tmessage \"It\'s particle time!\"\n") @Since("2.14") public class CondIsPotionAmbient extends ch.njol.skript.conditions.base.PropertyCondition<SkriptPotionEffect>
  • Constructor Details

    • CondIsPotionAmbient

      public CondIsPotionAmbient()
  • Method Details

    • register

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

      public boolean check(SkriptPotionEffect potionEffect)
      Specified by:
      check in class ch.njol.skript.conditions.base.PropertyCondition<SkriptPotionEffect>
    • getPropertyName

      protected String getPropertyName()
      Specified by:
      getPropertyName in class ch.njol.skript.conditions.base.PropertyCondition<SkriptPotionEffect>