mirror of
https://github.com/GTNewHorizons/Opis.git
synced 2026-11-26 23:13:22 +00:00
21 lines
538 B
Java
21 lines
538 B
Java
package mcp.mobius.opis.data.holders;
|
|
|
|
import java.io.DataInputStream;
|
|
import java.io.DataOutputStream;
|
|
import java.io.IOException;
|
|
|
|
public class WorldTickStats extends StatAbstract implements ISerializable {
|
|
|
|
@Override
|
|
public void writeToStream(DataOutputStream stream) throws IOException {
|
|
stream.writeDouble(this.getGeometricMean());
|
|
}
|
|
|
|
public static TickStats readFromStream(DataInputStream stream) throws IOException {
|
|
TickStats stat = new TickStats();
|
|
stat.setGeometricMean(stream.readDouble());
|
|
return stat;
|
|
}
|
|
|
|
}
|