Results 1 to 2 of 2
  1. #1
    gmmha is offline Member
    Join Date
    Jun 2012
    Posts
    1
    Rep Power
    0

    Default Help with my error?

    THE CODE
    package net.minecraft.src;

    import java.util.random;

    import.java.io.PrintStream;

    public class WorldGenPillar extends WorldGenerator
    {
    public WorldGenPillar()
    {

    }

    public boolean generate(World world, Random rand, int x, int y, int z)
    {
    if (world.getBlock(x, y, z)!= Block.dirt.blockID|| world.getBlockID(x, z, y)!= 0)
    {
    return false;
    }

    int block = Block.BlockDiamond.blockID;

    world.setBlockWithNotify(x, y + 1, z, block);
    world.setBlockWithNotify(x, y + 2, z, block);
    world.setBlockWithNotify(x, y + 3, z, block);
    world.setBlockWithNotify(x, y + 4, z, block);
    world.setBlockWithNotify(x, y + 5, z, block);
    world.setBlockWithNotify(x, y + 6, z, block);
    world.setBlockWithNotify(x, y + 7, z, block);
    world.setBlockWithNotify(x, y + 8, z, block);

    return true;

    }

    }


    ERROR
    == MCP 6.2 (data: 6.2, client: 1.2.5, server: 1.2.5) ==
    # found jad, jad patches, ff patches, osx patches, srgs, name csvs, doc csvs, pa
    ram csvs, astyle, astyle config
    == Recompiling client ==
    > Cleaning bin
    > Recompiling
    '"C:\Program Files\Java\jdk1.6.0_27\bin\javac" -Xlint:-options -deprecation -g -
    source 1.6 -target 1....' failed : 1

    == ERRORS FOUND ==

    src\minecraft\net\minecraft\src\WorldGenPillar.jav a:5: <identifier> expected
    import.java.io.PrintStream;
    ^

    1 error
    ==================

    == Recompiling server ==
    > Cleaning bin
    > Recompiling
    - Done in 22.23 seconds
    Druk op een toets om door te gaan. . .
    Can anyone help me fix this error?
    (its a minecraft mod)

    thanks.

  2. #2
    Jaeela is offline Member
    Join Date
    Mar 2011
    Posts
    21
    Rep Power
    0

    Default Re: Help with my error?

    Your code reads "import.java.io.PrintStream;"
    It should be "import java.io.PrintStream;"

Similar Threads

  1. Replies: 3
    Last Post: 05-08-2012, 05:26 PM
  2. Replies: 1
    Last Post: 12-05-2009, 07:28 AM
  3. Replies: 1
    Last Post: 10-26-2009, 04:38 PM
  4. Replies: 3
    Last Post: 01-23-2009, 08:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •