Translater/src/main/java/io/gitlab/jfronny/translater/mixin/MixinMinecraftClient.java

20 lines
555 B
Java
Raw Normal View History

2020-07-13 16:41:21 +02:00
package io.gitlab.jfronny.translater.mixin;
2020-08-07 12:47:37 +02:00
import io.gitlab.jfronny.translater.IMinecraftClientMixin;
2020-07-13 16:41:21 +02:00
import net.minecraft.client.MinecraftClient;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
2020-08-07 12:47:37 +02:00
//This exposes the render method to other code, used for updating the loading screen
2020-07-13 16:41:21 +02:00
@Mixin(MinecraftClient.class)
2020-08-07 12:47:37 +02:00
public class MixinMinecraftClient implements IMinecraftClientMixin {
2020-07-13 17:16:06 +02:00
@Shadow
private void render(boolean tick) {
2020-07-13 16:41:21 +02:00
}
2020-07-13 17:16:06 +02:00
@Override
2020-08-07 12:47:37 +02:00
public void forceRender() {
2020-07-13 17:16:06 +02:00
render(false);
}
2020-07-13 16:41:21 +02:00
}