Class CondIsInOpenWater

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.entity.Entity>
org.skriptlang.skript.bukkit.fishing.elements.CondIsInOpenWater
All Implemented Interfaces:
Debuggable, SyntaxElement, Predicate<org.bukkit.entity.Entity>, Conditional<org.bukkit.event.Event>

@Name("Is Fish Hook in Open Water") @Description({"Checks whether the fish hook is in open water.","Open water is defined by a 5x4x5 area of water, air and lily pads. If in open water, treasure items may be caught."}) @Examples({"on fish catch:","\tif fish hook is in open water:","\t\tsend \"You will catch a shark soon!\""}) @Events("Fishing") @Since("2.10") public class CondIsInOpenWater extends ch.njol.skript.conditions.base.PropertyCondition<org.bukkit.entity.Entity>
  • Constructor Details

    • CondIsInOpenWater

      public CondIsInOpenWater()
  • Method Details

    • check

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

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