Move MixinChunkRenderWorker into 1.14.4 project

This commit is contained in:
Jonas Herzig
2021-02-27 18:35:32 +01:00
parent 2fb4f73ae4
commit 10426f9d39
2 changed files with 19 additions and 19 deletions

View File

@@ -1,19 +1 @@
package com.replaymod.render.mixin;
//#if MC>=10800 && MC<11500
//$$
//$$ import com.replaymod.core.versions.MCVer;
//$$ import net.minecraft.client.render.chunk.ChunkRenderTask;
//$$ import net.minecraft.client.render.chunk.ChunkRenderWorker;
//$$ import org.spongepowered.asm.mixin.Mixin;
//$$ import org.spongepowered.asm.mixin.Shadow;
//$$
//$$ @Mixin(ChunkRenderWorker.class)
//$$ public abstract class MixinChunkRenderWorker implements MCVer.ChunkRenderWorkerAccessor {
//$$ @Shadow abstract void runTask(ChunkRenderTask task) throws InterruptedException;
//$$
//$$ public void doRunTask(ChunkRenderTask task) throws InterruptedException {
//$$ runTask(task);
//$$ }
//$$ }
//#endif
// 1.14.4 - 1.8

View File

@@ -0,0 +1,18 @@
//#if MC>=10800
package com.replaymod.render.mixin;
import com.replaymod.core.versions.MCVer;
import net.minecraft.client.render.chunk.ChunkRenderTask;
import net.minecraft.client.render.chunk.ChunkRenderWorker;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
@Mixin(ChunkRenderWorker.class)
public abstract class MixinChunkRenderWorker implements MCVer.ChunkRenderWorkerAccessor {
@Shadow abstract void runTask(ChunkRenderTask task) throws InterruptedException;
public void doRunTask(ChunkRenderTask task) throws InterruptedException {
runTask(task);
}
}
//#endif