Package noppes.npcs.api.handler.data
Interface ITransportLocation
-
public interface ITransportLocationRepresents a transport destination that players can teleport to.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetDimension()intgetId()StringgetName()intgetType()doublegetX()doublegetY()doublegetZ()voidsave()Saves this transport location to disk.voidsetDimension(int dimension)voidsetName(String name)voidsetPosition(int x, int y, int z)Sets the transport destination coordinates.voidsetPosition(IPos pos)Sets the transport destination position.voidsetType(int type)Sets the transport type.
-
-
-
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.
-
-