Interface ScenarioTestPlayerFactory


public interface ScenarioTestPlayerFactory
Builds a mock player for use by ScenarioTestHelper.
Since:
0.1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    despawn(Player player)
    Removes a mock player spawned by this factory.
    spawn(String name, World world, Location location, GameMode gameMode)
    Spawns a mock player.
  • Method Details

    • spawn

      Player spawn(String name, World world, Location location, GameMode gameMode)
      Spawns a mock player.
      Parameters:
      name - the player name
      world - the world to spawn in
      location - where to spawn
      gameMode - the game mode of the player
      Returns:
      the mock player
      Since:
      0.1.0
    • despawn

      void despawn(Player player)
      Removes a mock player spawned by this factory.
      Parameters:
      player - the player to remove
      Since:
      0.1.0