Package org.getspout.spoutapi

Examples of org.getspout.spoutapi.SpoutWorld


  transient private final int zBitShifts;

  public SpoutCraftChunk(Chunk chunk) {
    super(chunk);

    SpoutWorld world = Spout.getServer().getWorld(getWorld().getUID());

    this.worldHeight = world != null ? world.getMaxHeight() : 256;
    this.xBitShifts = world != null ? world.getXBitShifts() : 12;
    this.zBitShifts = world != null ? world.getZBitShifts() : 8;
    worldHeightMinusOne = worldHeight - 1;
  }
View Full Code Here


    this.cx = cx;
    this.cz = cz;
    this.worldUid = worldId;

    SpoutWorld world = Spout.getServer().getWorld(this.worldUid);

    this.worldHeight = world != null ? world.getMaxHeight() : 128;
    this.xBitShifts = world != null ? world.getXBitShifts() : 11;
    this.zBitShifts = world != null ? world.getZBitShifts() : 7;
    worldHeightMinusOne = worldHeight - 1;

    this.worldItemMap = worldItemMap;
    this.serverItemMap = ItemMap.getRootMap();
    conversionNeeded = false;
View Full Code Here

    cx = in.readInt();
    cz = in.readInt();
    boolean customBlockIdsExist = in.readBoolean();

    // Constructor is not invoked, need to set these fields
    SpoutWorld world = Spout.getServer().getWorld(this.worldUid);

    this.worldHeight = world.getMaxHeight();
    this.xBitShifts = world.getXBitShifts();
    this.zBitShifts = world.getZBitShifts();
    worldHeightMinusOne = worldHeight - 1;

    if (customBlockIdsExist) {
      if (fileVersionNumber >= 2) {
        conversionNeeded = true;
View Full Code Here

TOP

Related Classes of org.getspout.spoutapi.SpoutWorld

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.