20 lines
555 B
Java
20 lines
555 B
Java
package io.gitlab.jfronny.translater.mixin;
|
|
|
|
import io.gitlab.jfronny.translater.IMinecraftClientMixin;
|
|
import net.minecraft.client.MinecraftClient;
|
|
import org.spongepowered.asm.mixin.Mixin;
|
|
import org.spongepowered.asm.mixin.Shadow;
|
|
|
|
//This exposes the render method to other code, used for updating the loading screen
|
|
@Mixin(MinecraftClient.class)
|
|
public class MixinMinecraftClient implements IMinecraftClientMixin {
|
|
@Shadow
|
|
private void render(boolean tick) {
|
|
}
|
|
|
|
@Override
|
|
public void forceRender() {
|
|
render(false);
|
|
}
|
|
}
|