Guest User

Untitled

a guest
Jan 7th, 2023
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.85 KB | None | 0 0
  1.  
  2. @Mixin(ChunkRenderDispatcher.RenderChunk.RebuildTask.class)
  3. public abstract class ChunkRenderMixin extends ChunkRenderDispatcher.RenderChunk.ChunkCompileTask {
  4.  
  5.     public ChunkRenderMixin(double pDistAtCreation, boolean pIsHighPriority) {
  6.         super(pDistAtCreation, pIsHighPriority);
  7.     }
  8.  
  9.     @Shadow
  10.     private <E extends BlockEntity> void handleBlockEntity(ChunkRenderDispatcher.RenderChunk.RebuildTask.CompileResults pCompileResults, E pBlockEntity) {}
  11.     @Shadow
  12.     protected RenderChunkRegion region;
  13.    
  14.     @Inject(
  15.             method = "compile",
  16.             at = @At("HEAD"),
  17.             cancellable = true
  18.     )
  19.     public void compile(float pX, float pY, float pZ, ChunkBufferBuilderPack p_234471_, CallbackInfoReturnable<ChunkRenderDispatcher.RenderChunk.RebuildTask.CompileResults> cir) {
  20.         // my mixin code here
  21.     }
  22. }
  23.  
Advertisement
Add Comment
Please, Sign In to add comment