Interface ITransportLocation


  • public interface ITransportLocation
    Represents a transport destination that players can teleport to.
    • Method Detail

      • getId

        int getId()
        Returns:
        the unique transport location ID.
      • setName

        void setName​(String name)
        Parameters:
        name - the location display name.
      • getName

        String getName()
        Returns:
        the location display name.
      • setDimension

        void setDimension​(int dimension)
        Parameters:
        dimension - the dimension ID where this transport is located.
      • getDimension

        int getDimension()
        Returns:
        the dimension ID.
      • setType

        void setType​(int type)
        Sets the transport type.
        Parameters:
        type - the type ordinal.
      • getType

        int getType()
        Returns:
        the transport type ordinal.
      • setPosition

        void setPosition​(int x,
                         int y,
                         int z)
        Sets the transport destination coordinates.
        Parameters:
        x - the x coordinate.
        y - the y coordinate.
        z - the z coordinate.
      • setPosition

        void setPosition​(IPos pos)
        Sets the transport destination position.
        Parameters:
        pos - the position.
      • getX

        double getX()
        Returns:
        the x coordinate.
      • getY

        double getY()
        Returns:
        the y coordinate.
      • getZ

        double getZ()
        Returns:
        the z coordinate.
      • save

        void save()
        Saves this transport location to disk.