protected int nextInt(int par1)
{
int var2 = (int)((this.chunkSeed >> 24) % (long)par1);
if (var2 < 0)
{
var2 += par1;
}
this.chunkSeed *= this.chunkSeed * 6364136223846793005L + 1442695040888963407L;
this.chunkSeed += this.worldGenSeed;
return var2;
}