public interface Attributes
Modifier and Type | Method and Description |
---|---|
double |
getAttributeDouble(java.lang.String attributeName)
Returns an attribute value of this Archetype as double.
|
int |
getAttributeInt(java.lang.String attributeName)
Returns an attribute value of this Archetype as int.
|
long |
getAttributeLong(java.lang.String attributeName)
Returns an attribute value of this Archetype as long.
|
java.lang.String |
getAttributeString(java.lang.String attributeName)
Returns the requested attribute value of this GameObject as
String . |
boolean |
hasAttribute(java.lang.String attributeName)
Returns whether an attribute name exists.
|
void |
removeAttribute(java.lang.String attributeName)
Removes the String of an archetype attribute from the objectText.
|
void |
setAttributeInt(java.lang.String attributeName,
int value)
Sets an int value attribute.
|
boolean hasAttribute(@NotNull java.lang.String attributeName)
attributeName
- the attribute name@NotNull java.lang.String getAttributeString(@NotNull java.lang.String attributeName)
String
. The attribute value is first searched in this GameObject. If the
attribute value is not found and this GameObject is not an Archetype
itself, the attribute value is searched in this GameObject's Archetype as
well.attributeName
- the name of the attribute to searchint getAttributeInt(@NotNull java.lang.String attributeName)
attributeName
- the name of the attribute value to return0
(zero) if not foundgetAttributeString(String)
long getAttributeLong(@NotNull java.lang.String attributeName)
attributeName
- the name of the attribute value to return0
(zero) if not foundgetAttributeString(String)
double getAttributeDouble(@NotNull java.lang.String attributeName)
attributeName
- the name of the attribute value to return0.0
(zero) if not foundgetAttributeString(String)
void setAttributeInt(@NotNull java.lang.String attributeName, int value)
attributeName
- the name of the attribute to updatevalue
- the new valuevoid removeAttribute(@NotNull java.lang.String attributeName)
attributeName
- search for "attributeName <string>"