Constructor and Description |
---|
TARDII() |
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 param)
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.
|
public java.util.HashMap<java.lang.String,java.lang.Integer> getTimelordMap()
TardisAPI
getTimelordMap
in interface TardisAPI
public org.bukkit.Location getTARDISCurrentLocation(int id)
TardisAPI
getTARDISCurrentLocation
in interface TardisAPI
id
- the TARDIS id to retrieve the location forpublic org.bukkit.Location getTARDISCurrentLocation(org.bukkit.entity.Player p)
TardisAPI
getTARDISCurrentLocation
in interface TardisAPI
p
- the Time Lord of the TARDIS to retrieve the location forpublic org.bukkit.Location getTARDISCurrentLocation(java.util.UUID uuid)
TardisAPI
getTARDISCurrentLocation
in interface TardisAPI
uuid
- the UUID of the TARDIS' Time Lord to retrieve the location forpublic org.bukkit.Location getTARDISNextLocation(int id)
TardisAPI
getTARDISNextLocation
in interface TardisAPI
id
- the TARDIS id to retrieve the location forpublic TARDISData getTARDISMapData(int id)
TardisAPI
getTARDISMapData
in interface TardisAPI
id
- the TARDIS id to retrieve the data forpublic org.bukkit.Location getRandomLocation(java.util.List<java.lang.String> worlds, org.bukkit.World.Environment environment, Parameters param)
TardisAPI
getRandomLocation
in interface TardisAPI
worlds
- a List of world names to searchenvironment
- the world type to searchparam
- a Parameters object determining what flags to check for when getting the Locationpublic org.bukkit.Location getRandomLocation(java.util.List<java.lang.String> worlds, org.bukkit.World.Environment environment, org.bukkit.entity.Player p)
TardisAPI
getRandomLocation
in interface TardisAPI
worlds
- a List of world names to searchenvironment
- the world type to searchp
- the player to get the location forpublic org.bukkit.Location getRandomLocation(java.util.List<java.lang.String> worlds, org.bukkit.entity.Player p)
TardisAPI
getRandomLocation
in interface TardisAPI
worlds
- a List of world names to searchp
- the player to get the location forpublic org.bukkit.Location getRandomOverworldLocation(org.bukkit.entity.Player p)
TardisAPI
getRandomOverworldLocation
in interface TardisAPI
p
- the player to get the location forpublic org.bukkit.Location getRandomOverworldLocation(java.lang.String world, org.bukkit.entity.Player p)
TardisAPI
getRandomOverworldLocation
in interface TardisAPI
world
- the world to searchp
- the player to get the location forpublic org.bukkit.Location getRandomNetherLocation(org.bukkit.entity.Player p)
TardisAPI
getRandomNetherLocation
in interface TardisAPI
p
- the player to get the location forpublic org.bukkit.Location getRandomNetherLocation(java.lang.String world, org.bukkit.entity.Player p)
TardisAPI
getRandomNetherLocation
in interface TardisAPI
world
- the world to searchp
- the player to get the location forpublic org.bukkit.Location getRandomEndLocation(org.bukkit.entity.Player p)
TardisAPI
getRandomEndLocation
in interface TardisAPI
p
- the player to get the location forpublic org.bukkit.Location getRandomEndLocation(java.lang.String world, org.bukkit.entity.Player p)
TardisAPI
getRandomEndLocation
in interface TardisAPI
world
- the world to searchp
- the player to get the location forpublic java.util.List<java.lang.String> getWorlds()
TardisAPI
public java.util.List<java.lang.String> getOverWorlds()
TardisAPI
getOverWorlds
in interface TardisAPI
public java.lang.String getTARDISPlayerIsIn(org.bukkit.entity.Player p)
TardisAPI
getTARDISPlayerIsIn
in interface TardisAPI
p
- the player to querypublic java.lang.String getTARDISPlayerIsIn(java.util.UUID uuid)
TardisAPI
getTARDISPlayerIsIn
in interface TardisAPI
uuid
- the UUID of the playerpublic int getIdOfTARDISPlayerIsIn(org.bukkit.entity.Player p)
TardisAPI
getIdOfTARDISPlayerIsIn
in interface TardisAPI
p
- the player to querypublic int getIdOfTARDISPlayerIsIn(java.util.UUID uuid)
TardisAPI
getIdOfTARDISPlayerIsIn
in interface TardisAPI
uuid
- the UUID of the playerpublic java.util.List<java.lang.String> getPlayersInTARDIS(int id)
TardisAPI
getPlayersInTARDIS
in interface TardisAPI
id
- the tardis_id of the TARDISpublic java.util.List<java.lang.String> getPlayersInTARDIS(org.bukkit.entity.Player p)
TardisAPI
getPlayersInTARDIS
in interface TardisAPI
p
- the Player who is the TARDIS' Time Lordpublic java.util.List<java.lang.String> getPlayersInTARDIS(java.util.UUID uuid)
TardisAPI
getPlayersInTARDIS
in interface TardisAPI
uuid
- the UUID of the TARDIS' Time Lordpublic java.util.List<java.lang.String> getTARDISCompanions(int id)
TardisAPI
getTARDISCompanions
in interface TardisAPI
id
- the tardis_id of the TARDISpublic java.util.List<java.lang.String> getTARDISCompanions(org.bukkit.entity.Player p)
TardisAPI
getTARDISCompanions
in interface TardisAPI
p
- the Player who is the TARDIS' Time Lordpublic java.util.List<java.lang.String> getTARDISCompanions(java.util.UUID uuid)
TardisAPI
getTARDISCompanions
in interface TardisAPI
uuid
- the UUID of the TARDIS' Time Lordpublic boolean isPlayerInZeroRoom(org.bukkit.entity.Player p)
TardisAPI
isPlayerInZeroRoom
in interface TardisAPI
p
- the player to querypublic boolean isPlayerInZeroRoom(java.util.UUID uuid)
TardisAPI
isPlayerInZeroRoom
in interface TardisAPI
uuid
- the UUID of the player to querypublic boolean isPlayerGeneticallyModified(org.bukkit.entity.Player p)
TardisAPI
isPlayerGeneticallyModified
in interface TardisAPI
p
- the player to querypublic boolean isPlayerGeneticallyModified(java.util.UUID uuid)
TardisAPI
isPlayerGeneticallyModified
in interface TardisAPI
uuid
- the UUID of the player to querypublic TARDISUtils getUtils()
TardisAPI
public TARDISLocationGetters getLocationUtils()
TardisAPI
getLocationUtils
in interface TardisAPI
public TARDISPluginRespect getRespect()
TardisAPI
getRespect
in interface TardisAPI
public java.util.HashMap<java.lang.String,org.bukkit.inventory.ShapedRecipe> getShapedRecipes()
TardisAPI
getShapedRecipes
in interface TardisAPI
public java.util.HashMap<java.lang.String,org.bukkit.inventory.ShapelessRecipe> getShapelessRecipes()
TardisAPI
getShapelessRecipes
in interface TardisAPI
public java.util.List<java.lang.String> getWallFloorBlocks()
TardisAPI
getWallFloorBlocks
in interface TardisAPI
public boolean setDestination(int id, org.bukkit.Location location, boolean travel)
TardisAPI
setDestination
in interface TardisAPI
id
- the TARDIS id to set the destination forlocation
- the next location to travel totravel
- whether the TARDIS should travel to the destinationpublic boolean setDestination(java.util.UUID uuid, org.bukkit.Location location, boolean travel)
TardisAPI
setDestination
in interface TardisAPI
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 destinationpublic boolean setDestination(org.bukkit.entity.Player player, org.bukkit.Location location, boolean travel)
TardisAPI
setDestination
in interface TardisAPI
player
- the Time Lord (player) to set the destination forlocation
- the next location to travel totravel
- whether the TARDIS should travel to the destinationpublic Tardis getTardisData(int id)
TardisAPI
getTardisData
in interface TardisAPI
id
- the TARDIS id to get information forTardis
data object, or null if no data was foundpublic Tardis getTardisData(java.util.UUID uuid)
TardisAPI
getTardisData
in interface TardisAPI
uuid
- the UUID of the Time Lord (player) of the TARDIS id to get information forTardis
data object, or null if no data was foundpublic Tardis getTardisData(org.bukkit.entity.Player player)
TardisAPI
getTardisData
in interface TardisAPI
player
- the Time Lord (player) of the TARDIS to get information forTardis
data object, or null if no data was foundpublic boolean setChameleonPreset(int id, PRESET preset, boolean rebuild)
TardisAPI
setChameleonPreset
in interface TardisAPI
id
- the TARDIS id to set the destination forpreset
- the exterior preset to userebuild
- whether to rebuild the TARDIS exteriorpublic boolean setChameleonPreset(java.util.UUID uuid, PRESET preset, boolean rebuild)
TardisAPI
setChameleonPreset
in interface TardisAPI
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 exteriorpublic boolean setChameleonPreset(org.bukkit.entity.Player player, PRESET preset, boolean rebuild)
TardisAPI
setChameleonPreset
in interface TardisAPI
player
- the Time Lord (player) of the TARDIS to set the destination forpreset
- the exterior preset to userebuild
- whether to rebuild the TARDIS exteriorpublic void spawnAbandonedTARDIS(org.bukkit.Location location, java.lang.String type, PRESET preset, COMPASS direction) throws TARDISException
TardisAPI
spawnAbandonedTARDIS
in interface TardisAPI
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 serverpublic void spawnAbandonedTARDIS(org.bukkit.Location location)
TardisAPI
spawnAbandonedTARDIS
in interface TardisAPI
location
- the location to spawn the TARDISpublic java.lang.String setDesktopWallAndFloor(int id, java.lang.String wall, java.lang.String floor, boolean artron)
TardisAPI
setDesktopWallAndFloor
in interface TardisAPI
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 Energypublic java.lang.String setDesktopWallAndFloor(java.util.UUID uuid, java.lang.String wall, java.lang.String floor, boolean artron) throws TARDISException
TardisAPI
setDesktopWallAndFloor
in interface TardisAPI
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