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