330331332333334335336
/** * Retrieve a serializer for reading and writing ItemStacks stored in a byte array. * @return A instance of the serializer. */ public StreamSerializer getByteArraySerializer() { return new StreamSerializer(); }
104105106107108109110111
* Retrieve a utility class for serializing and deserializing Minecraft objects. * @return Serialization utility class. */ public StreamSerializer getSerializer() { if (serializer == null) serializer = new StreamSerializer(); return serializer; }