Package com.prineside.tdi2.items
Class CaseKeyItem
java.lang.Object
com.prineside.tdi2.Item
com.prineside.tdi2.items.CaseKeyItem
- All Implemented Interfaces:
KryoSerializable
,Item.UsableItem
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
Nested 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 TypeMethodDescriptionvoid
addSellItems
(Array<ItemStack> toStacks) boolean
boolean
generateIcon
(float size, boolean withShadow) getData()
getTitle()
getType()
boolean
boolean
boolean
void
boolean
useItem()
boolean
Methods inherited from class com.prineside.tdi2.Item
addSellItemsMultiplied, affectedByLuckyWheelMultiplier, canBeUnpacked, cpy, fillItemCreationForm, fillWithInfo, fromJson, getDataOfType, getIconDrawable, getPriceInAcceleratorsForResearchReset, getSortingScore, openPack, read, toJsonString, write
-
Field Details
-
caseType
-
-
Method Details
-
isAffectedByDoubleGain
public boolean isAffectedByDoubleGain()- Overrides:
isAffectedByDoubleGain
in classItem
-
from
-
canBeSold
public boolean canBeSold() -
getAnalyticName
- Overrides:
getAnalyticName
in classItem
-
addSellItems
- Overrides:
addSellItems
in classItem
-
getData
-
getType
-
getCategory
- Specified by:
getCategory
in classItem
-
getSubcategory
- Specified by:
getSubcategory
in classItem
-
getTitle
-
getDescription
- Specified by:
getDescription
in classItem
-
sameAs
-
getRarity
-
toJson
-
generateIcon
- Specified by:
generateIcon
in classItem
-
isCountable
public boolean isCountable()- Specified by:
isCountable
in classItem
- Returns:
- true if ItemStack.count is being accounted for
-
autoUseWhenAdded
public boolean autoUseWhenAdded()- Specified by:
autoUseWhenAdded
in interfaceItem.UsableItem
- Returns:
- true if item should be automatically used when added to the inventory
-
useItem
public boolean useItem()- Specified by:
useItem
in interfaceItem.UsableItem
- Returns:
- true if item can be used and consumed
-
useItemNeedsConfirmation
public boolean useItemNeedsConfirmation()- Specified by:
useItemNeedsConfirmation
in interfaceItem.UsableItem
- Returns:
- true if player should be asked before item can be used (misclick protection)
-