Package net.mcft.copy.betterstorage.misc

Examples of net.mcft.copy.betterstorage.misc.Region


    this.region = region;
    this.map = map;
    this.mapRegion = mapRegion;
  }
  public CratePileMap(TileEntity entity) {
    region = new Region(entity);
    map = new byte[1];
    mapRegion = region.clone();
    mapRegion.minY /= 8;
    mapRegion.maxY /= 8;
    resize();
View Full Code Here


    map = newMap;
    mapRegion = region;
  }
  /** Resizes the internal map region, copying the old data over. */
  private void resize() {
    Region newRegion = region.clone();
    newRegion.expand(2, 0, 2, 2, 2, 2);
    newRegion.minY /= 8;
    newRegion.maxY /= 8;
    resize(newRegion);
  }
View Full Code Here

    compound.setByteArray("map", map);
    compound.setTag("mapRegion", mapRegion.toCompound());
    return compound;
  }
  public static CratePileMap fromCompound(NBTTagCompound compound) {
    Region region = Region.fromCompound(compound.getCompoundTag("region"));
    byte[] map = compound.getByteArray("map");
    Region mapRegion = Region.fromCompound(compound.getCompoundTag("mapRegion"));
    return new CratePileMap(region, map, mapRegion);
  }
View Full Code Here

TOP

Related Classes of net.mcft.copy.betterstorage.misc.Region

Copyright © 2018 www.massapicom. 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.