Java 类net.minecraft.world.storage.IThreadedFileIO 实例源码

项目:RuneCraftery    文件:ThreadedFileIOBase.java   
private void func_75736_b() {
   for(int var1 = 0; var1 < this.field_75739_b.size(); ++var1) {
      IThreadedFileIO var2 = (IThreadedFileIO)this.field_75739_b.get(var1);
      boolean var3 = var2.func_75814_c();
      if(!var3) {
         this.field_75739_b.remove(var1--);
         ++this.field_75737_d;
      }

      try {
         Thread.sleep(this.field_75738_e?0L:10L);
      } catch (InterruptedException var6) {
         var6.printStackTrace();
      }
   }

   if(this.field_75739_b.isEmpty()) {
      try {
         Thread.sleep(25L);
      } catch (InterruptedException var5) {
         var5.printStackTrace();
      }
   }

}
项目:Jiffy    文件:ThreadedFileIOBase.java   
public WrapperIThreadedFileIO(final IThreadedFileIO task) {
    this.task = task;
}
项目:Jiffy    文件:ThreadedFileIOBase.java   
@Deprecated
public void queueIO(final IThreadedFileIO task) throws Exception {
    if (task != null)
        queue(new WrapperIThreadedFileIO(task));
}
项目:RuneCraftery    文件:ThreadedFileIOBase.java   
public void func_75735_a(IThreadedFileIO p_75735_1_) {
   if(!this.field_75739_b.contains(p_75735_1_)) {
      ++this.field_75740_c;
      this.field_75739_b.add(p_75735_1_);
   }
}