Class ExprSpawnReason

java.lang.Object
ch.njol.skript.lang.util.SimpleExpression<T>
ch.njol.skript.expressions.base.EventValueExpression<org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason>
ch.njol.skript.expressions.ExprSpawnReason
All Implemented Interfaces:
Debuggable, DefaultExpression<org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason>, Expression<org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason>, SyntaxElement

@Name("Spawn Reason") @Description("The <a href=\'classes.html#spawnreason\'>spawn reason</a> in a <a href=\'events.html#spawn\'>spawn</a> event.") @Examples({"on spawn:","\tspawn reason is reinforcements or breeding"}) @Since("2.3") public class ExprSpawnReason extends EventValueExpression<org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason>
  • Constructor Details

    • ExprSpawnReason

      public ExprSpawnReason()
  • Method Details

    • toString

      public String toString(@Nullable org.bukkit.event.Event e, boolean debug)
      Specified by:
      toString in interface Debuggable
      Overrides:
      toString in class EventValueExpression<org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason>
      Parameters:
      e - The event to get information to. This is always null if debug == false.
      debug - If true this should print more information, if false this should print what is shown to the end user
      Returns:
      String representation of this object