Package com.prineside.tdi2
Class ItemStack
java.lang.Object
com.prineside.tdi2.ItemStack
- All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable
- Direct Known Subclasses:
GameOverOverlay.GameOverItemStack
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
static final int
static final Comparator<ItemStack>
static final Comparator<ItemStack>
static final Comparator<ItemStack>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(int count) cpy()
static ItemStack
fromJson
(com.badlogic.gdx.utils.JsonValue jsonValue) int
getCount()
getItem()
void
read
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) void
setCount
(int count) void
void
toJson
(com.badlogic.gdx.utils.Json json) toString()
void
write
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output)
-
Field Details
-
MAX_COUNT
public static final int MAX_COUNT- See Also:
-
covered
public boolean covered -
SORT_COMPARATOR_KIND
-
SORT_COMPARATOR_RARITY_ASC
-
SORT_COMPARATOR_RARITY_DESC
-
-
Constructor Details
-
ItemStack
-
ItemStack
-
-
Method Details
-
write
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) - Specified by:
write
in interfacecom.esotericsoftware.kryo.KryoSerializable
-
read
public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) - Specified by:
read
in interfacecom.esotericsoftware.kryo.KryoSerializable
-
getCount
public int getCount() -
setCount
public void setCount(int count) -
add
public void add(int count) -
setItem
-
setItem
-
getItem
-
cpy
-
toJson
public void toJson(com.badlogic.gdx.utils.Json json) -
toString
-
fromJson
-