Replace reflection in ChunkLoadingRenderGlobal with mixin

This commit is contained in:
Jonas Herzig
2021-02-23 11:45:08 +01:00
parent 4b4d18026b
commit 90bbc68443
3 changed files with 23 additions and 21 deletions

View File

@@ -0,0 +1,13 @@
//#if MC>=10800
package com.replaymod.render.hooks;
import net.minecraft.client.render.WorldRenderer;
public interface IForceChunkLoading {
void replayModRender_setHook(ChunkLoadingRenderGlobal hook);
static IForceChunkLoading from(WorldRenderer worldRenderer) {
return (IForceChunkLoading) worldRenderer;
}
}
//#endif