org.dps.core.server.common
Interface IAsset<A extends IAsset<?>>


public interface IAsset<A extends IAsset<?>>


Method Summary
 java.util.Collection<A> getContainedAssets()
           
 int getFlag()
           
 long getItemID()
           
 long getLocationID()
           
 int getQuantity()
           
 int getRawQuantity()
          Slightly non-intuitive but this value only exists if "isSingleton" is true.
 int getTypeID()
           
 boolean isSingleton()
           
 

Method Detail

getContainedAssets

java.util.Collection<A> getContainedAssets()

getFlag

int getFlag()

getItemID

long getItemID()

getLocationID

long getLocationID()

getQuantity

int getQuantity()

isSingleton

boolean isSingleton()

getTypeID

int getTypeID()

getRawQuantity

int getRawQuantity()
Slightly non-intuitive but this value only exists if "isSingleton" is true. We set this field to 0 if isSingleton is false. When isSingleton is true, this field encodes the only meaning of the old "negative quantity" interpretation. For example, -1 indicates a blueprint original, and -2 indicates a blueprint copy.

Returns:
singleton meta data if isSingleton is true, otherwise 0.