blob: 839f4ff637c3b14b2b39db0796737ca3c95e37f2 [file] [log] [blame] [raw]
package protocolsupport.protocol.utils.datawatcher;
import java.io.IOException;
import protocolsupport.api.ProtocolVersion;
import protocolsupport.protocol.PacketDataSerializer;
import protocolsupportbuildprocessor.annotations.NeedsNoArgConstructor;
@NeedsNoArgConstructor
public abstract class DataWatcherObject<T> {
protected T value;
public abstract int getTypeId(ProtocolVersion version);
public abstract void readFromStream(PacketDataSerializer serializer) throws IOException;
public abstract void writeToStream(PacketDataSerializer serializer);
public T getValue() {
return value;
}
}