Class Teleporter

java.lang.Object
nl.minetopiasdb.api.objects.Teleporter

public class Teleporter extends Object
Teleporter object.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Teleporter​(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 Type
    Method
    Description
    double
    Get costs of this teleporter
    int
    Get the pitch of this teleporter
    Get the goal world name of the teleporter
    int
    Get X coordinate of the teleporting goal
    int
    Get Y coordinate of the teleporting goal
    int
    Get the yaw of this teleporter
    int
    Get Z coordinate of the teleporting goal
    int
    Get the minimum level you need to have to use this teleporter.
    Get the worldname of the teleporter sign
    int
    Get X coordinate of the sign
    int
    Get Y coordinate of the sign
    int
    Get Z coordinate of the sign
    void
    teleport​(org.bukkit.entity.Player player, String cityName)
    Teleport provided player to the teleporter location

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Teleporter

      public Teleporter(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 Details

    • getSignWorld

      public String 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

      public String 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

      public void teleport(org.bukkit.entity.Player player, String cityName)
      Teleport provided player to the teleporter location
      Parameters:
      cityName - cityname as shown in chat
      player - player