Class CondIsBaby

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

@Name("Is Baby") @Description("Checks whether or not a living entity is a baby.") @Example("on drink:\n\tevent-entity is a baby\n\tkill event-entity\n") @Since("2.10") public class CondIsBaby extends ch.njol.skript.conditions.base.PropertyCondition<org.bukkit.entity.LivingEntity>
  • Constructor Details

    • CondIsBaby

      public CondIsBaby()
  • 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 baby, Changer.ChangeMode mode)
      Overrides:
      change 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>