Class PushAction

java.lang.Object
games.stendhal.server.actions.move.PushAction
All Implemented Interfaces:
ActionListener

public class PushAction extends Object implements ActionListener
Pushes an entity which is next to the player one field forward. This can be used to push afk-players away who are blocking a portal for instance.
  • Constructor Details

    • PushAction

      public PushAction()
  • Method Details

    • register

      public static void register()
      registers the action
    • onAction

      public void onAction(Player player, RPAction action)
      Description copied from interface: ActionListener
      processes the requested action.
      Specified by:
      onAction in interface ActionListener
      Parameters:
      player - the caller of the action
      action - the action to be performed