Package java.io

Examples of java.io.RandomAccessFile.readInt()


    int xx = loc.getBlockX();
    int yy = loc.getBlockY();
    int zz = loc.getBlockZ();
    if(forEditor){xx=0;yy=0;zz=0;}
    for(int i = 0; i < frameCount(); i++){
      int blocks = raf.readInt();
      myBlock[] mba = new myBlock[blocks];
      for(int b = 0; b < blocks;b++){
        int x = raf.readInt()+xx;
        int y = raf.readInt()+yy;
        int z = raf.readInt()+zz;
View Full Code Here


    if(forEditor){xx=0;yy=0;zz=0;}
    for(int i = 0; i < frameCount(); i++){
      int blocks = raf.readInt();
      myBlock[] mba = new myBlock[blocks];
      for(int b = 0; b < blocks;b++){
        int x = raf.readInt()+xx;
        int y = raf.readInt()+yy;
        int z = raf.readInt()+zz;
        if(!forEditor){
          um.AddmyBlock(new myBlock(um.w.getBlockAt(x, y, z)));
        }
View Full Code Here

    for(int i = 0; i < frameCount(); i++){
      int blocks = raf.readInt();
      myBlock[] mba = new myBlock[blocks];
      for(int b = 0; b < blocks;b++){
        int x = raf.readInt()+xx;
        int y = raf.readInt()+yy;
        int z = raf.readInt()+zz;
        if(!forEditor){
          um.AddmyBlock(new myBlock(um.w.getBlockAt(x, y, z)));
        }
        @SuppressWarnings("deprecation")
View Full Code Here

      int blocks = raf.readInt();
      myBlock[] mba = new myBlock[blocks];
      for(int b = 0; b < blocks;b++){
        int x = raf.readInt()+xx;
        int y = raf.readInt()+yy;
        int z = raf.readInt()+zz;
        if(!forEditor){
          um.AddmyBlock(new myBlock(um.w.getBlockAt(x, y, z)));
        }
        @SuppressWarnings("deprecation")
        myBlock mb = new myBlock(x,y,z,Material.getMaterial(raf.readInt()),raf.readByte());
View Full Code Here

        int z = raf.readInt()+zz;
        if(!forEditor){
          um.AddmyBlock(new myBlock(um.w.getBlockAt(x, y, z)));
        }
        @SuppressWarnings("deprecation")
        myBlock mb = new myBlock(x,y,z,Material.getMaterial(raf.readInt()),raf.readByte());
        mba[b] = mb;
      }
      fa[i]= new Frame(mba,um.w);
    }
    raf.close();
View Full Code Here

    this.setAir = setAir;
    this.restoreAfterUnload = restoreAfterUnload;
    RandomAccessFile raf = new RandomAccessFile(filePath,"r");
    this.filePath = filePath;
   
    int framecount = raf.readInt();//how much frames?
    fa = new Frame[framecount];
    int xx = loc.getBlockX();
    int yy = loc.getBlockY();
    int zz = loc.getBlockZ();
    for(int i = 0; i < frameCount(); i++){
View Full Code Here

    fa = new Frame[framecount];
    int xx = loc.getBlockX();
    int yy = loc.getBlockY();
    int zz = loc.getBlockZ();
    for(int i = 0; i < frameCount(); i++){
      int blocks = raf.readInt();
      myBlock[] mba = new myBlock[blocks];
      for(int b = 0; b < blocks;b++){
        int x = raf.readInt()+xx;
        int y = raf.readInt()+yy;
        int z = raf.readInt()+zz;
View Full Code Here

    int zz = loc.getBlockZ();
    for(int i = 0; i < frameCount(); i++){
      int blocks = raf.readInt();
      myBlock[] mba = new myBlock[blocks];
      for(int b = 0; b < blocks;b++){
        int x = raf.readInt()+xx;
        int y = raf.readInt()+yy;
        int z = raf.readInt()+zz;
        @SuppressWarnings("deprecation")
        myBlock mb = new myBlock(x,y,z,Material.getMaterial(raf.readInt()),raf.readByte());
        mba[b] = mb;
View Full Code Here

    for(int i = 0; i < frameCount(); i++){
      int blocks = raf.readInt();
      myBlock[] mba = new myBlock[blocks];
      for(int b = 0; b < blocks;b++){
        int x = raf.readInt()+xx;
        int y = raf.readInt()+yy;
        int z = raf.readInt()+zz;
        @SuppressWarnings("deprecation")
        myBlock mb = new myBlock(x,y,z,Material.getMaterial(raf.readInt()),raf.readByte());
        mba[b] = mb;
      }
View Full Code Here

      int blocks = raf.readInt();
      myBlock[] mba = new myBlock[blocks];
      for(int b = 0; b < blocks;b++){
        int x = raf.readInt()+xx;
        int y = raf.readInt()+yy;
        int z = raf.readInt()+zz;
        @SuppressWarnings("deprecation")
        myBlock mb = new myBlock(x,y,z,Material.getMaterial(raf.readInt()),raf.readByte());
        mba[b] = mb;
      }
      fa[i]= new Frame(mba,um.w);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.