Examples of onUsed()


Examples of games.stendhal.server.entity.mapstuff.useable.FishSource.onUsed()

    fs.onUsed(player);
    assertFalse(player.has("private_text"));
    final Player player2 = PlayerTestHelper.createPlayer("bob");

    player2.getSlot("bag").add(fishingRod);
    fs.onUsed(player2);
    assertEquals("You have started fishing.", player2.events().get(0).get("text"));
  }

}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.