Package noppes.npcs.api.roles
Interface IRoleTransporter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetName()ITransportLocationgetTransport()intgetTransportId()booleanhasTransport()voidsetTransport(ITransportLocation location)Assigns a transport location to this NPC.voidunlock(IPlayer<net.minecraft.entity.player.EntityPlayerMP> player, ITransportLocation location)Unlocks the given transport location for the player.
-
-
-
Method Detail
-
getName
String getName()
- Returns:
- the display name of this transporter NPC.
-
getTransportId
int getTransportId()
- Returns:
- the transport location ID assigned to this NPC.
-
unlock
void unlock(IPlayer<net.minecraft.entity.player.EntityPlayerMP> player, ITransportLocation location)
Unlocks the given transport location for the player.- Parameters:
player- the player.location- the transport location to unlock.
-
getTransport
ITransportLocation getTransport()
- Returns:
- the transport location assigned to this NPC, or null if none.
-
hasTransport
boolean hasTransport()
- Returns:
- true if this NPC has a transport location assigned.
-
setTransport
void setTransport(ITransportLocation location)
Assigns a transport location to this NPC.- Parameters:
location- the transport location.
-
-