mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-16 17:44:47 +00:00
Entity API Documentation
This commit is contained in:
1 parent
3593a09d1d
commit
8c2c226d34
21 files changed
+2778
-1142
No files matched your search
@@ -1,21 +1,50 @@
|
||||
package noppes.npcs.api.entity.data;
|
||||
|
||||
import noppes.npcs.api.handler.data.IAvailability;
|
||||
|
||||
public interface IMark {
|
||||
|
||||
public IAvailability getAvailability();
|
||||
|
||||
public int getColor();
|
||||
|
||||
public void setColor(int color);
|
||||
|
||||
public int getType();
|
||||
|
||||
public void setType(int type);
|
||||
|
||||
/**
|
||||
* Calling this will send the changes you've made to the clients
|
||||
*/
|
||||
public void update();
|
||||
}
|
||||
package noppes.npcs.api.entity.data;
|
||||
|
||||
import noppes.npcs.api.handler.data.IAvailability;
|
||||
|
||||
/**
|
||||
* Represents a mark that can be applied to an entity.
|
||||
* A mark holds a type, a color, and availability conditions.
|
||||
*/
|
||||
public interface IMark {
|
||||
|
||||
/**
|
||||
* Returns the availability conditions associated with this mark.
|
||||
*
|
||||
* @return the availability.
|
||||
*/
|
||||
IAvailability getAvailability();
|
||||
|
||||
/**
|
||||
* Returns the color value of this mark.
|
||||
*
|
||||
* @return the color as an integer.
|
||||
*/
|
||||
int getColor();
|
||||
|
||||
/**
|
||||
* Sets the color value of this mark.
|
||||
*
|
||||
* @param color the new color.
|
||||
*/
|
||||
void setColor(int color);
|
||||
|
||||
/**
|
||||
* Returns the type of this mark.
|
||||
*
|
||||
* @return the mark type as an integer.
|
||||
*/
|
||||
int getType();
|
||||
|
||||
/**
|
||||
* Sets the type of this mark.
|
||||
*
|
||||
* @param type the new type.
|
||||
*/
|
||||
void setType(int type);
|
||||
|
||||
/**
|
||||
* Calling this will send the changes you've made to the clients.
|
||||
*/
|
||||
void update();
|
||||
}
|
||||
Reference in new issue
Block a user