首发于Enaium的个人博客
一. 写启动和停止
在你想要的地方新建一个类
改为enum
写一个枚举 INSTANCE;
写两个方法分别是 start 和 stop
public enum Coreium {
INSTANCE;
public void start() {
}
public void stop() {
}
}
在启动和退出游戏的时候调用这2个类
搜索
Minecraft
找到startGame
在这个方法在最后面写Coreium.INSTANCE.start();
找到shutdownMinecraftApplet
在logger.info("Stopping!");
后面写Coreium.INSTANCE.stop();
[...]
this.renderGlobal.makeEntityOutlineShader();
Coreium.INSTANCE.start();
}
private void registerMetadataSerializers()
{
[...]
public void shutdownMinecraftApplet()
{
try
{
this.stream.shutdownStream();
logger.info("Stopping!");
Coreium.INSTANCE.stop();
[...]
二. 修改游戏标题
在
Minecraft
类中我们搜索Display.Title
会找到Display.setTitle("Minecraft 1.8.8");
这个就是修改标题我们现在知道了修改标题的方法
- 在start里面写
Display.setTitle("Coreium");
就是吧标题改为Coreium
运行
Minecraft Client 教程 #2 设置启动和停止
原文:https://www.cnblogs.com/Enaium/p/12360670.html