Package net.risingworld.api.objects
Class Item.ConstructionItem
java.lang.Object
net.risingworld.api.objects.Item
net.risingworld.api.objects.Item.ConstructionItem
- Enclosing class:
Item
Represents a construction item in the inventory of a player or in a storage box.
This is, for example, a block. Most construction items are represented by a generic "constructionitem", so they have the same item type ID, but only a different construction ID (see
This is, for example, a block. Most construction items are represented by a generic "constructionitem", so they have the same item type ID, but only a different construction ID (see
getConstructionID()
)-
Nested Class Summary
Nested classes/interfaces inherited from class net.risingworld.api.objects.Item
Item.BlueprintItem, Item.ClothingItem, Item.ConstructionItem, Item.ObjectItem
-
Method Summary
Modifier and TypeMethodDescriptionint
getColor()
Gets the (optional) color of this construction item.Gets the definition of the construction that is represented by this item.byte
Gets the type ID of the construction element that is represented by this item.Gets the name of the construction element that is represented by this item.long
getSize()
Methods inherited from class net.risingworld.api.objects.Item
equals, getDefinition, getDurability, getMaxStackSize, getModifier, getName, getStack, getStatus, getTypeID, getValue, getVariant, hashCode, isValid, setDurability, setModifier, setStack, setStatus, setValue
-
Method Details
-
getConstructionID
public byte getConstructionID()Gets the type ID of the construction element that is represented by this item.- Returns:
- the construction/block type ID.
-
getConstructionName
Gets the name of the construction element that is represented by this item.- Returns:
- the internal construction element name.
-
getConstructionDefinition
Gets the definition of the construction that is represented by this item.- Returns:
- the construction definition.
-
getColor
public int getColor()Gets the (optional) color of this construction item.- Returns:
- the optional color, as RGBA integer.
-
getInfoID
public long getInfoID() -
getSize
-