Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Mixin(ChunkRenderDispatcher.RenderChunk.RebuildTask.class)
- public abstract class ChunkRenderMixin extends ChunkRenderDispatcher.RenderChunk.ChunkCompileTask {
- public ChunkRenderMixin(double pDistAtCreation, boolean pIsHighPriority) {
- super(pDistAtCreation, pIsHighPriority);
- }
- @Shadow
- private <E extends BlockEntity> void handleBlockEntity(ChunkRenderDispatcher.RenderChunk.RebuildTask.CompileResults pCompileResults, E pBlockEntity) {}
- @Shadow
- protected RenderChunkRegion region;
- @Inject(
- method = "compile",
- at = @At("HEAD"),
- cancellable = true
- )
- public void compile(float pX, float pY, float pZ, ChunkBufferBuilderPack p_234471_, CallbackInfoReturnable<ChunkRenderDispatcher.RenderChunk.RebuildTask.CompileResults> cir) {
- // my mixin code here
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment