Package lol.pyr.znpcsplus.api.entity
Interface EntityProperty<T>
- Type Parameters:
T
- The type of the value of this property
public interface EntityProperty<T>
Class that represents a unique property
-
Method Summary
Modifier and TypeMethodDescriptionThe default value of this property, if this is provided inPropertyHolder.setProperty(EntityProperty, Object)
as the value the property will be removed from the holdergetName()
boolean
-
Method Details
-
getDefaultValue
T getDefaultValue()The default value of this property, if this is provided inPropertyHolder.setProperty(EntityProperty, Object)
as the value the property will be removed from the holder- Returns:
- The default value of this property
-
getName
String getName()- Returns:
- The name of this property
-
isPlayerModifiable
boolean isPlayerModifiable()- Returns:
- Whether this property can be modified by players using commands
-