public class BallApi
Ball Api.
Version 1.1
MIT License
Copyright (c) 2017 by Shynixn
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
| Modifier and Type | Method and Description |
|---|---|
static BallMetaController |
getBallMetaController()
Returns the controller for meta managing.
|
static <T extends Ball<Location,Entity,Armorstand>> |
spawnBall()
Creates a new managed ball which spawns at the given location and respawns automatically when the chunk is reloaded. Also, the ball is stored for restarts.
|
static Ball<Location,Entity,Armorstand> |
spawnPlayerBall()
Creates a new managed ball which spawns at the given location and despawns automatically when the owner of the ball left the server, the chunk gets unloaded or changed worlds.
|
static <T extends Ball<Location,Entity,Armorstand>> |
spawnTemporaryBall()
Creates a new managed ball which spawns at the given location and despawns automatically when the chunk is unloaded. Also, the ball gets removed on restarts.
|
static Ball<Location,Entity,Armorstand> |
spawnUnmanagedBall()
Creates a new unManaged ball which leaves all spawn/despawn and event handling of the ball entity to caller of this method.
|
public static BallMetaController getBallMetaController()
Returns the controller for meta managing.
public static <T extends Ball<Location,Entity,Armorstand>> T spawnBall()
Creates a new managed ball which spawns at the given location and respawns automatically when the chunk is reloaded. Also, the ball is stored for restarts.
public static <T extends Ball<Location,Entity,Armorstand>> T spawnTemporaryBall()
Creates a new managed ball which spawns at the given location and despawns automatically when the chunk is unloaded. Also, the ball gets removed on restarts.
public static Ball<Location,Entity,Armorstand> spawnPlayerBall()
Creates a new managed ball which spawns at the given location and despawns automatically when the owner of the ball left the server, the chunk gets unloaded or changed worlds.
public static Ball<Location,Entity,Armorstand> spawnUnmanagedBall()
Creates a new unManaged ball which leaves all spawn/despawn and event handling of the ball entity to caller of this method.