mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-16 13:04:47 +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,17 +2,50 @@ package noppes.npcs.api.handler;
|
||||
|
||||
import noppes.npcs.api.handler.data.ITransportLocation;
|
||||
|
||||
/**
|
||||
* Tracks which transport locations a player has unlocked.
|
||||
*/
|
||||
public interface IPlayerTransportData {
|
||||
|
||||
/**
|
||||
* @param id the transport location ID.
|
||||
* @return true if the player has unlocked this transport.
|
||||
*/
|
||||
boolean hasTransport(int id);
|
||||
|
||||
/**
|
||||
* Unlocks a transport location by ID.
|
||||
*
|
||||
* @param id the transport location ID.
|
||||
*/
|
||||
void addTransport(int id);
|
||||
|
||||
/**
|
||||
* Unlocks the given transport location.
|
||||
*
|
||||
* @param location the transport location.
|
||||
*/
|
||||
void addTransport(ITransportLocation location);
|
||||
|
||||
/**
|
||||
* Returns the transport location with the given ID.
|
||||
*
|
||||
* @param id the transport location ID.
|
||||
* @return the transport location, or null if not found.
|
||||
*/
|
||||
ITransportLocation getTransport(int id);
|
||||
|
||||
/**
|
||||
* Returns all unlocked transport locations for the player.
|
||||
*
|
||||
* @return an array of transport locations.
|
||||
*/
|
||||
ITransportLocation[] getTransports();
|
||||
|
||||
/**
|
||||
* Removes an unlocked transport location by ID.
|
||||
*
|
||||
* @param id the transport location ID.
|
||||
*/
|
||||
void removeTransport(int id);
|
||||
}
|
||||
Reference in new issue
Block a user