コード例 #1
0
 public void saveChunk(Chunk chunk) { // CraftBukkit - private -> public
   if (this.e != null) {
     try {
       chunk.n = this.world.getTime();
       this.e.a(this.world, chunk);
     } catch (Exception ioexception) { // CraftBukkit - IOException -> Exception
       ioexception.printStackTrace();
     }
   }
 }
コード例 #2
0
  public Chunk loadChunk(int i, int j) { // CraftBukkit - private -> public
    if (this.e == null) {
      return null;
    } else {
      try {
        Chunk chunk = this.e.a(this.world, i, j);

        if (chunk != null) {
          chunk.n = this.world.getTime();
        }

        return chunk;
      } catch (Exception exception) {
        exception.printStackTrace();
        return null;
      }
    }
  }