Examples of func_150807_a()


Examples of net.minecraft.world.chunk.Chunk.func_150807_a()

        if (notifyAndLight) {
            previousId = Block.getIdFromBlock(chunk.getBlock(x & 15, y, z & 15));
        }

        boolean successful = chunk.func_150807_a(x & 15, y, z & 15, Block.getBlockById(block.getId()), block.getData());

        // Create the TileEntity
        if (successful) {
            CompoundTag tag = block.getNbtData();
            if (tag != null) {
View Full Code Here

Examples of net.minecraft.world.chunk.Chunk.func_150807_a()

        // Temporarily make remote, so that torches etc. don't pop off
        boolean oldStatic = world.isRemote;
        world.isRemote = true;
        // chunk.setBlockAndMetadata(...)
        chunk.func_150807_a(x & 15, y, z & 15, ((ForgeMaterialData) material).internalBlock(), material.getBlockData());
        world.isRemote = oldStatic;

        // Relight and update players
        world.func_147451_t(x, y, z); // world.updateAllLightTypes
        if (!world.isRemote)
View Full Code Here

Examples of net.minecraft.world.chunk.Chunk.func_150807_a()

              Chunk chunk = world.getChunkFromBlockCoords(x, z);
              int cX = x & 15, cZ = z & 15;
              for (int y = yS; y <= yL; ++y) {
                Block block = chunk.getBlock(cX, y, cZ);
                if (block.getMaterial().isLiquid()) {
                  if (chunk.func_150807_a(cX, y, cZ, Blocks.air, 0)) {
                    set.add(chunk);
                  }
                }
              }
            }
View Full Code Here

Examples of net.minecraft.world.chunk.Chunk.func_150807_a()

              Chunk chunk = world.getChunkFromBlockCoords(x, z);
              int cX = x & 15, cZ = z & 15;
              for (int y = yS; y <= yL; ++y) {
                Block block = chunk.getBlock(cX, y, cZ);
                if (block.isWood(world, x, y, z) || block.isLeaves(world, x, y, z)) {
                  if (chunk.func_150807_a(cX, y, cZ, Blocks.air, 0)) {
                    set.add(chunk);
                  }
                }
              }
            }
View Full Code Here

Examples of net.minecraft.world.chunk.Chunk.func_150807_a()

              Chunk chunk = world.getChunkFromBlockCoords(x, z);
              int cX = x & 15, cZ = z & 15;
              for (int y = yS; y <= yL; ++y) {
                Block block = chunk.getBlock(cX, y, cZ);
                if (block.isReplaceable(world, x, y, z)) {
                  if (chunk.func_150807_a(cX, y, cZ, Blocks.air, 0)) {
                    set.add(chunk);
                  }
                }
              }
            }
View Full Code Here

Examples of net.minecraft.world.chunk.Chunk.func_150807_a()

              Chunk chunk = world.getChunkFromBlockCoords(x, z);
              int cX = x & 15, cZ = z & 15;
              for (int y = yS; y <= yL; ++y) {
                Block block = chunk.getBlock(cX, y, cZ);
                if (block.getMaterial() == Material.rock) {
                  if (chunk.func_150807_a(cX, y, cZ, Blocks.air, 0)) {
                    set.add(chunk);
                  }
                }
              }
            }
View Full Code Here

Examples of net.minecraft.world.chunk.Chunk.func_150807_a()

              Chunk chunk = world.getChunkFromBlockCoords(x, z);
              int cX = x & 15, cZ = z & 15;
              for (int y = yS; y <= yL; ++y) {
                Block block = chunk.getBlock(cX, y, cZ);
                if (block.getMaterial() == Material.sand) {
                  if (chunk.func_150807_a(cX, y, cZ, Blocks.air, 0)) {
                    set.add(chunk);
                  }
                }
              }
            }
View Full Code Here

Examples of net.minecraft.world.chunk.Chunk.func_150807_a()

              for (int y = yS; y <= yL; ++y) {
                Block block = chunk.getBlock(cX, y, cZ);
                Material m = block.getMaterial();
                if (m == Material.grass || m == Material.ground || m == Material.clay || m == Material.snow
                    || m == Material.craftedSnow || m == Material.ice || m == Material.packedIce) {
                  if (chunk.func_150807_a(cX, y, cZ, Blocks.air, 0)) {
                    set.add(chunk);
                  }
                }
              }
            }
View Full Code Here

Examples of net.minecraft.world.chunk.Chunk.func_150807_a()

              int cX = x & 15, cZ = z & 15;
              for (int y = yS; y <= yL; ++y) {
                Block block = chunk.getBlock(cX, y, cZ);
                Material m = block.getMaterial();
                if (m == Material.plants || m == Material.vine || m == Material.cactus || m == Material.leaves) {
                  if (chunk.func_150807_a(cX, y, cZ, Blocks.air, 0)) {
                    set.add(chunk);
                  }
                }
              }
            }
View Full Code Here

Examples of net.minecraft.world.chunk.Chunk.func_150807_a()

              int cX = x & 15, cZ = z & 15;
              for (int y = yS; y <= yL; ++y) {
                Block block = chunk.getBlock(cX, y, cZ);
                Material m = block.getMaterial();
                if (m == Material.fire || m == Material.lava || block.isBurning(world, x, y, z)) {
                  if (chunk.func_150807_a(cX, y, cZ, Blocks.air, 0)) {
                    set.add(chunk);
                  }
                }
              }
            }
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.