Class ExprMoonPhase

All Implemented Interfaces:
Converter<org.bukkit.World,io.papermc.paper.world.MoonPhase>, Debuggable, Expression<io.papermc.paper.world.MoonPhase>, SyntaxElement

@Name("Moon Phase") @Description("The current moon phase of a world.") @Examples({"if moon phase of player\'s world is full moon:","\tsend \"Watch for the wolves!\""}) @Since("2.7") @RequiredPlugins("Paper 1.16+") public class ExprMoonPhase extends SimplePropertyExpression<org.bukkit.World,io.papermc.paper.world.MoonPhase>
  • Constructor Details

    • ExprMoonPhase

      public ExprMoonPhase()
  • Method Details

    • convert

      public @Nullable io.papermc.paper.world.MoonPhase 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,io.papermc.paper.world.MoonPhase>
      Specified by:
      convert in class SimplePropertyExpression<org.bukkit.World,io.papermc.paper.world.MoonPhase>
      Parameters:
      world - The object to convert.
      Returns:
      the converted object
    • getReturnType

      public Class<? extends io.papermc.paper.world.MoonPhase> 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,io.papermc.paper.world.MoonPhase>