Class CondCanBreed

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.LivingEntity>
org.skriptlang.skript.bukkit.breeding.elements.conditions.CondCanBreed
All Implemented Interfaces:
Debuggable, Simplifiable<Condition>, SyntaxElement, Predicate<org.bukkit.entity.LivingEntity>, Conditional<org.bukkit.event.Event>, RuntimeErrorProducer, SyntaxRuntimeErrorProducer

@Name("Can Breed") @Description("Checks whether or not a living entity can be bred.") @Example("on right click on living entity:\n\tevent-entity can't breed\n\tsend \"Turns out %event-entity% is not breedable. Must be a Skript user!\" to player\n") @Since("2.10") public class CondCanBreed extends ch.njol.skript.conditions.base.PropertyCondition<org.bukkit.entity.LivingEntity>
  • Constructor Details

    • CondCanBreed

      public CondCanBreed()
  • Method Details

    • register

      public static void register(SyntaxRegistry registry)
    • check

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

      public boolean acceptChange(Changer.ChangeMode mode)
      Description copied from class: Condition
      Checks whether this condition can be changed using a specific change mode. The following change modes are not intended to be supported:
      Overrides:
      acceptChange in class Condition
      Parameters:
      mode - The change mode to consider.
      Returns:
      Whether this condition can be changed using mode.
    • change

      protected void change(org.bukkit.entity.LivingEntity entity, boolean breed, Changer.ChangeMode mode)
      Overrides:
      change in class ch.njol.skript.conditions.base.PropertyCondition<org.bukkit.entity.LivingEntity>
    • getPropertyType

      protected ch.njol.skript.conditions.base.PropertyCondition.PropertyType getPropertyType()
      Overrides:
      getPropertyType in class ch.njol.skript.conditions.base.PropertyCondition<org.bukkit.entity.LivingEntity>
    • getPropertyName

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