Examples of CustomBlock


Examples of org.spoutcraft.api.material.CustomBlock

  public void writeData(SpoutOutputStream output) throws IOException {
    output.writeShort(customId);
  }

  public void run(int id) {
    CustomBlock block = MaterialData.getCustomBlock(customId);
    if (block != null) {
      block.setBlockDesign(design, data);
    }
  }
View Full Code Here

Examples of org.spoutcraft.api.material.CustomBlock

          int y = MathHelper.floor_double(this.boundingBox.minY) - 1;
          int z = MathHelper.floor_double(this.posZ);
          org.spoutcraft.client.block.SpoutcraftChunk chunk = org.spoutcraft.api.Spoutcraft.getChunkAt(worldObj, x, y, z);
          short customId = chunk.getCustomBlockId(x, y, z);
          if (customId > 0) {
            CustomBlock block = MaterialData.getCustomBlock(customId);
            if (block != null) {
              var3 = block.getFriction() * 0.98F;
            }
          }
          // Spout End
        }
      }
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.