mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-14 04:59:48 +00:00
63 lines
1.3 KiB
Java
63 lines
1.3 KiB
Java
package noppes.npcs.api.handler.data;
|
|
|
|
import noppes.npcs.api.IPos;
|
|
|
|
/**
|
|
* Represents a transport destination that players can teleport to.
|
|
*/
|
|
public interface ITransportLocation {
|
|
|
|
/** @return the unique transport location ID. */
|
|
int getId();
|
|
|
|
/** @param name the location display name. */
|
|
void setName(String name);
|
|
|
|
/** @return the location display name. */
|
|
String getName();
|
|
|
|
/** @param dimension the dimension ID where this transport is located. */
|
|
void setDimension(int dimension);
|
|
|
|
/** @return the dimension ID. */
|
|
int getDimension();
|
|
|
|
/**
|
|
* Sets the transport type.
|
|
*
|
|
* @param type the type ordinal.
|
|
*/
|
|
void setType(int type);
|
|
|
|
/** @return the transport type ordinal. */
|
|
int getType();
|
|
|
|
/**
|
|
* Sets the transport destination coordinates.
|
|
*
|
|
* @param x the x coordinate.
|
|
* @param y the y coordinate.
|
|
* @param z the z coordinate.
|
|
*/
|
|
void setPosition(int x, int y, int z);
|
|
|
|
/**
|
|
* Sets the transport destination position.
|
|
*
|
|
* @param pos the position.
|
|
*/
|
|
void setPosition(IPos pos);
|
|
|
|
/** @return the x coordinate. */
|
|
double getX();
|
|
|
|
/** @return the y coordinate. */
|
|
double getY();
|
|
|
|
/** @return the z coordinate. */
|
|
double getZ();
|
|
|
|
/** Saves this transport location to disk. */
|
|
void save();
|
|
}
|