blob: d60e0ba622ad42f28969ae0041a4b6c044286380 [file] [log] [blame] [raw]
package protocolsupport.protocol.utils.datawatcher.objects;
import io.netty.buffer.ByteBuf;
import protocolsupport.api.ProtocolVersion;
import protocolsupport.protocol.utils.datawatcher.ReadableDataWatcherObject;
public class DataWatcherObjectBoolean extends ReadableDataWatcherObject<Boolean> {
@Override
public void readFromStream(ByteBuf from, ProtocolVersion version, String locale) {
value = from.readBoolean();
}
@Override
public void writeToStream(ByteBuf to, ProtocolVersion version, String locale) {
to.writeBoolean(value);
}
}