public interface TardisAPI
Modifier and Type | Method and Description |
---|---|
int |
getIdOfTARDISPlayerIsIn(org.bukkit.entity.Player p)
Get the id of the TARDIS a player is in.
|
int |
getIdOfTARDISPlayerIsIn(java.util.UUID uuid)
Get the id of the TARDIS a player is in.
|
TARDISLocationGetters |
getLocationUtils()
Get a handle for the TARDIS utilities.
|
java.util.List<java.lang.String> |
getOverWorlds()
Get a string list of TARDIS enabled overworlds on the server.
|
java.util.List<java.lang.String> |
getPlayersInTARDIS(int id)
Get the players in a TARDIS.
|
java.util.List<java.lang.String> |
getPlayersInTARDIS(org.bukkit.entity.Player p)
Get the players in a TARDIS.
|
java.util.List<java.lang.String> |
getPlayersInTARDIS(java.util.UUID uuid)
Get the players in a TARDIS.
|
org.bukkit.Location |
getRandomEndLocation(org.bukkit.entity.Player p)
Get a random THE_END location from a random world.
|
org.bukkit.Location |
getRandomEndLocation(java.lang.String world,
org.bukkit.entity.Player p)
Get a random THE_END location from a specific world.
|
org.bukkit.Location |
getRandomLocation(java.util.List<java.lang.String> worlds,
org.bukkit.entity.Player p)
Get a random location from a provided list of worlds in a random environment.
|
org.bukkit.Location |
getRandomLocation(java.util.List<java.lang.String> worlds,
org.bukkit.World.Environment environment,
Parameters params)
Get a random location from a provided list of worlds in the specified environment.
|
org.bukkit.Location |
getRandomLocation(java.util.List<java.lang.String> worlds,
org.bukkit.World.Environment environment,
org.bukkit.entity.Player p)
Get a random location from a provided list of worlds in the specified environment.
|
org.bukkit.Location |
getRandomNetherLocation(org.bukkit.entity.Player p)
Get a random OVERWORLD location from a random world.
|
org.bukkit.Location |
getRandomNetherLocation(java.lang.String world,
org.bukkit.entity.Player p)
Get a random NETHER location from a specific world.
|
org.bukkit.Location |
getRandomOverworldLocation(org.bukkit.entity.Player p)
Get a random OVERWORLD location from a random world.
|
org.bukkit.Location |
getRandomOverworldLocation(java.lang.String world,
org.bukkit.entity.Player p)
Get a random OVERWORLD location from a specific world.
|
TARDISPluginRespect |
getRespect()
Get a handle for the TARDIS Plugin Respect.
|
java.util.HashMap<java.lang.String,org.bukkit.inventory.ShapedRecipe> |
getShapedRecipes()
Get the TARDIS shaped recipes.
|
java.util.HashMap<java.lang.String,org.bukkit.inventory.ShapelessRecipe> |
getShapelessRecipes()
Get the TARDIS shapeless recipes.
|
java.util.List<java.lang.String> |
getTARDISCompanions(int id)
Get the companions of a TARDIS.
|
java.util.List<java.lang.String> |
getTARDISCompanions(org.bukkit.entity.Player p)
Get the companions of a TARDIS.
|
java.util.List<java.lang.String> |
getTARDISCompanions(java.util.UUID uuid)
Get the companions of a TARDIS.
|
org.bukkit.Location |
getTARDISCurrentLocation(int id)
Retrieves a TARDIS's current location.
|
org.bukkit.Location |
getTARDISCurrentLocation(org.bukkit.entity.Player p)
Retrieves a TARDIS's current location.
|
org.bukkit.Location |
getTARDISCurrentLocation(java.util.UUID uuid)
Retrieves a TARDIS's current location.
|
Tardis |
getTardisData(int id)
Get information from the database for a TARDIS.
|
Tardis |
getTardisData(org.bukkit.entity.Player player)
Convenience method to get information from the database for a TARDIS.
|
Tardis |
getTardisData(java.util.UUID uuid)
Convenience method to get information from the database for a TARDIS.
|
TARDISData |
getTARDISMapData(int id)
Retries the Current TARDIS location, chameleon preset, powered and siege status for the Dynmap-TARDIS plugin.
|
org.bukkit.Location |
getTARDISNextLocation(int id)
Retrieves a TARDIS's next location.
|
java.lang.String |
getTARDISPlayerIsIn(org.bukkit.entity.Player p)
Get the TARDIS a player is in.
|
java.lang.String |
getTARDISPlayerIsIn(java.util.UUID uuid)
Get the TARDIS a player is in.
|
java.util.HashMap<java.lang.String,java.lang.Integer> |
getTimelordMap()
Fetches a map of TARDIS owners and ids.
|
TARDISUtils |
getUtils()
Get a handle for the TARDIS utilities.
|
java.util.List<java.lang.String> |
getWallFloorBlocks()
Get the TARDIS wall and floor block names.
|
java.util.List<java.lang.String> |
getWorlds()
Get a string list of TARDIS enabled worlds on the server.
|
boolean |
isPlayerGeneticallyModified(org.bukkit.entity.Player p)
Get whether a player is currently genetically modified.
|
boolean |
isPlayerGeneticallyModified(java.util.UUID uuid)
Get whether a player is currently genetically modified.
|
boolean |
isPlayerInZeroRoom(org.bukkit.entity.Player p)
Get whether a player is in a Zero room.
|
boolean |
isPlayerInZeroRoom(java.util.UUID uuid)
Get whether a player is in a Zero room.
|
boolean |
setChameleonPreset(int id,
PRESET preset,
boolean rebuild)
Set the Chameleon Preset for a TARDIS.
|
boolean |
setChameleonPreset(org.bukkit.entity.Player player,
PRESET preset,
boolean rebuild)
Convenience method to set the Chameleon Preset for a TARDIS.
|
boolean |
setChameleonPreset(java.util.UUID uuid,
PRESET preset,
boolean rebuild)
Convenience method to set the Chameleon Preset for a TARDIS.
|
java.lang.String |
setDesktopWallAndFloor(int id,
java.lang.String wall,
java.lang.String floor,
boolean artron)
Change the desktop theme of a TARDIS.
|
java.lang.String |
setDesktopWallAndFloor(java.util.UUID uuid,
java.lang.String wall,
java.lang.String floor,
boolean artron)
Convenience method to change the desktop theme of a TARDIS.
|
boolean |
setDestination(int id,
org.bukkit.Location location,
boolean travel)
Set a TARDIS's next destination.
|
boolean |
setDestination(org.bukkit.entity.Player player,
org.bukkit.Location location,
boolean travel)
Convenience method to set a TARDIS's next destination.
|
boolean |
setDestination(java.util.UUID uuid,
org.bukkit.Location location,
boolean travel)
Convenience method to set a TARDIS's next destination.
|
void |
spawnAbandonedTARDIS(org.bukkit.Location location)
Convenience method to spawn an abandoned TARDIS at the specified Bukkit Location.
|
void |
spawnAbandonedTARDIS(org.bukkit.Location location,
java.lang.String type,
PRESET preset,
COMPASS direction)
Spawn an abandoned TARDIS at the specified Bukkit Location.
|
java.util.HashMap<java.lang.String,java.lang.Integer> getTimelordMap()
org.bukkit.Location getTARDISCurrentLocation(int id)
id
- the TARDIS id to retrieve the location fororg.bukkit.Location getTARDISCurrentLocation(org.bukkit.entity.Player p)
p
- the Time Lord of the TARDIS to retrieve the location fororg.bukkit.Location getTARDISCurrentLocation(java.util.UUID uuid)
uuid
- the UUID of the TARDIS' Time Lord to retrieve the location fororg.bukkit.Location getTARDISNextLocation(int id)
id
- the TARDIS id to retrieve the location forTARDISData getTARDISMapData(int id)
id
- the TARDIS id to retrieve the data fororg.bukkit.Location getRandomLocation(java.util.List<java.lang.String> worlds, org.bukkit.World.Environment environment, Parameters params)
worlds
- a List of world names to searchenvironment
- the world type to searchparams
- a Parameters object determining what flags to check for when getting the Locationorg.bukkit.Location getRandomLocation(java.util.List<java.lang.String> worlds, org.bukkit.World.Environment environment, org.bukkit.entity.Player p)
worlds
- a List of world names to searchenvironment
- the world type to searchp
- the player to get the location fororg.bukkit.Location getRandomLocation(java.util.List<java.lang.String> worlds, org.bukkit.entity.Player p)
worlds
- a List of world names to searchp
- the player to get the location fororg.bukkit.Location getRandomOverworldLocation(org.bukkit.entity.Player p)
p
- the player to get the location fororg.bukkit.Location getRandomOverworldLocation(java.lang.String world, org.bukkit.entity.Player p)
world
- the world to searchp
- the player to get the location fororg.bukkit.Location getRandomNetherLocation(org.bukkit.entity.Player p)
p
- the player to get the location fororg.bukkit.Location getRandomNetherLocation(java.lang.String world, org.bukkit.entity.Player p)
world
- the world to searchp
- the player to get the location fororg.bukkit.Location getRandomEndLocation(org.bukkit.entity.Player p)
p
- the player to get the location fororg.bukkit.Location getRandomEndLocation(java.lang.String world, org.bukkit.entity.Player p)
world
- the world to searchp
- the player to get the location forjava.util.List<java.lang.String> getWorlds()
java.util.List<java.lang.String> getOverWorlds()
java.lang.String getTARDISPlayerIsIn(org.bukkit.entity.Player p)
p
- the player to queryjava.lang.String getTARDISPlayerIsIn(java.util.UUID uuid)
uuid
- the UUID of the playerint getIdOfTARDISPlayerIsIn(org.bukkit.entity.Player p)
p
- the player to queryint getIdOfTARDISPlayerIsIn(java.util.UUID uuid)
uuid
- the UUID of the playerjava.util.List<java.lang.String> getPlayersInTARDIS(int id)
id
- the tardis_id of the TARDISjava.util.List<java.lang.String> getPlayersInTARDIS(org.bukkit.entity.Player p)
p
- the Player who is the TARDIS' Time Lordjava.util.List<java.lang.String> getPlayersInTARDIS(java.util.UUID uuid)
uuid
- the UUID of the TARDIS' Time Lordjava.util.List<java.lang.String> getTARDISCompanions(int id)
id
- the tardis_id of the TARDISjava.util.List<java.lang.String> getTARDISCompanions(org.bukkit.entity.Player p)
p
- the Player who is the TARDIS' Time Lordjava.util.List<java.lang.String> getTARDISCompanions(java.util.UUID uuid)
uuid
- the UUID of the TARDIS' Time Lordboolean isPlayerInZeroRoom(org.bukkit.entity.Player p)
p
- the player to queryboolean isPlayerInZeroRoom(java.util.UUID uuid)
uuid
- the UUID of the player to queryboolean isPlayerGeneticallyModified(org.bukkit.entity.Player p)
p
- the player to queryboolean isPlayerGeneticallyModified(java.util.UUID uuid)
uuid
- the UUID of the player to queryTARDISUtils getUtils()
TARDISLocationGetters getLocationUtils()
TARDISPluginRespect getRespect()
java.util.HashMap<java.lang.String,org.bukkit.inventory.ShapedRecipe> getShapedRecipes()
java.util.HashMap<java.lang.String,org.bukkit.inventory.ShapelessRecipe> getShapelessRecipes()
java.util.List<java.lang.String> getWallFloorBlocks()
boolean setDestination(int id, org.bukkit.Location location, boolean travel)
id
- the TARDIS id to set the destination forlocation
- the next location to travel totravel
- whether the TARDIS should travel to the destinationboolean setDestination(java.util.UUID uuid, org.bukkit.Location location, boolean travel)
uuid
- the UUID of the Time Lord (player) to set the destination forlocation
- the next location to travel totravel
- whether the TARDIS should travel to the destinationboolean setDestination(org.bukkit.entity.Player player, org.bukkit.Location location, boolean travel)
player
- the Time Lord (player) to set the destination forlocation
- the next location to travel totravel
- whether the TARDIS should travel to the destinationTardis getTardisData(int id)
id
- the TARDIS id to get information forTardis
data object, or null if no data was foundTardis getTardisData(java.util.UUID uuid)
uuid
- the UUID of the Time Lord (player) of the TARDIS id to get information forTardis
data object, or null if no data was foundTardis getTardisData(org.bukkit.entity.Player player)
player
- the Time Lord (player) of the TARDIS to get information forTardis
data object, or null if no data was foundboolean setChameleonPreset(int id, PRESET preset, boolean rebuild)
id
- the TARDIS id to set the destination forpreset
- the exterior preset to userebuild
- whether to rebuild the TARDIS exteriorboolean setChameleonPreset(java.util.UUID uuid, PRESET preset, boolean rebuild)
uuid
- the UUID of the Time Lord (player) of the TARDIS to set the destination forpreset
- the exterior preset to userebuild
- whether to rebuild the TARDIS exteriorboolean setChameleonPreset(org.bukkit.entity.Player player, PRESET preset, boolean rebuild)
player
- the Time Lord (player) of the TARDIS to set the destination forpreset
- the exterior preset to userebuild
- whether to rebuild the TARDIS exteriorvoid spawnAbandonedTARDIS(org.bukkit.Location location, java.lang.String type, PRESET preset, COMPASS direction) throws TARDISException
location
- the location to spawn the TARDIStype
- the type of interior to buildpreset
- the Chameleon preset of the exteriordirection
- the direction of the TARDIS exterior ( this is the direction the player is facing when looking
at the door)TARDISException
- if the console type is not valid or TARDIS abandonment is disabled on the servervoid spawnAbandonedTARDIS(org.bukkit.Location location)
location
- the location to spawn the TARDISjava.lang.String setDesktopWallAndFloor(int id, java.lang.String wall, java.lang.String floor, boolean artron)
id
- the TARDIS id to change the desktop forwall
- the wall block type to change tofloor
- the floor block type to change toartron
- whether to check for and charge Artron Energyjava.lang.String setDesktopWallAndFloor(java.util.UUID uuid, java.lang.String wall, java.lang.String floor, boolean artron) throws TARDISException
uuid
- the UUID of the Time Lord (player) of the TARDIS to change the desktop forwall
- the wall block type to change tofloor
- the floor block type to change toartron
- whether to check for and charge Artron EnergyTARDISException
- if the wall or floor type is not valid