Package noppes.npcs.api.entity.data
Interface IMark
-
public interface IMark
Represents 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 IAvailability
getAvailability()
Returns the availability conditions associated with this mark.int
getColor()
Returns the color value of this mark.int
getType()
Returns the type of this mark.void
setColor(int color)
Sets the color value of this mark.void
setType(int type)
Sets the type of this mark.void
update()
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.
-
-