Package com.prineside.tdi2.items
Class CaseItem
java.lang.Object
com.prineside.tdi2.Item
com.prineside.tdi2.items.CaseItem
- All Implemented Interfaces:
KryoSerializable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.prineside.tdi2.Item
Item.D, Item.Factory<T extends Item>, Item.UsableItem -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleancpy()voidfillItemCreationForm(ItemCreationOverlay overlay) generateIcon(float size, boolean withShadow) intintintgetColor()getData()floatintint[]getTitle()getType()booleanbooleanopenPack(ProgressManager.InventoryStatistics inventoryStatistics) voidbooleanvoidvoidMethods inherited from class com.prineside.tdi2.Item
addSellItems, addSellItemsMultiplied, affectedByLuckyWheelMultiplier, canBeSold, fillWithInfo, fromJson, getDataOfType, getPriceInAcceleratorsForResearchReset, getSortingScore, toJsonString
-
Field Details
-
caseType
-
containsPapers
public boolean containsPapers
-
-
Method Details
-
write
- Specified by:
writein interfaceKryoSerializable- Overrides:
writein classItem
-
read
- Specified by:
readin interfaceKryoSerializable- Overrides:
readin classItem
-
isAffectedByDoubleGain
public boolean isAffectedByDoubleGain()- Overrides:
isAffectedByDoubleGainin classItem
-
from
-
getData
-
getAnalyticName
- Overrides:
getAnalyticNamein classItem
-
getColor
-
getItemCount
public int getItemCount() -
getItemRarityChances
public int[] getItemRarityChances() -
getGuaranteedItemType
-
getCasePriceInKeys
public int getCasePriceInKeys() -
getCasePriceInPapers
public int getCasePriceInPapers() -
getCasePriceInAccelerators
public int getCasePriceInAccelerators() -
cpy
-
canBeUnpacked
public boolean canBeUnpacked()- Overrides:
canBeUnpackedin classItem
-
openPack
-
isCountable
public boolean isCountable()- Specified by:
isCountablein classItem- Returns:
- true if ItemStack.count is being accounted for
-
getType
-
getCategory
- Specified by:
getCategoryin classItem
-
getSubcategory
- Specified by:
getSubcategoryin classItem
-
getTitle
-
getDecryptionTime
public float getDecryptionTime() -
getDescription
- Specified by:
getDescriptionin classItem
-
getRarity
-
sameAs
-
toJson
-
getIconDrawable
- Overrides:
getIconDrawablein classItem
-
generateIcon
- Specified by:
generateIconin classItem
-