Class ExprWorldEnvironment

All Implemented Interfaces:
Converter<org.bukkit.World,org.bukkit.World.Environment>, Debuggable, Expression<org.bukkit.World.Environment>, SyntaxElement

@Name("World Environment") @Description("The environment of a world") @Examples({"if environment of player\'s world is nether:","\tapply fire resistance to player for 10 minutes"}) @Since("2.7") public class ExprWorldEnvironment extends SimplePropertyExpression<org.bukkit.World,org.bukkit.World.Environment>
  • Constructor Details

    • ExprWorldEnvironment

      public ExprWorldEnvironment()
  • Method Details

    • convert

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

      public Class<? extends org.bukkit.World.Environment> 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.World,org.bukkit.World.Environment>