public interface PlayersFactory
Modifier and Type | Method and Description |
---|---|
PersistentDataContainer |
createPersistentDataContainer(SuperiorPlayer superiorPlayer,
PersistentDataContainer original)
Create a new persistent data container for a player.
|
SuperiorPlayer |
createPlayer(SuperiorPlayer original)
Create a new player wrapper.
|
default PlayerTeleportAlgorithm |
createPlayerTeleportAlgorithm(SuperiorPlayer superiorPlayer)
|
PlayerTeleportAlgorithm |
createPlayerTeleportAlgorithm(SuperiorPlayer superiorPlayer,
PlayerTeleportAlgorithm original)
Create a teleport algorithm for a player.
|
SuperiorPlayer createPlayer(SuperiorPlayer original)
original
- The original player wrapper that was created.@Deprecated default PlayerTeleportAlgorithm createPlayerTeleportAlgorithm(SuperiorPlayer superiorPlayer)
superiorPlayer
- The player to set the algorithm to.PlayerTeleportAlgorithm createPlayerTeleportAlgorithm(SuperiorPlayer superiorPlayer, PlayerTeleportAlgorithm original)
superiorPlayer
- The player to set the algorithm to.original
- The original teleport algorithm.PersistentDataContainer createPersistentDataContainer(SuperiorPlayer superiorPlayer, PersistentDataContainer original)
superiorPlayer
- The player to create the container for.original
- The original persistent data container that was created.