Move MixinChunkRenderWorker into 1.14.4 project
This commit is contained in:
@@ -1,19 +1 @@
|
|||||||
package com.replaymod.render.mixin;
|
// 1.14.4 - 1.8
|
||||||
|
|
||||||
//#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
|
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in New Issue
Block a user