This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Logging { | |
private static final String PREFIX = "MyPrefix"; | |
public static void logStatistic(String message) { | |
logWithExtra("Statistic", message); | |
} | |
public static void logDebug(String message) { | |
logWithExtra("Debug", message); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Properties { | |
public static void savePropertiesFile() { | |
((DedicatedServer) MinecraftServer.getServer()).propertyManager.savePropertiesFile(); | |
} | |
public static void setServerProperty(ServerProperty property, Object value) { | |
((DedicatedServer) MinecraftServer.getServer()).propertyManager.setProperty(property.getPropertyName(), value); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public abstract class MainThreadExecutor { | |
public MainThreadExecutor() { | |
MinecraftServer.getServer().processQueue.add(new Runnable() { | |
@Override | |
public void run() { | |
call(); | |
} | |
}); | |
} |
NewerOlder