コード例 #1
0
ファイル: TileEntityPipe.java プロジェクト: UUUii/RotaryCraft
  @Override
  public void overheat(World world, int x, int y, int z) {
    BlockArray blocks = new BlockArray();
    MachineRegistry m = this.getMachine();
    blocks.recursiveAddWithMetadata(world, x, y, z, m.getBlock(), m.getMachineMetadata());

    for (int i = 0; i < blocks.getSize(); i++) {
      Coordinate c = blocks.getNthBlock(i);
      ReikaSoundHelper.playSoundAtBlock(
          world, c.xCoord, c.yCoord, c.zCoord, "random.fizz", 0.4F, 1);
      ReikaParticleHelper.LAVA.spawnAroundBlock(world, c.xCoord, c.yCoord, c.zCoord, 36);
      c.setBlock(world, Blocks.flowing_lava);
    }
  }
コード例 #2
0
 public void melt(World world, int x, int y, int z) {
   ReikaSoundHelper.playSoundAtBlock(world, x, y, z, "random.fizz");
   ReikaParticleHelper.LAVA.spawnAroundBlock(world, x, y, z, 12);
   world.setBlock(x, y, z, Blocks.flowing_lava);
 }