This is based on Mincraft 1.8 (decompiled with MCP) and might not be the case anymore.
The bug
Internally the Damage value of an item (ItemStack) is an int, however in the NBT representation it is a short.
Comments
2
kumasasa
Why is it a problem when the internal data reprensentation is bigger than the interface data type ? When by whatever means the internal data never exceeds the validity range of the interface data type, then the serialization / deserialization process is save.
Why is it a problem when the internal data reprensentation is bigger than the interface data type ?
When by whatever means the internal data never exceeds the validity range of the interface data type, then the serialization / deserialization process is save.