blob: 843681a6c584001191beea0269aa5db7a3b9ec59 [file] [log] [blame] [raw]
package protocolsupport.protocol.utils.datawatcher.objects;
import io.netty.buffer.ByteBuf;
import protocolsupport.api.ProtocolVersion;
import protocolsupport.protocol.serializer.VarNumberSerializer;
import protocolsupport.protocol.utils.datawatcher.ReadableDataWatcherObject;
public class DataWatcherObjectBlockState extends ReadableDataWatcherObject<Integer> {
@Override
public void readFromStream(ByteBuf from) {
value = VarNumberSerializer.readVarInt(from);
}
@Override
public void writeToStream(ByteBuf to, ProtocolVersion version, String locale) {
VarNumberSerializer.writeVarInt(to, value);
}
}