コード例 #1
0
  protected byte hcCobbleMeta(World world, int i, int j, int x, int y, int k) {
    if ((undergroundBiomesMod.present())) {

      int worldX = i;
      int worldY = k;
      int worldZ = j;

      BlockCodes cobble = ubColumnCache.column(worldX, worldZ).cobblestone(worldY);

      return (byte) cobble.metadata;
    } else {

      return (byte) 0;
    }
  }
コード例 #2
0
  protected Block hcCobble(World world, int i, int j, int x, int y, int k) {
    if ((undergroundBiomesMod.present())) {

      int worldX = i;
      int worldY = k;
      int worldZ = j;

      BlockCodes cobble = ubColumnCache.column(worldX, worldZ).cobblestone(worldY);

      return cobble.block;
    } else {

      return Blocks.cobblestone;
    }
  }