VulkanShader_1.21.10-0.0.4-alpha.jar

Download file
    package net.vulkanmod.render.chunk.build.task;

import java.util.concurrent.atomic.AtomicBoolean;
import net.vulkanmod.render.chunk.RenderSection;
import net.vulkanmod.render.chunk.build.RenderRegion;
import net.vulkanmod.render.chunk.build.thread.BuilderResources;

public abstract class ChunkTask {
   public static final boolean BENCH = true;
   protected static TaskDispatcher taskDispatcher;
   protected AtomicBoolean cancelled = new AtomicBoolean(false);
   protected final RenderSection section;
   public boolean highPriority = false;

   public static BuildTask createBuildTask(RenderSection renderSection, RenderRegion renderRegion, boolean highPriority) {
      return new BuildTask(renderSection, renderRegion, highPriority);
   }

   ChunkTask(RenderSection renderSection) {
      this.section = renderSection;
   }

   public abstract String name();

   public abstract Result runTask(BuilderResources var1);

   public void cancel() {
      this.cancelled.set(true);
   }

   public static void setTaskDispatcher(TaskDispatcher dispatcher) {
      taskDispatcher = dispatcher;
   }

   public static enum Result {
      CANCELLED,
      SUCCESSFUL;

      // $FF: synthetic method
      private static Result[] $values() {
         return new Result[]{CANCELLED, SUCCESSFUL};
      }
   }
}
    
Download file