Package noppes.npcs.api.entity.data
Interface IMark
-
public interface IMarkRepresents a mark that can be applied to an entity. A mark holds a type, a color, and availability conditions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IAvailabilitygetAvailability()Returns the availability conditions associated with this mark.intgetColor()Returns the color value of this mark.intgetType()Returns the type of this mark.voidsetColor(int color)Sets the color value of this mark.voidsetType(int type)Sets the type of this mark.voidupdate()Calling this will send the changes you've made to the clients.
-
-
-
Method Detail
-
getAvailability
IAvailability getAvailability()
Returns the availability conditions associated with this mark.- Returns:
- the availability.
-
getColor
int getColor()
Returns the color value of this mark.- Returns:
- the color as an integer.
-
setColor
void setColor(int color)
Sets the color value of this mark.- Parameters:
color- the new color.
-
getType
int getType()
Returns the type of this mark.- Returns:
- the mark type as an integer.
-
setType
void setType(int type)
Sets the type of this mark.- Parameters:
type- the new type.
-
update
void update()
Calling this will send the changes you've made to the clients.
-
-