Interface HashedItem
- All Superinterfaces:
ItemBase
- All Known Implementing Classes:
HashedStructuredItem
Item that does not hold any real data outside of its id and amount.
Instead, it holds hashes of added data and a set of keys of removed data.
This stores the raw int identifiers instead of data keys to simplify handling across protocols under the assumption that the keys are almost never needed beyond automated id updating.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionit.unimi.dsi.fastutil.ints.Int2IntMap
it.unimi.dsi.fastutil.ints.IntSet
Methods inherited from interface com.viaversion.viaversion.api.minecraft.item.ItemBase
amount, identifier, isEmpty, setAmount, setIdentifier
-
Method Details
-
dataHashesById
it.unimi.dsi.fastutil.ints.Int2IntMap dataHashesById() -
removedDataIds
it.unimi.dsi.fastutil.ints.IntSet removedDataIds()
-