Get render module compiling on 1.13
This commit is contained in:
@@ -8,6 +8,7 @@ import com.replaymod.core.handler.MainMenuHandler;
|
||||
import com.replaymod.core.utils.OpenGLUtils;
|
||||
import com.replaymod.core.versions.MCVer;
|
||||
import com.replaymod.recording.ReplayModRecording;
|
||||
import com.replaymod.render.ReplayModRender;
|
||||
import com.replaymod.replay.ReplayModReplay;
|
||||
import com.replaymod.replaystudio.util.I18n;
|
||||
import de.johni0702.minecraft.gui.container.GuiScreen;
|
||||
@@ -163,6 +164,7 @@ public class ReplayMod implements Module {
|
||||
modules.add(this);
|
||||
modules.add(new ReplayModRecording(this));
|
||||
modules.add(new ReplayModReplay(this));
|
||||
modules.add(new ReplayModRender(this));
|
||||
|
||||
//#if MC>=11300
|
||||
settingsRegistry.register();
|
||||
|
||||
@@ -345,8 +345,7 @@ public class MCVer {
|
||||
return world.playerEntities;
|
||||
}
|
||||
|
||||
/* FIXME
|
||||
public static BooleanState fog() {
|
||||
public static GlStateManager.BooleanState fog() {
|
||||
//#if MC>=11300
|
||||
return GlStateManager.FOG.fog;
|
||||
//#else
|
||||
@@ -362,7 +361,7 @@ public class MCVer {
|
||||
//#endif
|
||||
}
|
||||
|
||||
public static void fog(BooleanState fog) {
|
||||
public static void fog(GlStateManager.BooleanState fog) {
|
||||
//#if MC>=11300
|
||||
GlStateManager.FOG.fog = fog;
|
||||
//#else
|
||||
@@ -378,7 +377,7 @@ public class MCVer {
|
||||
//#endif
|
||||
}
|
||||
|
||||
public static BooleanState texture2DState(int index) {
|
||||
public static GlStateManager.BooleanState texture2DState(int index) {
|
||||
//#if MC>=11300
|
||||
return GlStateManager.TEXTURES[index].texture2DState;
|
||||
//#else
|
||||
@@ -390,7 +389,7 @@ public class MCVer {
|
||||
//#endif
|
||||
}
|
||||
|
||||
public static void texture2DState(int index, BooleanState texture2DState) {
|
||||
public static void texture2DState(int index, GlStateManager.BooleanState texture2DState) {
|
||||
//#if MC>=11300
|
||||
GlStateManager.TEXTURES[index].texture2DState = texture2DState;
|
||||
//#else
|
||||
@@ -401,7 +400,6 @@ public class MCVer {
|
||||
//#endif
|
||||
//#endif
|
||||
}
|
||||
*/
|
||||
|
||||
public static void ServerList_saveSingleServer(ServerData serverData) {
|
||||
//#if MC>=10904
|
||||
@@ -612,6 +610,14 @@ public class MCVer {
|
||||
//#endif
|
||||
}
|
||||
|
||||
public static long milliTime() {
|
||||
//#if MC>=11300
|
||||
return Util.milliTime();
|
||||
//#else
|
||||
//$$ return Minecraft.getSystemTime();
|
||||
//#endif
|
||||
}
|
||||
|
||||
public static File Minecraft_mcDataDir(Minecraft mc) {
|
||||
//#if MC>=11300
|
||||
return mc.gameDir;
|
||||
|
||||
Reference in New Issue
Block a user