Package nl.minetopiasdb.api.objects
Class Teleporter
java.lang.Object
nl.minetopiasdb.api.objects.Teleporter
Teleporter object.
-
Constructor Summary
ConstructorDescriptionTeleporter
(String signWorld, int signX, int signY, int signZ, String goalWorld, int goalX, int goalY, int goalZ, double costs, int minLevel, int pitch, int yaw) -
Method Summary
Modifier and TypeMethodDescriptiondouble
getCosts()
Get costs of this teleporterint
Get the pitch of this teleporterGet the goal world name of the teleporterint
getGoalX()
Get X coordinate of the teleporting goalint
getGoalY()
Get Y coordinate of the teleporting goalint
Get the yaw of this teleporterint
getGoalZ()
Get Z coordinate of the teleporting goalint
Get the minimum level you need to have to use this teleporter.Get the worldname of the teleporter signint
getSignX()
Get X coordinate of the signint
getSignY()
Get Y coordinate of the signint
getSignZ()
Get Z coordinate of the signvoid
Teleport provided player to the teleporter location
-
Constructor Details
-
Teleporter
-
-
Method Details
-
getSignWorld
Get the worldname of the teleporter sign- Returns:
- worldname of teleporter sign
-
getSignX
public int getSignX()Get X coordinate of the sign- Returns:
- x coordinate of sign
-
getSignY
public int getSignY()Get Y coordinate of the sign- Returns:
- y coordinate of sign
-
getSignZ
public int getSignZ()Get Z coordinate of the sign- Returns:
- z coordinate of sign
-
getGoalWorld
Get the goal world name of the teleporter- Returns:
- goal world name
-
getGoalX
public int getGoalX()Get X coordinate of the teleporting goal- Returns:
- x coordinate
-
getGoalY
public int getGoalY()Get Y coordinate of the teleporting goal- Returns:
- y coordinate
-
getGoalZ
public int getGoalZ()Get Z coordinate of the teleporting goal- Returns:
- z coordinate
-
getGoalYaw
public int getGoalYaw()Get the yaw of this teleporter- Returns:
- yaw
-
getGoalPitch
public int getGoalPitch()Get the pitch of this teleporter- Returns:
- pitch
-
getCosts
public double getCosts()Get costs of this teleporter- Returns:
- costs of teleporter
-
getMinLevel
public int getMinLevel()Get the minimum level you need to have to use this teleporter.- Returns:
- minimum level for this teleporter
-
teleport
Teleport provided player to the teleporter location- Parameters:
cityName
- cityname as shown in chatplayer
- player
-