DataFixerUpper icon indicating copy to clipboard operation
DataFixerUpper copied to clipboard

Expand the set of primitive codecs and operations in DynamicOps

Open RainWarrior opened this issue 4 years ago • 1 comments

Figure out what is the strategy for adding a new primitive codec/serialization operation, and implement missing ones

RainWarrior avatar Apr 26 '21 13:04 RainWarrior

Ability to differentiate between different numerical types (byte, short, int, etc.) on deserialization would be nice to have (instead of getNumberValue have different getIntegerValue, getDoubleValue, getShortValue, etc.). Currently, there are only operations to differentiate between them on serialization (createDouble, createFloat). It requires encoding number type together with value (like NBT) or having a format where all numbers are encoded and decoded the same way (like GSON does I assume) which is not always possible or desirable

slava110 avatar May 07 '25 13:05 slava110