Class ExprBossBarFromEntity

java.lang.Object
ch.njol.skript.lang.util.SimpleExpression<org.bukkit.boss.BossBar>
ch.njol.skript.expressions.base.PropertyExpression<org.bukkit.entity.Entity, org.bukkit.boss.BossBar>
ch.njol.skript.expressions.base.SimplePropertyExpression<org.bukkit.entity.Entity, org.bukkit.boss.BossBar>
org.skriptlang.skript.bukkit.bossbar.elements.expressions.ExprBossBarFromEntity
All Implemented Interfaces:
Debuggable, Expression<org.bukkit.boss.BossBar>, Loopable<org.bukkit.boss.BossBar>, Simplifiable<Expression<? extends org.bukkit.boss.BossBar>>, SyntaxElement, Converter<org.bukkit.entity.Entity, org.bukkit.boss.BossBar>, RuntimeErrorProducer, SyntaxRuntimeErrorProducer

@Name("Boss Bar From Boss") @Description("Returns a boss bar from one or more bosses.\n") @Example("on spawn of wither:\n set title of boss bar of event-entity to \"<red>Angry Wither\"\n") @Since("2.16") public class ExprBossBarFromEntity extends ch.njol.skript.expressions.base.SimplePropertyExpression<org.bukkit.entity.Entity, org.bukkit.boss.BossBar>
  • Constructor Details

    • ExprBossBarFromEntity

      public ExprBossBarFromEntity()
  • Method Details

    • register

      public static void register(SyntaxRegistry registry)
    • convert

      @Nullable public @Nullable org.bukkit.boss.BossBar convert(org.bukkit.entity.Entity entity)
      Description copied from interface: Converter
      Converts an object using this Converter.
      Specified by:
      convert in interface Converter<org.bukkit.entity.Entity, org.bukkit.boss.BossBar>
      Specified by:
      convert in class ch.njol.skript.expressions.base.SimplePropertyExpression<org.bukkit.entity.Entity, org.bukkit.boss.BossBar>
      Parameters:
      entity - The object to convert.
      Returns:
      The converted object.
    • getReturnType

      public Class<org.bukkit.boss.BossBar> 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 ch.njol.skript.expressions.base.SimplePropertyExpression<org.bukkit.entity.Entity, org.bukkit.boss.BossBar>