Class ExprLeashHolder

java.lang.Object
ch.njol.skript.lang.util.SimpleExpression<T>
ch.njol.skript.expressions.base.PropertyExpression<F,​T>
ch.njol.skript.expressions.base.SimplePropertyExpression<org.bukkit.entity.LivingEntity,​org.bukkit.entity.Entity>
ch.njol.skript.expressions.ExprLeashHolder
All Implemented Interfaces:
Converter<org.bukkit.entity.LivingEntity,​org.bukkit.entity.Entity>, Debuggable, Expression<org.bukkit.entity.Entity>, SyntaxElement

@Name("Leash Holder") @Description("The leash holder of a living entity.") @Examples("set {_example} to the leash holder of the target mob") @Since("2.3") public class ExprLeashHolder extends SimplePropertyExpression<org.bukkit.entity.LivingEntity,​org.bukkit.entity.Entity>
  • Constructor Details

    • ExprLeashHolder

      public ExprLeashHolder()
  • Method Details

    • convert

      public @Nullable org.bukkit.entity.Entity convert(org.bukkit.entity.LivingEntity entity)
      Description copied from interface: Converter
      Converts an object from the given to the desired type.
      Specified by:
      convert in interface Converter<org.bukkit.entity.LivingEntity,​org.bukkit.entity.Entity>
      Specified by:
      convert in class SimplePropertyExpression<org.bukkit.entity.LivingEntity,​org.bukkit.entity.Entity>
      Parameters:
      entity - The object to convert.
      Returns:
      the converted object
    • getReturnType

      public Class<org.bukkit.entity.Entity> getReturnType()
      Description copied from interface: Expression
      Gets the return type of this expression.
      Returns:
      A supertype of any objects returned by Expression.getSingle(Event) and the component type of any arrays returned by Expression.getArray(Event)
    • getPropertyName

      protected String getPropertyName()
      Specified by:
      getPropertyName in class SimplePropertyExpression<org.bukkit.entity.LivingEntity,​org.bukkit.entity.Entity>