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