mirror of
https://github.com/GTNewHorizons/Opis.git
synced 2026-11-26 23:13:22 +00:00
Removed display of global ent update (was profiling the profiler).
Added priviliged user list.
This commit is contained in:
1 parent
5235f61f83
commit
aadf0f736f
11 files changed
+305
-264
No files matched your search
@@ -0,0 +1,30 @@
|
||||
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 StatsWorld extends StatAbstract implements ISerializable {
|
||||
|
||||
private int dim = 0;
|
||||
|
||||
public StatsWorld(int dim){
|
||||
this.dim = dim;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeToStream(DataOutputStream stream) throws IOException {
|
||||
stream.writeInt(this.dim);
|
||||
stream.writeDouble(this.getGeometricMean());
|
||||
}
|
||||
|
||||
public static StatsWorld readFromStream(DataInputStream stream) throws IOException {
|
||||
int dim = stream.readInt();
|
||||
StatsWorld stat = new StatsWorld(dim);
|
||||
stat.setGeometricMean(stream.readDouble());
|
||||
return stat;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user