mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-18 05:45:09 +00:00
A lot of GOOD API DOCUMENTATION
This commit is contained in:
1 parent
a6c55ca331
commit
319e774518
131 files changed
+3363
-175
No files matched your search
@@ -2,31 +2,61 @@ 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();
|
||||
}
|
||||
Reference in new issue
Block a user