public interface ResourceHolder
Modifier and Type | Method and Description |
---|---|
ResourceHolder |
add(ResourceHolder other)
Adds the amount in this and the given resource holder together, returning a new holder
with the result.
|
int |
getAmount()
The given amount of this resource.
|
java.lang.String |
getName()
A unique ENUM name representing this resource.
|
int getAmount()
Implementations that use a different data structure should attempt to convert to the integer value.
java.lang.String getName()
ResourceHolder add(ResourceHolder other)
other
- - resource holder to add.