Class Teleporter
java.lang.Object
nl.minetopiasdb.api.objects.Teleporter
Teleporter object.
-
Constructor Summary
ConstructorsConstructorDescriptionTeleporter(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 TypeMethodDescriptiondoublegetCosts()Get costs of this teleporterintGet the pitch of this teleporterGet the goal world name of the teleporterintgetGoalX()Get X coordinate of the teleporting goalintgetGoalY()Get Y coordinate of the teleporting goalintGet the yaw of this teleporterintgetGoalZ()Get Z coordinate of the teleporting goalintGet the minimum level you need to have to use this teleporter.Get the worldname of the teleporter signintgetSignX()Get X coordinate of the signintgetSignY()Get Y coordinate of the signintgetSignZ()Get Z coordinate of the signvoidTeleport 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
-
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:
player- playercityName- cityname as shown in chat
-