1.13 is dead (followup to 8bc0b0a)

This commit is contained in:
Jonas Herzig
2020-03-30 01:27:57 +02:00
parent 49ea1ae40a
commit 8b7ef8d1e3
105 changed files with 300 additions and 300 deletions

View File

@@ -27,7 +27,7 @@ public class FullBrightness extends EventRegistrations implements Extra {
private MinecraftClient mc;
private boolean active;
//#if MC>=11300
//#if MC>=11400
private double originalGamma;
//#else
//$$ private float originalGamma;
@@ -43,7 +43,7 @@ public class FullBrightness extends EventRegistrations implements Extra {
public void run() {
active = !active;
// need to tick once to update lightmap when replay is paused
//#if MC>=11300
//#if MC>=11400
mod.getMinecraft().gameRenderer.tick();
//#else
//$$ mod.getMinecraft().entityRenderer.updateRenderer();

View File

@@ -22,7 +22,7 @@ import de.johni0702.minecraft.gui.utils.lwjgl.Dimension;
import de.johni0702.minecraft.gui.utils.lwjgl.ReadableDimension;
import net.minecraft.client.resource.language.I18n;
//#if MC>=11300
//#if MC>=11400
//#else
//$$ import org.lwjgl.input.Keyboard;
//#endif
@@ -82,7 +82,7 @@ public class HotkeyButtons extends EventRegistrations implements Extra {
// There doesn't seem to be an KeyBindingUpdate event, so we'll just update it every time
String keyName = "???";
try {
//#if MC>=11300
//#if MC>=11400
keyName = keyBinding.getLocalizedName();
//#else
//$$ keyName = Keyboard.getKeyName(keyBinding.getKeyCode());

View File

@@ -11,7 +11,7 @@ import lombok.RequiredArgsConstructor;
import net.minecraft.client.MinecraftClient;
import net.minecraft.util.crash.CrashReport;
//#if MC>=11300
//#if MC>=11400
import com.replaymod.render.mixin.MainWindowAccessor;
import static com.replaymod.core.versions.MCVer.getWindow;
//#endif
@@ -33,7 +33,7 @@ public class ScreenshotRenderer implements RenderInfo {
public boolean renderScreenshot() throws Throwable {
try {
//#if MC>=11300
//#if MC>=11400
int displayWidthBefore = getWindow(mc).getFramebufferWidth();
int displayHeightBefore = getWindow(mc).getFramebufferHeight();
//#else
@@ -61,7 +61,7 @@ public class ScreenshotRenderer implements RenderInfo {
//#endif
mc.options.hudHidden = hideGUIBefore;
//#if MC>=11300
//#if MC>=11400
//noinspection ConstantConditions
MainWindowAccessor acc = (MainWindowAccessor) (Object) getWindow(mc);
acc.setFramebufferWidth(displayWidthBefore);

View File

@@ -19,14 +19,14 @@ import java.util.stream.Collectors;
//#else
//$$ import net.minecraftforge.client.event.RenderHandEvent;
//$$
//#if MC>=11300
//#if MC>=11400
//#else
//$$ import org.lwjgl.input.Keyboard;
//#endif
//$$
//#if MC>=10800
//$$ import com.google.common.base.Predicate;
//#if MC>=11300
//#if MC>=11400
//$$ import net.minecraftforge.eventbus.api.SubscribeEvent;
//#else
//$$ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;

View File

@@ -115,7 +115,7 @@ public class PlayerOverviewGui extends GuiScreen implements Closeable {
}
}.setSize(16, 16),
new GuiLabel().setText(
//#if MC>=11300
//#if MC>=11400
p.getName().asFormattedString()
//#else
//#if MC>=10800
@@ -180,7 +180,7 @@ public class PlayerOverviewGui extends GuiScreen implements Closeable {
public int compare(PlayerEntity o1, PlayerEntity o2) {
if (isSpectator(o1) && !isSpectator(o2)) return 1;
if (isSpectator(o2) && !isSpectator(o1)) return -1;
//#if MC>=11300
//#if MC>=11400
return o1.getName().asFormattedString().compareToIgnoreCase(o2.getName().asFormattedString());
//#else
//#if MC>=10800

View File

@@ -26,7 +26,7 @@ import lombok.RequiredArgsConstructor;
import net.minecraft.client.resource.language.I18n;
import org.apache.commons.io.IOUtils;
//#if MC>=11300
//#if MC>=11400
import net.minecraft.util.SystemUtil;
//#else
//$$ import org.lwjgl.Sys;