Class HashedStructuredItem
java.lang.Object
com.viaversion.viaversion.api.minecraft.item.HashedStructuredItem
- All Implemented Interfaces:
HashedItem
,ItemBase
-
Constructor Summary
ConstructorsConstructorDescriptionHashedStructuredItem
(int identifier, int amount) HashedStructuredItem
(int identifier, int amount, it.unimi.dsi.fastutil.ints.Int2IntMap dataHashes, it.unimi.dsi.fastutil.ints.IntSet removedData) -
Method Summary
Modifier and TypeMethodDescriptionint
amount()
Returns the item amount.it.unimi.dsi.fastutil.ints.Int2IntMap
static HashedStructuredItem
empty()
boolean
int
hashCode()
int
Returns the item identifier.it.unimi.dsi.fastutil.ints.IntSet
void
setAmount
(int amount) Returns the item amount.void
setIdentifier
(int identifier) Sets the item identifier.toString()
-
Constructor Details
-
HashedStructuredItem
public HashedStructuredItem(int identifier, int amount) -
HashedStructuredItem
public HashedStructuredItem(int identifier, int amount, it.unimi.dsi.fastutil.ints.Int2IntMap dataHashes, it.unimi.dsi.fastutil.ints.IntSet removedData)
-
-
Method Details
-
empty
-
identifier
public int identifier()Description copied from interface:ItemBase
Returns the item identifier.- Specified by:
identifier
in interfaceItemBase
- Returns:
- item identifier
-
setIdentifier
public void setIdentifier(int identifier) Description copied from interface:ItemBase
Sets the item identifier.- Specified by:
setIdentifier
in interfaceItemBase
- Parameters:
identifier
- item identifier
-
amount
public int amount()Description copied from interface:ItemBase
Returns the item amount. -
setAmount
public void setAmount(int amount) Description copied from interface:ItemBase
Returns the item amount. -
dataHashesById
public it.unimi.dsi.fastutil.ints.Int2IntMap dataHashesById()- Specified by:
dataHashesById
in interfaceHashedItem
-
removedDataIds
public it.unimi.dsi.fastutil.ints.IntSet removedDataIds()- Specified by:
removedDataIds
in interfaceHashedItem
-
equals
-
hashCode
public int hashCode() -
toString
-