Class StorageItem
- java.lang.Object
-
- de.extio.spacecraft.shared.model.entity.builtin.live.StorageItem
-
public class StorageItem extends Object
A storage item represents a stored entity
-
-
Constructor Summary
Constructors Constructor Description StorageItem()
StorageItem(UUID entityDefId, int entityDefIdx, int amount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
addAmount(int amount)
int
getAmount()
UUID
getEntityDefId()
int
getEntityDefIdx()
void
setAmount(int amount)
void
setEntityDefId(UUID entityDefId)
void
setEntityDefIdx(int entityDefIdx)
-
-
-
Constructor Detail
-
StorageItem
public StorageItem()
-
StorageItem
public StorageItem(UUID entityDefId, int entityDefIdx, int amount)
-
-
Method Detail
-
addAmount
public int addAmount(int amount)
-
getEntityDefId
public UUID getEntityDefId()
-
setEntityDefId
public void setEntityDefId(UUID entityDefId)
-
getEntityDefIdx
public int getEntityDefIdx()
-
setEntityDefIdx
public void setEntityDefIdx(int entityDefIdx)
-
getAmount
public int getAmount()
-
setAmount
public void setAmount(int amount)
-
-