Class SlotVisibleIfEntityContained

java.lang.Object
games.stendhal.server.actions.validator.SlotVisibleIfEntityContained
All Implemented Interfaces:
ActionValidator

public class SlotVisibleIfEntityContained extends Object implements ActionValidator
checks that the entity is in a visible slots, or not contained at all
Author:
hendrik
  • Constructor Details

    • SlotVisibleIfEntityContained

      public SlotVisibleIfEntityContained()
  • Method Details

    • validate

      public String validate(Player player, RPAction action, ActionData data)
      validates an RPAction.
      Specified by:
      validate in interface ActionValidator
      Parameters:
      player - Player
      action - RPAction to validate
      data - data about this action
      Returns:
      null if the action is valid; an error message otherwise