Package games.stendhal.client.entity

Examples of games.stendhal.client.entity.Chest


   */
  @Override
  protected void buildActions(final List<String> list) {
    super.buildActions(list);

    Chest chest = (Chest) entity;
    if (chest != null && chest.isOpen()) {
      list.add(ActionType.INSPECT.getRepresentation());
      list.add(ActionType.CLOSE.getRepresentation());
    } else {
      list.add(ActionType.OPEN.getRepresentation());
    }
View Full Code Here


  @Override
  protected void update() {
    super.update();

    if (openChanged) {
      Chest chest = (Chest) entity;
      if (chest.isOpen()) {
        // we're wanted to open this?
        if (requestOpen) {
          showWindow();
        }
      } else {
View Full Code Here

TOP

Related Classes of games.stendhal.client.entity.Chest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.