blob: 561833d07d3305954070716e6784862bc7dbadd3 [file] [log] [blame] [raw]
package protocolsupport.protocol.utils.datawatcher;
import io.netty.buffer.ByteBuf;
import protocolsupport.api.ProtocolVersion;
import protocolsupport.utils.Utils;
public abstract class DataWatcherObject<T> {
protected T value;
public abstract void writeToStream(ByteBuf to, ProtocolVersion version, String locale);
public T getValue() {
return value;
}
@Override
public String toString() {
return Utils.toStringAllFields(this);
}
}