Package io.gs2.inventory.model
Class ItemModel
java.lang.Object
io.gs2.inventory.model.ItemModel
- All Implemented Interfaces:
IModel,Serializable,Comparable<ItemModel>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanstatic ItemModelfromJson(com.fasterxml.jackson.databind.JsonNode data) getName()inthashCode()voidsetAllowMultipleStacks(Boolean allowMultipleStacks) voidsetItemModelId(String itemModelId) voidsetMetadata(String metadata) voidvoidsetSortValue(Integer sortValue) voidsetStackingLimit(Long stackingLimit) com.fasterxml.jackson.databind.JsonNodetoJson()withAllowMultipleStacks(Boolean allowMultipleStacks) withItemModelId(String itemModelId) withMetadata(String metadata) withSortValue(Integer sortValue) withStackingLimit(Long stackingLimit)
-
Constructor Details
-
ItemModel
public ItemModel()
-
-
Method Details
-
getItemModelId
-
setItemModelId
-
withItemModelId
-
getName
-
setName
-
withName
-
getMetadata
-
setMetadata
-
withMetadata
-
getStackingLimit
-
setStackingLimit
-
withStackingLimit
-
getAllowMultipleStacks
-
setAllowMultipleStacks
-
withAllowMultipleStacks
-
getSortValue
-
setSortValue
-
withSortValue
-
fromJson
-
toJson
public com.fasterxml.jackson.databind.JsonNode toJson() -
compareTo
- Specified by:
compareToin interfaceComparable<ItemModel>
-
hashCode
public int hashCode() -
equals
-