Interface StructureOwnedItemType
- All Known Implementing Classes:
GenericItemType
public interface StructureOwnedItemType
-
Method Summary
Modifier and TypeMethodDescriptiongetOwnedItem(ItemIdentity itemId, long structureId, boolean copyIfSame) Associate an item with a structure, or create a copy of the given item and associate the copy with the structure.
-
Method Details
-
getOwnedItem
@NotNull ItemIdentity getOwnedItem(@NotNull ItemIdentity itemId, long structureId, boolean copyIfSame) throws StructureException Associate an item with a structure, or create a copy of the given item and associate the copy with the structure.- Parameters:
itemId- The item ID.structureId- The structure ID.copyIfSame- Create a copy of the item even if it is already associated with the given structure.- Returns:
- The ID of the associated item.
- Throws:
StructureException
-