Package net.risingworld.api.objects
Class Item.BlueprintItem
java.lang.Object
net.risingworld.api.objects.Item
net.risingworld.api.objects.Item.BlueprintItem
- Enclosing class:
Item
Represents a blueprint item in the inventory of a player or in a storage box.
A blueprint item is a ready-to-use blueprint (this does not apply to empty blueprints!), i.e a blueprint item representing an actual blueprint.
A blueprint item is a ready-to-use blueprint (this does not apply to empty blueprints!), i.e a blueprint item representing an actual blueprint.
-
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
Gets the total amount of construction elements (e.g blocks) in the blueprint.long
Gets the creation date of the blueprint (unix timestamp in seconds).long
Gets the name of the blueprint.int
Gets the total amount of object elements (i.e furniture, doors etc) in the blueprint.int
Gets the total amount of plants (vegetation) in the blueprint.int
Gets the total amount elements in this blueprint (construction elements, plants and objects).Methods inherited from class net.risingworld.api.objects.Item
destroy, equals, getDefinition, getDurability, getMaxStackSize, getModifier, getName, getStack, getStatus, getTypeID, getValue, getVariant, hashCode, isValid, setDurability, setModifier, setStack, setStatus, setValue
-
Method Details
-
getBlueprintID
public long getBlueprintID() -
getBlueprintName
Gets the name of the blueprint.- Returns:
- the name of the blueprint.
-
getBlueprintCreatorName
-
getBlueprintCreatorUID
-
getBlueprintCreationDate
public long getBlueprintCreationDate()Gets the creation date of the blueprint (unix timestamp in seconds).- Returns:
- a unix timestamp (seconds) representing the creation date of the blueprint (not the item!).
-
getBlueprintConstructionCount
public int getBlueprintConstructionCount()Gets the total amount of construction elements (e.g blocks) in the blueprint.- Returns:
- the total amount of construction elements the blueprint contains.
-
getBlueprintPlantCount
public int getBlueprintPlantCount()Gets the total amount of plants (vegetation) in the blueprint.- Returns:
- the total amount of plants the blueprint contains.
-
getBlueprintObjectCount
public int getBlueprintObjectCount()Gets the total amount of object elements (i.e furniture, doors etc) in the blueprint. This does not include construction elements (like blocks) or plants!- Returns:
- the total amount of objects the blueprint contains.
-
getBlueprintTotalElementCount
public int getBlueprintTotalElementCount()Gets the total amount elements in this blueprint (construction elements, plants and objects).- Returns:
- the total amount of elements the blueprint contains.
-