Add DhClientWorld F3 debug string prep
This commit is contained in:
@@ -63,9 +63,9 @@ public class F3Screen
|
||||
Parent Update #: 12 <br><br>
|
||||
|
||||
Client_Server World with 3 levels <br>
|
||||
[overworld] rendering: Active <br>
|
||||
[the_end] rendering: Inactive <br>
|
||||
[the_nether] rendering: Inactive <br><br>
|
||||
[minecraft:overworld] rendering: Active <br>
|
||||
[minecraft:the_end] rendering: Inactive <br>
|
||||
[minecraft:the_nether] rendering: Inactive <br><br>
|
||||
|
||||
VBO Render Count: 199/374 <br>
|
||||
</code>
|
||||
@@ -102,7 +102,7 @@ public class F3Screen
|
||||
messageList.add(SharedApi.INSTANCE.getDebugMenuString());
|
||||
messageList.add("");
|
||||
// world / levels
|
||||
messageList.add(world.GetDebugMenuString());
|
||||
world.addDebugMenuStringsToList(messageList);
|
||||
for (IDhLevel level : levelIterator)
|
||||
{
|
||||
level.addDebugMenuStringsToList(messageList);
|
||||
|
||||
@@ -24,6 +24,7 @@ import com.seibel.distanthorizons.core.logging.f3.F3Screen;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
|
||||
import java.io.Closeable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Represents an entire world (aka server) and
|
||||
@@ -53,6 +54,11 @@ public abstract class AbstractDhWorld implements IDhWorld, Closeable
|
||||
|
||||
// helper methods //
|
||||
|
||||
public String GetDebugMenuString() { return this.environment + " World with " + F3Screen.NUMBER_FORMAT.format(this.getLoadedLevelCount()) + " levels"; }
|
||||
/**
|
||||
* This method mutates a list so other lines can be easily added
|
||||
* by overriding children.
|
||||
*/
|
||||
public void addDebugMenuStringsToList(List<String> messageList)
|
||||
{ messageList.add(this.environment + " World with " + F3Screen.NUMBER_FORMAT.format(this.getLoadedLevelCount()) + " levels"); }
|
||||
|
||||
}
|
||||
|
||||
@@ -31,6 +31,7 @@ import com.seibel.distanthorizons.core.wrapperInterfaces.world.ILevelWrapper;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
|
||||
@@ -158,12 +159,17 @@ public class DhClientWorld extends AbstractDhWorld implements IDhClientWorld
|
||||
|
||||
private void _clientTick() { this.levels.values().forEach(DhClientLevel::clientTick); }
|
||||
|
||||
@Override
|
||||
public void clientTick() { this.eventLoop.tick(); }
|
||||
|
||||
public void doWorldGen() {
|
||||
// Not implemented
|
||||
@Override
|
||||
public void addDebugMenuStringsToList(List<String> messageList)
|
||||
{
|
||||
super.addDebugMenuStringsToList(messageList);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void close()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user