Replaced java.util.Random with EaglercraftRandom
This commit is contained in:
parent
80f9f9d009
commit
86a9d3440f
|
@ -5,7 +5,8 @@ package net.minecraft.src;
|
|||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Random;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class Block {
|
||||
|
||||
|
@ -153,10 +154,10 @@ public class Block {
|
|||
return true;
|
||||
}
|
||||
|
||||
public void updateTick(World world, int i, int j, int k, Random random) {
|
||||
public void updateTick(World world, int i, int j, int k, EaglercraftRandom random) {
|
||||
}
|
||||
|
||||
public void randomDisplayTick(World world, int i, int j, int k, Random random) {
|
||||
public void randomDisplayTick(World world, int i, int j, int k, EaglercraftRandom random) {
|
||||
}
|
||||
|
||||
public void onBlockDestroyedByPlayer(World world, int i, int j, int k, int l) {
|
||||
|
@ -175,11 +176,11 @@ public class Block {
|
|||
public void onBlockRemoval(World world, int i, int j, int k) {
|
||||
}
|
||||
|
||||
public int quantityDropped(Random random) {
|
||||
public int quantityDropped(EaglercraftRandom random) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
public int idDropped(int i, Random random) {
|
||||
public int idDropped(int i, EaglercraftRandom random) {
|
||||
return blockID;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockBed extends Block {
|
||||
|
||||
|
@ -94,7 +96,7 @@ public class BlockBed extends Block {
|
|||
}
|
||||
}
|
||||
|
||||
public int idDropped(int i, Random random) {
|
||||
public int idDropped(int i, EaglercraftRandom random) {
|
||||
if (func_22032_d(i)) {
|
||||
return 0;
|
||||
} else {
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
package net.minecraft.src;
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockBookshelf extends Block {
|
||||
|
||||
|
@ -20,7 +21,7 @@ public class BlockBookshelf extends Block {
|
|||
}
|
||||
}
|
||||
|
||||
public int quantityDropped(Random random) {
|
||||
public int quantityDropped(EaglercraftRandom random) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockButton extends Block {
|
||||
|
||||
|
@ -207,7 +209,7 @@ public class BlockButton extends Block {
|
|||
return true;
|
||||
}
|
||||
|
||||
public void updateTick(World world, int i, int j, int k, Random random) {
|
||||
public void updateTick(World world, int i, int j, int k, EaglercraftRandom random) {
|
||||
if (world.multiplayerWorld) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockCactus extends Block {
|
||||
|
||||
protected BlockCactus(int i, int j) {
|
||||
|
@ -13,7 +14,7 @@ public class BlockCactus extends Block {
|
|||
setTickOnLoad(true);
|
||||
}
|
||||
|
||||
public void updateTick(World world, int i, int j, int k, Random random) {
|
||||
public void updateTick(World world, int i, int j, int k, EaglercraftRandom random) {
|
||||
if (world.isAirBlock(i, j + 1, k)) {
|
||||
int l;
|
||||
for (l = 1; world.getBlockId(i, j - l, k) == blockID; l++) {
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockCake extends Block {
|
||||
|
||||
|
@ -119,11 +121,11 @@ public class BlockCake extends Block {
|
|||
return world.getBlockMaterial(i, j - 1, k).isSolid();
|
||||
}
|
||||
|
||||
public int quantityDropped(Random random) {
|
||||
public int quantityDropped(EaglercraftRandom random) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public int idDropped(int i, Random random) {
|
||||
public int idDropped(int i, EaglercraftRandom random) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,16 +1,18 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockChest extends BlockContainer {
|
||||
|
||||
protected BlockChest(int i) {
|
||||
super(i, Material.wood);
|
||||
random = new Random();
|
||||
random = new EaglercraftRandom();
|
||||
blockIndexInTexture = 26;
|
||||
}
|
||||
|
||||
|
@ -225,5 +227,5 @@ public class BlockChest extends BlockContainer {
|
|||
return new TileEntityChest();
|
||||
}
|
||||
|
||||
private Random random;
|
||||
private EaglercraftRandom random;
|
||||
}
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockClay extends Block {
|
||||
|
||||
|
@ -12,11 +14,11 @@ public class BlockClay extends Block {
|
|||
super(i, j, Material.clay);
|
||||
}
|
||||
|
||||
public int idDropped(int i, Random random) {
|
||||
public int idDropped(int i, EaglercraftRandom random) {
|
||||
return Item.clay.shiftedIndex;
|
||||
}
|
||||
|
||||
public int quantityDropped(Random random) {
|
||||
public int quantityDropped(EaglercraftRandom random) {
|
||||
return 4;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockCrops extends BlockFlower {
|
||||
|
||||
|
@ -20,7 +22,7 @@ public class BlockCrops extends BlockFlower {
|
|||
return i == Block.tilledField.blockID;
|
||||
}
|
||||
|
||||
public void updateTick(World world, int i, int j, int k, Random random) {
|
||||
public void updateTick(World world, int i, int j, int k, EaglercraftRandom random) {
|
||||
super.updateTick(world, i, j, k, random);
|
||||
if (world.getBlockLightValue(i, j + 1, k) >= 9) {
|
||||
int l = world.getBlockMetadata(i, j, k);
|
||||
|
@ -105,7 +107,7 @@ public class BlockCrops extends BlockFlower {
|
|||
}
|
||||
}
|
||||
|
||||
public int idDropped(int i, Random random) {
|
||||
public int idDropped(int i, EaglercraftRandom random) {
|
||||
if (i == 7) {
|
||||
return Item.wheat.shiftedIndex;
|
||||
} else {
|
||||
|
@ -113,7 +115,7 @@ public class BlockCrops extends BlockFlower {
|
|||
}
|
||||
}
|
||||
|
||||
public int quantityDropped(Random random) {
|
||||
public int quantityDropped(EaglercraftRandom random) {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockDispenser extends BlockContainer {
|
||||
|
||||
|
@ -17,7 +19,7 @@ public class BlockDispenser extends BlockContainer {
|
|||
return 4;
|
||||
}
|
||||
|
||||
public int idDropped(int i, Random random) {
|
||||
public int idDropped(int i, EaglercraftRandom random) {
|
||||
return Block.dispenser.blockID;
|
||||
}
|
||||
|
||||
|
@ -86,7 +88,7 @@ public class BlockDispenser extends BlockContainer {
|
|||
}
|
||||
}
|
||||
|
||||
private void dispenseItem(World world, int i, int j, int k, Random random) {
|
||||
private void dispenseItem(World world, int i, int j, int k, EaglercraftRandom random) {
|
||||
int l = world.getBlockMetadata(i, j, k);
|
||||
float f = 0.0F;
|
||||
float f1 = 0.0F;
|
||||
|
@ -158,7 +160,7 @@ public class BlockDispenser extends BlockContainer {
|
|||
}
|
||||
}
|
||||
|
||||
public void updateTick(World world, int i, int j, int k, Random random) {
|
||||
public void updateTick(World world, int i, int j, int k, EaglercraftRandom random) {
|
||||
if (world.isBlockIndirectlyGettingPowered(i, j, k) || world.isBlockIndirectlyGettingPowered(i, j + 1, k)) {
|
||||
dispenseItem(world, i, j, k, random);
|
||||
}
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockDoor extends Block {
|
||||
|
||||
|
@ -169,7 +171,7 @@ public class BlockDoor extends Block {
|
|||
}
|
||||
}
|
||||
|
||||
public int idDropped(int i, Random random) {
|
||||
public int idDropped(int i, EaglercraftRandom random) {
|
||||
if ((i & 8) != 0) {
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockFire extends Block {
|
||||
|
||||
|
@ -42,7 +44,7 @@ public class BlockFire extends Block {
|
|||
return 3;
|
||||
}
|
||||
|
||||
public int quantityDropped(Random random) {
|
||||
public int quantityDropped(EaglercraftRandom random) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -50,7 +52,7 @@ public class BlockFire extends Block {
|
|||
return 10;
|
||||
}
|
||||
|
||||
public void updateTick(World world, int i, int j, int k, Random random) {
|
||||
public void updateTick(World world, int i, int j, int k, EaglercraftRandom random) {
|
||||
boolean flag = world.getBlockId(i, j - 1, k) == Block.bloodStone.blockID;
|
||||
int l = world.getBlockMetadata(i, j, k);
|
||||
if (l < 15) {
|
||||
|
@ -105,7 +107,7 @@ public class BlockFire extends Block {
|
|||
}
|
||||
}
|
||||
|
||||
private void tryToCatchBlockOnFire(World world, int i, int j, int k, int l, Random random) {
|
||||
private void tryToCatchBlockOnFire(World world, int i, int j, int k, int l, EaglercraftRandom random) {
|
||||
int i1 = abilityToCatchFire[world.getBlockId(i, j, k)];
|
||||
if (random.nextInt(l) < i1) {
|
||||
boolean flag = world.getBlockId(i, j, k) == Block.tnt.blockID;
|
||||
|
@ -197,7 +199,7 @@ public class BlockFire extends Block {
|
|||
}
|
||||
}
|
||||
|
||||
public void randomDisplayTick(World world, int i, int j, int k, Random random) {
|
||||
public void randomDisplayTick(World world, int i, int j, int k, EaglercraftRandom random) {
|
||||
if (random.nextInt(24) == 0) {
|
||||
world.playSoundEffect((float) i + 0.5F, (float) j + 0.5F, (float) k + 0.5F, "fire.fire",
|
||||
1.0F + random.nextFloat(), random.nextFloat() * 0.7F + 0.3F);
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockFlower extends Block {
|
||||
|
||||
|
@ -29,7 +31,7 @@ public class BlockFlower extends Block {
|
|||
func_268_h(world, i, j, k);
|
||||
}
|
||||
|
||||
public void updateTick(World world, int i, int j, int k, Random random) {
|
||||
public void updateTick(World world, int i, int j, int k, EaglercraftRandom random) {
|
||||
func_268_h(world, i, j, k);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockFlowing extends BlockFluids {
|
||||
|
||||
|
@ -22,7 +24,7 @@ public class BlockFlowing extends BlockFluids {
|
|||
world.markBlockNeedsUpdate(i, j, k);
|
||||
}
|
||||
|
||||
public void updateTick(World world, int i, int j, int k, Random random) {
|
||||
public void updateTick(World world, int i, int j, int k, EaglercraftRandom random) {
|
||||
int l = func_290_h(world, i, j, k);
|
||||
byte byte0 = 1;
|
||||
if (blockMaterial == Material.lava && !world.worldProvider.isHellWorld) {
|
||||
|
|
|
@ -4,7 +4,8 @@ package net.minecraft.src;
|
|||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public abstract class BlockFluids extends Block {
|
||||
|
||||
|
@ -86,11 +87,11 @@ public abstract class BlockFluids extends Block {
|
|||
return 4;
|
||||
}
|
||||
|
||||
public int idDropped(int i, Random random) {
|
||||
public int idDropped(int i, EaglercraftRandom random) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public int quantityDropped(Random random) {
|
||||
public int quantityDropped(EaglercraftRandom random) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -185,7 +186,7 @@ public abstract class BlockFluids extends Block {
|
|||
return f <= f1 ? f1 : f;
|
||||
}
|
||||
|
||||
public void updateTick(World world, int i, int j, int k, Random random) {
|
||||
public void updateTick(World world, int i, int j, int k, EaglercraftRandom random) {
|
||||
super.updateTick(world, i, j, k, random);
|
||||
}
|
||||
|
||||
|
@ -193,7 +194,7 @@ public abstract class BlockFluids extends Block {
|
|||
return blockMaterial != Material.water ? 0 : 1;
|
||||
}
|
||||
|
||||
public void randomDisplayTick(World world, int i, int j, int k, Random random) {
|
||||
public void randomDisplayTick(World world, int i, int j, int k, EaglercraftRandom random) {
|
||||
if (blockMaterial == Material.water && random.nextInt(64) == 0) {
|
||||
int l = world.getBlockMetadata(i, j, k);
|
||||
if (l > 0 && l < 8) {
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
package net.minecraft.src;
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockFurnace extends BlockContainer {
|
||||
|
||||
|
@ -14,7 +15,7 @@ public class BlockFurnace extends BlockContainer {
|
|||
blockIndexInTexture = 45;
|
||||
}
|
||||
|
||||
public int idDropped(int i, Random random) {
|
||||
public int idDropped(int i, EaglercraftRandom random) {
|
||||
return Block.stoneOvenIdle.blockID;
|
||||
}
|
||||
|
||||
|
@ -62,7 +63,7 @@ public class BlockFurnace extends BlockContainer {
|
|||
}
|
||||
}
|
||||
|
||||
public void randomDisplayTick(World world, int i, int j, int k, Random random) {
|
||||
public void randomDisplayTick(World world, int i, int j, int k, EaglercraftRandom random) {
|
||||
if (!isActive) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockGlass extends BlockBreakable {
|
||||
|
||||
|
@ -12,7 +14,7 @@ public class BlockGlass extends BlockBreakable {
|
|||
super(i, j, material, flag);
|
||||
}
|
||||
|
||||
public int quantityDropped(Random random) {
|
||||
public int quantityDropped(EaglercraftRandom random) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockGrass extends Block {
|
||||
|
||||
protected BlockGrass(int i) {
|
||||
|
@ -32,7 +33,7 @@ public class BlockGrass extends Block {
|
|||
return ColorizerGrass.getGrassColor(d, d1);
|
||||
}
|
||||
|
||||
public void updateTick(World world, int i, int j, int k, Random random) {
|
||||
public void updateTick(World world, int i, int j, int k, EaglercraftRandom random) {
|
||||
if (world.multiplayerWorld) {
|
||||
return;
|
||||
}
|
||||
|
@ -52,7 +53,7 @@ public class BlockGrass extends Block {
|
|||
}
|
||||
}
|
||||
|
||||
public int idDropped(int i, Random random) {
|
||||
public int idDropped(int i, EaglercraftRandom random) {
|
||||
return Block.dirt.idDropped(0, random);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,18 +1,19 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockGravel extends BlockSand {
|
||||
|
||||
public BlockGravel(int i, int j) {
|
||||
super(i, j);
|
||||
}
|
||||
|
||||
public int idDropped(int i, Random random) {
|
||||
public int idDropped(int i, EaglercraftRandom random) {
|
||||
if (random.nextInt(10) == 0) {
|
||||
return Item.flint.shiftedIndex;
|
||||
} else {
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockIce extends BlockBreakable {
|
||||
|
||||
public BlockIce(int i, int j) {
|
||||
|
@ -29,11 +30,11 @@ public class BlockIce extends BlockBreakable {
|
|||
}
|
||||
}
|
||||
|
||||
public int quantityDropped(Random random) {
|
||||
public int quantityDropped(EaglercraftRandom random) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public void updateTick(World world, int i, int j, int k, Random random) {
|
||||
public void updateTick(World world, int i, int j, int k, EaglercraftRandom random) {
|
||||
if (world.getSavedLightValue(EnumSkyBlock.Block, i, j, k) > 11 - Block.lightOpacity[blockID]) {
|
||||
dropBlockAsItem(world, i, j, k, world.getBlockMetadata(i, j, k));
|
||||
world.setBlockWithNotify(i, j, k, Block.waterMoving.blockID);
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockLadder extends Block {
|
||||
|
||||
|
@ -112,7 +114,7 @@ public class BlockLadder extends Block {
|
|||
super.onNeighborBlockChange(world, i, j, k, l);
|
||||
}
|
||||
|
||||
public int quantityDropped(Random random) {
|
||||
public int quantityDropped(EaglercraftRandom random) {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockLeaves extends BlockLeavesBase {
|
||||
|
||||
|
@ -50,7 +52,7 @@ public class BlockLeaves extends BlockLeavesBase {
|
|||
}
|
||||
}
|
||||
|
||||
public void updateTick(World world, int i, int j, int k, Random random) {
|
||||
public void updateTick(World world, int i, int j, int k, EaglercraftRandom random) {
|
||||
if (world.multiplayerWorld) {
|
||||
return;
|
||||
}
|
||||
|
@ -132,11 +134,11 @@ public class BlockLeaves extends BlockLeavesBase {
|
|||
world.setBlockWithNotify(i, j, k, 0);
|
||||
}
|
||||
|
||||
public int quantityDropped(Random random) {
|
||||
public int quantityDropped(EaglercraftRandom random) {
|
||||
return random.nextInt(16) != 0 ? 0 : 1;
|
||||
}
|
||||
|
||||
public int idDropped(int i, Random random) {
|
||||
public int idDropped(int i, EaglercraftRandom random) {
|
||||
return Block.sapling.blockID;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,18 +1,19 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockLightStone extends Block {
|
||||
|
||||
public BlockLightStone(int i, int j, Material material) {
|
||||
super(i, j, material);
|
||||
}
|
||||
|
||||
public int idDropped(int i, Random random) {
|
||||
public int idDropped(int i, EaglercraftRandom random) {
|
||||
return Item.lightStoneDust.shiftedIndex;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockLog extends Block {
|
||||
|
||||
|
@ -13,11 +15,11 @@ public class BlockLog extends Block {
|
|||
blockIndexInTexture = 20;
|
||||
}
|
||||
|
||||
public int quantityDropped(Random random) {
|
||||
public int quantityDropped(EaglercraftRandom random) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
public int idDropped(int i, Random random) {
|
||||
public int idDropped(int i, EaglercraftRandom random) {
|
||||
return Block.wood.blockID;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockMinecartTrack extends Block {
|
||||
|
||||
protected BlockMinecartTrack(int i, int j) {
|
||||
|
@ -51,7 +52,7 @@ public class BlockMinecartTrack extends Block {
|
|||
return 9;
|
||||
}
|
||||
|
||||
public int quantityDropped(Random random) {
|
||||
public int quantityDropped(EaglercraftRandom random) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockMobSpawner extends BlockContainer {
|
||||
|
||||
|
@ -16,11 +18,11 @@ public class BlockMobSpawner extends BlockContainer {
|
|||
return new TileEntityMobSpawner();
|
||||
}
|
||||
|
||||
public int idDropped(int i, Random random) {
|
||||
public int idDropped(int i, EaglercraftRandom random) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public int quantityDropped(Random random) {
|
||||
public int quantityDropped(EaglercraftRandom random) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockObsidian extends BlockStone {
|
||||
|
||||
|
@ -12,11 +14,11 @@ public class BlockObsidian extends BlockStone {
|
|||
super(i, j);
|
||||
}
|
||||
|
||||
public int quantityDropped(Random random) {
|
||||
public int quantityDropped(EaglercraftRandom random) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
public int idDropped(int i, Random random) {
|
||||
public int idDropped(int i, EaglercraftRandom random) {
|
||||
return Block.obsidian.blockID;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockOre extends Block {
|
||||
|
||||
|
@ -12,7 +14,7 @@ public class BlockOre extends Block {
|
|||
super(i, j, Material.rock);
|
||||
}
|
||||
|
||||
public int idDropped(int i, Random random) {
|
||||
public int idDropped(int i, EaglercraftRandom random) {
|
||||
if (blockID == Block.oreCoal.blockID) {
|
||||
return Item.coal.shiftedIndex;
|
||||
}
|
||||
|
@ -26,7 +28,7 @@ public class BlockOre extends Block {
|
|||
}
|
||||
}
|
||||
|
||||
public int quantityDropped(Random random) {
|
||||
public int quantityDropped(EaglercraftRandom random) {
|
||||
if (blockID == Block.oreLapis.blockID) {
|
||||
return 4 + random.nextInt(5);
|
||||
} else {
|
||||
|
|
|
@ -4,8 +4,8 @@ package net.minecraft.src;
|
|||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.io.PrintStream;
|
||||
import java.util.Random;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockPortal extends BlockBreakable {
|
||||
|
||||
|
@ -48,7 +48,6 @@ public class BlockPortal extends BlockBreakable {
|
|||
|| world.getBlockId(i, j, k + 1) == Block.obsidian.blockID) {
|
||||
i1 = 1;
|
||||
}
|
||||
System.out.println((new StringBuilder()).append(l).append(", ").append(i1).toString());
|
||||
if (l == i1) {
|
||||
return false;
|
||||
}
|
||||
|
@ -130,7 +129,7 @@ public class BlockPortal extends BlockBreakable {
|
|||
return true;
|
||||
}
|
||||
|
||||
public int quantityDropped(Random random) {
|
||||
public int quantityDropped(EaglercraftRandom random) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -147,7 +146,7 @@ public class BlockPortal extends BlockBreakable {
|
|||
}
|
||||
}
|
||||
|
||||
public void randomDisplayTick(World world, int i, int j, int k, Random random) {
|
||||
public void randomDisplayTick(World world, int i, int j, int k, EaglercraftRandom random) {
|
||||
if (random.nextInt(100) == 0) {
|
||||
world.playSoundEffect((double) i + 0.5D, (double) j + 0.5D, (double) k + 0.5D, "portal.portal", 1.0F,
|
||||
random.nextFloat() * 0.4F + 0.8F);
|
||||
|
|
|
@ -5,7 +5,8 @@ package net.minecraft.src;
|
|||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockPressurePlate extends Block {
|
||||
|
||||
|
@ -51,7 +52,7 @@ public class BlockPressurePlate extends Block {
|
|||
}
|
||||
}
|
||||
|
||||
public void updateTick(World world, int i, int j, int k, Random random) {
|
||||
public void updateTick(World world, int i, int j, int k, EaglercraftRandom random) {
|
||||
if (world.multiplayerWorld) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockRedstoneOre extends Block {
|
||||
|
||||
|
@ -42,28 +44,28 @@ public class BlockRedstoneOre extends Block {
|
|||
}
|
||||
}
|
||||
|
||||
public void updateTick(World world, int i, int j, int k, Random random) {
|
||||
public void updateTick(World world, int i, int j, int k, EaglercraftRandom random) {
|
||||
if (blockID == Block.oreRedstoneGlowing.blockID) {
|
||||
world.setBlockWithNotify(i, j, k, Block.oreRedstone.blockID);
|
||||
}
|
||||
}
|
||||
|
||||
public int idDropped(int i, Random random) {
|
||||
public int idDropped(int i, EaglercraftRandom random) {
|
||||
return Item.redstone.shiftedIndex;
|
||||
}
|
||||
|
||||
public int quantityDropped(Random random) {
|
||||
public int quantityDropped(EaglercraftRandom random) {
|
||||
return 4 + random.nextInt(2);
|
||||
}
|
||||
|
||||
public void randomDisplayTick(World world, int i, int j, int k, Random random) {
|
||||
public void randomDisplayTick(World world, int i, int j, int k, EaglercraftRandom random) {
|
||||
if (field_468_a) {
|
||||
func_319_i(world, i, j, k);
|
||||
}
|
||||
}
|
||||
|
||||
private void func_319_i(World world, int i, int j, int k) {
|
||||
Random random = world.rand;
|
||||
EaglercraftRandom random = world.rand;
|
||||
double d = 0.0625D;
|
||||
for (int l = 0; l < 6; l++) {
|
||||
double d1 = (float) i + random.nextFloat();
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockRedstoneRepeater extends Block {
|
||||
|
||||
|
@ -34,7 +36,7 @@ public class BlockRedstoneRepeater extends Block {
|
|||
}
|
||||
}
|
||||
|
||||
public void updateTick(World world, int i, int j, int k, Random random) {
|
||||
public void updateTick(World world, int i, int j, int k, EaglercraftRandom random) {
|
||||
int l = world.getBlockMetadata(i, j, k);
|
||||
boolean flag = func_22022_g(world, i, j, k, l);
|
||||
if (field_22025_c && !flag) {
|
||||
|
@ -160,11 +162,11 @@ public class BlockRedstoneRepeater extends Block {
|
|||
return false;
|
||||
}
|
||||
|
||||
public int idDropped(int i, Random random) {
|
||||
public int idDropped(int i, EaglercraftRandom random) {
|
||||
return Item.field_22018_aZ.shiftedIndex;
|
||||
}
|
||||
|
||||
public void randomDisplayTick(World world, int i, int j, int k, Random random) {
|
||||
public void randomDisplayTick(World world, int i, int j, int k, EaglercraftRandom random) {
|
||||
if (!field_22025_c) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -6,6 +6,8 @@ package net.minecraft.src;
|
|||
|
||||
import java.util.*;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockRedstoneTorch extends BlockTorch {
|
||||
|
||||
public int getBlockTextureFromSideAndMetadata(int i, int j) {
|
||||
|
@ -104,7 +106,7 @@ public class BlockRedstoneTorch extends BlockTorch {
|
|||
return l == 2 && world.isBlockIndirectlyProvidingPowerTo(i + 1, j, k, 5);
|
||||
}
|
||||
|
||||
public void updateTick(World world, int i, int j, int k, Random random) {
|
||||
public void updateTick(World world, int i, int j, int k, EaglercraftRandom random) {
|
||||
boolean flag = func_22026_h(world, i, j, k);
|
||||
for (; torchUpdates.size() > 0
|
||||
&& world.func_22139_r() - ((RedstoneUpdateInfo) torchUpdates.get(0)).updateTime > 100L; torchUpdates
|
||||
|
@ -145,7 +147,7 @@ public class BlockRedstoneTorch extends BlockTorch {
|
|||
}
|
||||
}
|
||||
|
||||
public int idDropped(int i, Random random) {
|
||||
public int idDropped(int i, EaglercraftRandom random) {
|
||||
return Block.torchRedstoneActive.blockID;
|
||||
}
|
||||
|
||||
|
@ -153,7 +155,7 @@ public class BlockRedstoneTorch extends BlockTorch {
|
|||
return true;
|
||||
}
|
||||
|
||||
public void randomDisplayTick(World world, int i, int j, int k, Random random) {
|
||||
public void randomDisplayTick(World world, int i, int j, int k, EaglercraftRandom random) {
|
||||
if (!torchActive) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -6,6 +6,8 @@ package net.minecraft.src;
|
|||
|
||||
import java.util.*;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockRedstoneWire extends Block {
|
||||
|
||||
public BlockRedstoneWire(int i, int j) {
|
||||
|
@ -259,7 +261,7 @@ public class BlockRedstoneWire extends Block {
|
|||
super.onNeighborBlockChange(world, i, j, k, l);
|
||||
}
|
||||
|
||||
public int idDropped(int i, Random random) {
|
||||
public int idDropped(int i, EaglercraftRandom random) {
|
||||
return Item.redstone.shiftedIndex;
|
||||
}
|
||||
|
||||
|
@ -322,7 +324,7 @@ public class BlockRedstoneWire extends Block {
|
|||
return wiresProvidePower;
|
||||
}
|
||||
|
||||
public void randomDisplayTick(World world, int i, int j, int k, Random random) {
|
||||
public void randomDisplayTick(World world, int i, int j, int k, EaglercraftRandom random) {
|
||||
int l = world.getBlockMetadata(i, j, k);
|
||||
if (l > 0) {
|
||||
double d = (double) i + 0.5D + ((double) random.nextFloat() - 0.5D) * 0.20000000000000001D;
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockReed extends Block {
|
||||
|
||||
|
@ -16,7 +18,7 @@ public class BlockReed extends Block {
|
|||
setTickOnLoad(true);
|
||||
}
|
||||
|
||||
public void updateTick(World world, int i, int j, int k, Random random) {
|
||||
public void updateTick(World world, int i, int j, int k, EaglercraftRandom random) {
|
||||
if (world.isAirBlock(i, j + 1, k)) {
|
||||
int l;
|
||||
for (l = 1; world.getBlockId(i, j - l, k) == blockID; l++) {
|
||||
|
@ -72,7 +74,7 @@ public class BlockReed extends Block {
|
|||
return null;
|
||||
}
|
||||
|
||||
public int idDropped(int i, Random random) {
|
||||
public int idDropped(int i, EaglercraftRandom random) {
|
||||
return Item.reed.shiftedIndex;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockSand extends Block {
|
||||
|
||||
|
@ -20,7 +22,7 @@ public class BlockSand extends Block {
|
|||
world.scheduleBlockUpdate(i, j, k, blockID, tickRate());
|
||||
}
|
||||
|
||||
public void updateTick(World world, int i, int j, int k, Random random) {
|
||||
public void updateTick(World world, int i, int j, int k, EaglercraftRandom random) {
|
||||
tryToFall(world, i, j, k);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockSapling extends BlockFlower {
|
||||
|
||||
protected BlockSapling(int i, int j) {
|
||||
|
@ -14,7 +15,7 @@ public class BlockSapling extends BlockFlower {
|
|||
setBlockBounds(0.5F - f, 0.0F, 0.5F - f, 0.5F + f, f * 2.0F, 0.5F + f);
|
||||
}
|
||||
|
||||
public void updateTick(World world, int i, int j, int k, Random random) {
|
||||
public void updateTick(World world, int i, int j, int k, EaglercraftRandom random) {
|
||||
super.updateTick(world, i, j, k, random);
|
||||
if (world.getBlockLightValue(i, j + 1, k) >= 9 && random.nextInt(5) == 0) {
|
||||
int l = world.getBlockMetadata(i, j, k);
|
||||
|
@ -26,7 +27,7 @@ public class BlockSapling extends BlockFlower {
|
|||
}
|
||||
}
|
||||
|
||||
public void growTree(World world, int i, int j, int k, Random random) {
|
||||
public void growTree(World world, int i, int j, int k, EaglercraftRandom random) {
|
||||
world.setBlock(i, j, k, 0);
|
||||
Object obj = new WorldGenTrees();
|
||||
if (random.nextInt(10) == 0) {
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockSign extends BlockContainer {
|
||||
|
||||
protected BlockSign(int i, Class class1, boolean flag) {
|
||||
|
@ -72,7 +73,7 @@ public class BlockSign extends BlockContainer {
|
|||
}
|
||||
}
|
||||
|
||||
public int idDropped(int i, Random random) {
|
||||
public int idDropped(int i, EaglercraftRandom random) {
|
||||
return Item.sign.shiftedIndex;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockSnow extends Block {
|
||||
|
||||
protected BlockSnow(int i, int j) {
|
||||
|
@ -62,15 +63,15 @@ public class BlockSnow extends Block {
|
|||
world.setBlockWithNotify(i, j, k, 0);
|
||||
}
|
||||
|
||||
public int idDropped(int i, Random random) {
|
||||
public int idDropped(int i, EaglercraftRandom random) {
|
||||
return Item.snowball.shiftedIndex;
|
||||
}
|
||||
|
||||
public int quantityDropped(Random random) {
|
||||
public int quantityDropped(EaglercraftRandom random) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public void updateTick(World world, int i, int j, int k, Random random) {
|
||||
public void updateTick(World world, int i, int j, int k, EaglercraftRandom random) {
|
||||
if (world.getSavedLightValue(EnumSkyBlock.Block, i, j, k) > 11) {
|
||||
dropBlockAsItem(world, i, j, k, world.getBlockMetadata(i, j, k));
|
||||
world.setBlockWithNotify(i, j, k, 0);
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockSnowBlock extends Block {
|
||||
|
||||
protected BlockSnowBlock(int i, int j) {
|
||||
|
@ -13,15 +14,15 @@ public class BlockSnowBlock extends Block {
|
|||
setTickOnLoad(true);
|
||||
}
|
||||
|
||||
public int idDropped(int i, Random random) {
|
||||
public int idDropped(int i, EaglercraftRandom random) {
|
||||
return Item.snowball.shiftedIndex;
|
||||
}
|
||||
|
||||
public int quantityDropped(Random random) {
|
||||
public int quantityDropped(EaglercraftRandom random) {
|
||||
return 4;
|
||||
}
|
||||
|
||||
public void updateTick(World world, int i, int j, int k, Random random) {
|
||||
public void updateTick(World world, int i, int j, int k, EaglercraftRandom random) {
|
||||
if (world.getSavedLightValue(EnumSkyBlock.Block, i, j, k) > 11) {
|
||||
dropBlockAsItem(world, i, j, k, world.getBlockMetadata(i, j, k));
|
||||
world.setBlockWithNotify(i, j, k, 0);
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockSoil extends Block {
|
||||
|
||||
protected BlockSoil(int i) {
|
||||
|
@ -39,7 +40,7 @@ public class BlockSoil extends Block {
|
|||
}
|
||||
}
|
||||
|
||||
public void updateTick(World world, int i, int j, int k, Random random) {
|
||||
public void updateTick(World world, int i, int j, int k, EaglercraftRandom random) {
|
||||
if (random.nextInt(5) == 0) {
|
||||
if (isWaterNearby(world, i, j, k)) {
|
||||
world.setBlockMetadataWithNotify(i, j, k, 7);
|
||||
|
@ -98,7 +99,7 @@ public class BlockSoil extends Block {
|
|||
}
|
||||
}
|
||||
|
||||
public int idDropped(int i, Random random) {
|
||||
public int idDropped(int i, EaglercraftRandom random) {
|
||||
return Block.dirt.idDropped(0, random);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,7 +5,8 @@ package net.minecraft.src;
|
|||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Random;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockStairs extends Block {
|
||||
|
||||
|
@ -68,7 +69,7 @@ public class BlockStairs extends Block {
|
|||
setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
|
||||
}
|
||||
|
||||
public void randomDisplayTick(World world, int i, int j, int k, Random random) {
|
||||
public void randomDisplayTick(World world, int i, int j, int k, EaglercraftRandom random) {
|
||||
modelBlock.randomDisplayTick(world, i, j, k, random);
|
||||
}
|
||||
|
||||
|
@ -92,11 +93,11 @@ public class BlockStairs extends Block {
|
|||
return modelBlock.getRenderBlockPass();
|
||||
}
|
||||
|
||||
public int idDropped(int i, Random random) {
|
||||
public int idDropped(int i, EaglercraftRandom random) {
|
||||
return modelBlock.idDropped(i, random);
|
||||
}
|
||||
|
||||
public int quantityDropped(Random random) {
|
||||
public int quantityDropped(EaglercraftRandom random) {
|
||||
return modelBlock.quantityDropped(random);
|
||||
}
|
||||
|
||||
|
@ -157,7 +158,7 @@ public class BlockStairs extends Block {
|
|||
modelBlock.onEntityWalking(world, i, j, k, entity);
|
||||
}
|
||||
|
||||
public void updateTick(World world, int i, int j, int k, Random random) {
|
||||
public void updateTick(World world, int i, int j, int k, EaglercraftRandom random) {
|
||||
modelBlock.updateTick(world, i, j, k, random);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockStationary extends BlockFluids {
|
||||
|
||||
protected BlockStationary(int i, Material material) {
|
||||
|
@ -32,7 +33,7 @@ public class BlockStationary extends BlockFluids {
|
|||
world.field_1043_h = false;
|
||||
}
|
||||
|
||||
public void updateTick(World world, int i, int j, int k, Random random) {
|
||||
public void updateTick(World world, int i, int j, int k, EaglercraftRandom random) {
|
||||
if (blockMaterial == Material.lava) {
|
||||
int l = random.nextInt(3);
|
||||
for (int i1 = 0; i1 < l; i1++) {
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockStep extends Block {
|
||||
|
||||
public BlockStep(int i, boolean flag) {
|
||||
|
@ -57,11 +58,11 @@ public class BlockStep extends Block {
|
|||
}
|
||||
}
|
||||
|
||||
public int idDropped(int i, Random random) {
|
||||
public int idDropped(int i, EaglercraftRandom random) {
|
||||
return Block.stairSingle.blockID;
|
||||
}
|
||||
|
||||
public int quantityDropped(Random random) {
|
||||
public int quantityDropped(EaglercraftRandom random) {
|
||||
return !blockType ? 1 : 2;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,18 +1,19 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockStone extends Block {
|
||||
|
||||
public BlockStone(int i, int j) {
|
||||
super(i, j, Material.rock);
|
||||
}
|
||||
|
||||
public int idDropped(int i, Random random) {
|
||||
public int idDropped(int i, EaglercraftRandom random) {
|
||||
return Block.cobblestone.blockID;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockTNT extends Block {
|
||||
|
||||
public BlockTNT(int i, int j) {
|
||||
|
@ -30,7 +31,7 @@ public class BlockTNT extends Block {
|
|||
}
|
||||
}
|
||||
|
||||
public int quantityDropped(Random random) {
|
||||
public int quantityDropped(EaglercraftRandom random) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ package net.minecraft.src;
|
|||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockTorch extends Block {
|
||||
|
||||
|
@ -65,7 +65,7 @@ public class BlockTorch extends Block {
|
|||
world.setBlockMetadataWithNotify(i, j, k, i1);
|
||||
}
|
||||
|
||||
public void updateTick(World world, int i, int j, int k, Random random) {
|
||||
public void updateTick(World world, int i, int j, int k, EaglercraftRandom random) {
|
||||
super.updateTick(world, i, j, k, random);
|
||||
if (world.getBlockMetadata(i, j, k) == 0) {
|
||||
onBlockAdded(world, i, j, k);
|
||||
|
@ -141,7 +141,7 @@ public class BlockTorch extends Block {
|
|||
return super.collisionRayTrace(world, i, j, k, vec3d, vec3d1);
|
||||
}
|
||||
|
||||
public void randomDisplayTick(World world, int i, int j, int k, Random random) {
|
||||
public void randomDisplayTick(World world, int i, int j, int k, EaglercraftRandom random) {
|
||||
int l = world.getBlockMetadata(i, j, k);
|
||||
double d = (float) i + 0.5F;
|
||||
double d1 = (float) j + 0.7F;
|
||||
|
|
|
@ -4,9 +4,10 @@ package net.minecraft.src;
|
|||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.io.PrintStream;
|
||||
import java.util.*;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class Chunk {
|
||||
|
||||
public Chunk(World world, int i, int j) {
|
||||
|
@ -516,8 +517,8 @@ public class Chunk {
|
|||
return k1;
|
||||
}
|
||||
|
||||
public Random func_997_a(long l) {
|
||||
return new Random(
|
||||
public EaglercraftRandom func_997_a(long l) {
|
||||
return new EaglercraftRandom(
|
||||
worldObj.func_22138_q() + (long) (xPosition * xPosition * 0x4c1906) + (long) (xPosition * 0x5ac0db)
|
||||
+ (long) (zPosition * zPosition) * 0x4307a7L + (long) (zPosition * 0x5f24f) ^ l);
|
||||
}
|
||||
|
|
|
@ -4,7 +4,8 @@ package net.minecraft.src;
|
|||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class ChunkProviderGenerate implements IChunkProvider {
|
||||
|
||||
|
@ -15,7 +16,7 @@ public class ChunkProviderGenerate implements IChunkProvider {
|
|||
field_902_u = new MapGenCaves();
|
||||
field_914_i = new int[32][32];
|
||||
worldObj = world;
|
||||
rand = new Random(l);
|
||||
rand = new EaglercraftRandom(l);
|
||||
field_912_k = new NoiseGeneratorOctaves(rand, 16);
|
||||
field_911_l = new NoiseGeneratorOctaves(rand, 16);
|
||||
field_910_m = new NoiseGeneratorOctaves(rand, 8);
|
||||
|
@ -507,7 +508,7 @@ public class ChunkProviderGenerate implements IChunkProvider {
|
|||
return "RandomLevelSource";
|
||||
}
|
||||
|
||||
private Random rand;
|
||||
private EaglercraftRandom rand;
|
||||
private NoiseGeneratorOctaves field_912_k;
|
||||
private NoiseGeneratorOctaves field_911_l;
|
||||
private NoiseGeneratorOctaves field_910_m;
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class ChunkProviderHell implements IChunkProvider {
|
||||
|
||||
public ChunkProviderHell(World world, long l) {
|
||||
|
@ -14,7 +15,7 @@ public class ChunkProviderHell implements IChunkProvider {
|
|||
field_4160_r = new double[256];
|
||||
field_4159_s = new MapGenCavesHell();
|
||||
field_4164_n = world;
|
||||
hellRNG = new Random(l);
|
||||
hellRNG = new EaglercraftRandom(l);
|
||||
field_4169_i = new NoiseGeneratorOctaves(hellRNG, 16);
|
||||
field_4168_j = new NoiseGeneratorOctaves(hellRNG, 16);
|
||||
field_4167_k = new NoiseGeneratorOctaves(hellRNG, 8);
|
||||
|
@ -336,7 +337,7 @@ public class ChunkProviderHell implements IChunkProvider {
|
|||
return "HellRandomLevelSource";
|
||||
}
|
||||
|
||||
private Random hellRNG;
|
||||
private EaglercraftRandom hellRNG;
|
||||
private NoiseGeneratorOctaves field_4169_i;
|
||||
private NoiseGeneratorOctaves field_4168_j;
|
||||
private NoiseGeneratorOctaves field_4167_k;
|
||||
|
|
|
@ -6,7 +6,7 @@ package net.minecraft.src;
|
|||
|
||||
import java.util.*;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglerAdapter;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
import net.lax1dude.eaglercraft.TextureLocation;
|
||||
import net.lax1dude.eaglercraft.adapter.Tessellator;
|
||||
|
||||
|
@ -18,7 +18,7 @@ public class EffectRenderer {
|
|||
|
||||
public EffectRenderer(World world, RenderEngine renderengine) {
|
||||
fxLayers = new List[4];
|
||||
rand = new Random();
|
||||
rand = new EaglercraftRandom();
|
||||
if (world != null) {
|
||||
worldObj = world;
|
||||
}
|
||||
|
@ -169,5 +169,5 @@ public class EffectRenderer {
|
|||
protected World worldObj;
|
||||
private List fxLayers[];
|
||||
private RenderEngine renderer;
|
||||
private Random rand;
|
||||
private EaglercraftRandom rand;
|
||||
}
|
||||
|
|
|
@ -5,7 +5,8 @@ package net.minecraft.src;
|
|||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class EmptyChunk extends Chunk {
|
||||
|
||||
|
@ -122,8 +123,8 @@ public class EmptyChunk extends Chunk {
|
|||
return k2 + (k2 / 2) * 3;
|
||||
}
|
||||
|
||||
public Random func_997_a(long l) {
|
||||
return new Random(
|
||||
public EaglercraftRandom func_997_a(long l) {
|
||||
return new EaglercraftRandom(
|
||||
worldObj.func_22138_q() + (long) (xPosition * xPosition * 0x4c1906) + (long) (xPosition * 0x5ac0db)
|
||||
+ (long) (zPosition * zPosition) * 0x4307a7L + (long) (zPosition * 0x5f24f) ^ l);
|
||||
}
|
||||
|
|
|
@ -5,7 +5,8 @@ package net.minecraft.src;
|
|||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public abstract class Entity {
|
||||
|
||||
|
@ -31,7 +32,7 @@ public abstract class Entity {
|
|||
noClip = false;
|
||||
entityCollisionReduction = 0.0F;
|
||||
field_9313_bc = false;
|
||||
rand = new Random();
|
||||
rand = new EaglercraftRandom();
|
||||
ticksExisted = 0;
|
||||
fireResistance = 1;
|
||||
fire = 0;
|
||||
|
@ -935,7 +936,7 @@ public abstract class Entity {
|
|||
public boolean noClip;
|
||||
public float entityCollisionReduction;
|
||||
public boolean field_9313_bc;
|
||||
protected Random rand;
|
||||
protected EaglercraftRandom rand;
|
||||
public int ticksExisted;
|
||||
public int fireResistance;
|
||||
public int fire;
|
||||
|
|
|
@ -6,9 +6,9 @@ package net.minecraft.src;
|
|||
|
||||
import java.nio.FloatBuffer;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglerAdapter;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
import net.lax1dude.eaglercraft.TextureLocation;
|
||||
import net.lax1dude.eaglercraft.glemu.EffectPipelineFXAA;
|
||||
import net.minecraft.client.Minecraft;
|
||||
|
@ -40,7 +40,7 @@ public class EntityRenderer {
|
|||
field_21154_m = 0.0D;
|
||||
field_21153_n = 0.0D;
|
||||
field_1384_l = System.currentTimeMillis();
|
||||
random = new Random();
|
||||
random = new EaglercraftRandom();
|
||||
field_1394_b = 0;
|
||||
field_1393_c = 0;
|
||||
field_1392_d = GLAllocation.createDirectFloatBuffer(16);
|
||||
|
@ -670,7 +670,7 @@ public class EntityRenderer {
|
|||
private double field_21154_m;
|
||||
private double field_21153_n;
|
||||
private long field_1384_l;
|
||||
private Random random;
|
||||
private EaglercraftRandom random;
|
||||
volatile int field_1394_b;
|
||||
volatile int field_1393_c;
|
||||
FloatBuffer field_1392_d;
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class EntitySheep extends EntityAnimals {
|
||||
|
||||
public EntitySheep(World world) {
|
||||
|
@ -80,7 +81,7 @@ public class EntitySheep extends EntityAnimals {
|
|||
}
|
||||
}
|
||||
|
||||
public static int func_21070_a(Random random) {
|
||||
public static int func_21070_a(EaglercraftRandom random) {
|
||||
int i = random.nextInt(100);
|
||||
if (i < 5) {
|
||||
return 15;
|
||||
|
|
|
@ -6,11 +6,13 @@ package net.minecraft.src;
|
|||
|
||||
import java.util.*;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class Explosion {
|
||||
|
||||
public Explosion(World world, Entity entity, double d, double d1, double d2, float f) {
|
||||
field_12257_a = false;
|
||||
ExplosionRNG = new Random();
|
||||
ExplosionRNG = new EaglercraftRandom();
|
||||
destroyedBlockPositions = new HashSet();
|
||||
worldObj = world;
|
||||
exploder = entity;
|
||||
|
@ -160,7 +162,7 @@ public class Explosion {
|
|||
}
|
||||
|
||||
public boolean field_12257_a;
|
||||
private Random ExplosionRNG;
|
||||
private EaglercraftRandom ExplosionRNG;
|
||||
private World worldObj;
|
||||
public double explosionX;
|
||||
public double explosionY;
|
||||
|
|
|
@ -4,11 +4,8 @@ package net.minecraft.src;
|
|||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglerAdapter;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class GuiCreateWorld extends GuiScreen {
|
||||
|
||||
|
@ -71,7 +68,7 @@ public class GuiCreateWorld extends GuiScreen {
|
|||
return;
|
||||
}
|
||||
field_22130_l = true;
|
||||
long l = (new Random()).nextLong();
|
||||
long l = (new EaglercraftRandom()).nextLong();
|
||||
String s = field_22133_i.func_22071_a();
|
||||
if (!MathHelper.func_22282_a(s)) {
|
||||
try {
|
||||
|
|
|
@ -4,10 +4,10 @@ package net.minecraft.src;
|
|||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Random;
|
||||
|
||||
import net.lax1dude.eaglercraft.AWTColor;
|
||||
import net.lax1dude.eaglercraft.EaglerAdapter;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
import net.lax1dude.eaglercraft.TextureLocation;
|
||||
import net.lax1dude.eaglercraft.adapter.Tessellator;
|
||||
import net.minecraft.client.Minecraft;
|
||||
|
@ -22,7 +22,7 @@ public class GuiIngame extends Gui {
|
|||
|
||||
public GuiIngame(Minecraft minecraft) {
|
||||
chatMessageList = new ArrayList();
|
||||
rand = new Random();
|
||||
rand = new EaglercraftRandom();
|
||||
field_933_a = null;
|
||||
updateCounter = 0;
|
||||
recordPlaying = "";
|
||||
|
@ -384,7 +384,7 @@ public class GuiIngame extends Gui {
|
|||
|
||||
private static RenderItem itemRenderer = new RenderItem();
|
||||
private java.util.List chatMessageList;
|
||||
private Random rand;
|
||||
private EaglercraftRandom rand;
|
||||
private Minecraft mc;
|
||||
public String field_933_a;
|
||||
private int updateCounter;
|
||||
|
|
|
@ -4,12 +4,10 @@ package net.minecraft.src;
|
|||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.InputStreamReader;
|
||||
import java.nio.charset.Charset;
|
||||
import java.util.*;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglerAdapter;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
import net.lax1dude.eaglercraft.TextureLocation;
|
||||
import net.lax1dude.eaglercraft.adapter.Tessellator;
|
||||
import net.lax1dude.eaglercraft.beta.GuiNoMultiplayer;
|
||||
|
@ -215,11 +213,11 @@ public class GuiMainMenu extends GuiScreen {
|
|||
EaglerAdapter.glEnable(2884 /* GL_CULL_FACE */);
|
||||
}
|
||||
|
||||
static Random getRand() {
|
||||
static EaglercraftRandom getRand() {
|
||||
return rand;
|
||||
}
|
||||
|
||||
private static final Random rand = new Random();
|
||||
private static final EaglercraftRandom rand = new EaglercraftRandom();
|
||||
/*
|
||||
String minecraftLogo[] = {
|
||||
" * * * * * *** *** *** *** *** ***",
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.io.PrintStream;
|
||||
import java.util.Random;
|
||||
|
||||
public class Item {
|
||||
|
||||
protected Item(int i) {
|
||||
|
@ -139,7 +139,7 @@ public class Item {
|
|||
return containerItem != null;
|
||||
}
|
||||
|
||||
protected static Random itemRand = new Random();
|
||||
protected static EaglercraftRandom itemRand = new EaglercraftRandom();
|
||||
public static Item itemsList[] = new Item[32000];
|
||||
public static Item shovelSteel;
|
||||
public static Item pickaxeSteel;
|
||||
|
|
|
@ -1,16 +1,17 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class MapGenBase {
|
||||
|
||||
public MapGenBase() {
|
||||
field_1306_a = 8;
|
||||
rand = new Random();
|
||||
rand = new EaglercraftRandom();
|
||||
}
|
||||
|
||||
public void func_867_a(IChunkProvider ichunkprovider, World world, int i, int j, byte abyte0[]) {
|
||||
|
@ -32,5 +33,5 @@ public class MapGenBase {
|
|||
}
|
||||
|
||||
protected int field_1306_a;
|
||||
protected Random rand;
|
||||
protected EaglercraftRandom rand;
|
||||
}
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class MapGenCaves extends MapGenBase {
|
||||
|
||||
public MapGenCaves() {
|
||||
|
@ -21,7 +22,7 @@ public class MapGenCaves extends MapGenBase {
|
|||
double d5 = j * 16 + 8;
|
||||
float f3 = 0.0F;
|
||||
float f4 = 0.0F;
|
||||
Random random = new Random(rand.nextLong());
|
||||
EaglercraftRandom random = new EaglercraftRandom(rand.nextLong());
|
||||
if (l <= 0) {
|
||||
int i1 = field_1306_a * 16 - 16;
|
||||
l = i1 - random.nextInt(i1 / 4);
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class MapGenCavesHell extends MapGenBase {
|
||||
|
||||
public MapGenCavesHell() {
|
||||
|
@ -21,7 +22,7 @@ public class MapGenCavesHell extends MapGenBase {
|
|||
double d5 = j * 16 + 8;
|
||||
float f3 = 0.0F;
|
||||
float f4 = 0.0F;
|
||||
Random random = new Random(rand.nextLong());
|
||||
EaglercraftRandom random = new EaglercraftRandom(rand.nextLong());
|
||||
if (l <= 0) {
|
||||
int i1 = field_1306_a * 16 - 16;
|
||||
l = i1 - random.nextInt(i1 / 4);
|
||||
|
|
|
@ -1,11 +1,13 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.AWTColor;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.awt.Color;
|
||||
import java.util.Random;
|
||||
|
||||
public class MobSpawnerBase {
|
||||
|
||||
|
@ -31,7 +33,7 @@ public class MobSpawnerBase {
|
|||
iceDesert.topBlock = iceDesert.fillerBlock = (byte) Block.sand.blockID;
|
||||
}
|
||||
|
||||
public WorldGenerator getRandomWorldGenForTrees(Random random) {
|
||||
public WorldGenerator getRandomWorldGenForTrees(EaglercraftRandom random) {
|
||||
if (random.nextInt(10) == 0) {
|
||||
return new WorldGenBigTree();
|
||||
} else {
|
||||
|
@ -110,7 +112,7 @@ public class MobSpawnerBase {
|
|||
if (f > 1.0F) {
|
||||
f = 1.0F;
|
||||
}
|
||||
return Color.getHSBColor(0.6222222F - f * 0.05F, 0.5F + f * 0.1F, 1.0F).getRGB();
|
||||
return AWTColor.HSBtoRGB(0.6222222F - f * 0.05F, 0.5F + f * 0.1F, 1.0F);
|
||||
}
|
||||
|
||||
public Class[] getEntitiesForType(EnumCreatureType enumcreaturetype) {
|
||||
|
|
|
@ -1,17 +1,18 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class MobSpawnerForest extends MobSpawnerBase {
|
||||
|
||||
public MobSpawnerForest() {
|
||||
}
|
||||
|
||||
public WorldGenerator getRandomWorldGenForTrees(Random random) {
|
||||
public WorldGenerator getRandomWorldGenForTrees(EaglercraftRandom random) {
|
||||
if (random.nextInt(5) == 0) {
|
||||
return new WorldGenForest();
|
||||
}
|
||||
|
|
|
@ -1,17 +1,18 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class MobSpawnerRainforest extends MobSpawnerBase {
|
||||
|
||||
public MobSpawnerRainforest() {
|
||||
}
|
||||
|
||||
public WorldGenerator getRandomWorldGenForTrees(Random random) {
|
||||
public WorldGenerator getRandomWorldGenForTrees(EaglercraftRandom random) {
|
||||
if (random.nextInt(3) == 0) {
|
||||
return new WorldGenBigTree();
|
||||
} else {
|
||||
|
|
|
@ -1,17 +1,18 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class MobSpawnerTaiga extends MobSpawnerBase {
|
||||
|
||||
public MobSpawnerTaiga() {
|
||||
}
|
||||
|
||||
public WorldGenerator getRandomWorldGenForTrees(Random random) {
|
||||
public WorldGenerator getRandomWorldGenForTrees(EaglercraftRandom random) {
|
||||
if (random.nextInt(3) == 0) {
|
||||
return new WorldGenTaiga1();
|
||||
} else {
|
||||
|
|
|
@ -4,7 +4,7 @@ package net.minecraft.src;
|
|||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class ModelGhast extends ModelBase {
|
||||
|
||||
|
@ -14,7 +14,7 @@ public class ModelGhast extends ModelBase {
|
|||
body = new ModelRenderer(0, 0);
|
||||
body.addBox(-8F, -8F, -8F, 16, 16, 16);
|
||||
body.offsetY += 24 + byte0;
|
||||
Random random = new Random(1660L);
|
||||
EaglercraftRandom random = new EaglercraftRandom(1660L);
|
||||
for (int i = 0; i < tentacles.length; i++) {
|
||||
tentacles[i] = new ModelRenderer(0, 0);
|
||||
float f = (((((float) (i % 3) - (float) ((i / 3) % 2) * 0.5F) + 0.25F) / 2.0F) * 2.0F - 1.0F) * 5F;
|
||||
|
|
|
@ -6,8 +6,8 @@ package net.minecraft.src;
|
|||
|
||||
import java.io.*;
|
||||
import java.net.*;
|
||||
import java.util.Random;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
import net.lax1dude.eaglercraft.compat.UnexpectedThrowable;
|
||||
import net.minecraft.client.Minecraft;
|
||||
|
||||
|
@ -16,7 +16,7 @@ public class NetClientHandler extends NetHandler {
|
|||
public NetClientHandler(Minecraft minecraft, String s, int i) {
|
||||
disconnected = false;
|
||||
field_1210_g = false;
|
||||
rand = new Random();
|
||||
rand = new EaglercraftRandom();
|
||||
mc = minecraft;
|
||||
Socket socket;
|
||||
try {
|
||||
|
@ -545,5 +545,5 @@ public class NetClientHandler extends NetHandler {
|
|||
private Minecraft mc;
|
||||
private WorldClient worldClient;
|
||||
private boolean field_1210_g;
|
||||
Random rand;
|
||||
EaglercraftRandom rand;
|
||||
}
|
||||
|
|
|
@ -1,18 +1,19 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class NoiseGenerator2 {
|
||||
|
||||
public NoiseGenerator2() {
|
||||
this(new Random());
|
||||
this(new EaglercraftRandom());
|
||||
}
|
||||
|
||||
public NoiseGenerator2(Random random) {
|
||||
public NoiseGenerator2(EaglercraftRandom random) {
|
||||
field_4295_e = new int[512];
|
||||
field_4292_a = random.nextDouble() * 256D;
|
||||
field_4291_b = random.nextDouble() * 256D;
|
||||
|
|
|
@ -1,14 +1,16 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class NoiseGeneratorOctaves extends NoiseGenerator {
|
||||
|
||||
public NoiseGeneratorOctaves(Random random, int i) {
|
||||
public NoiseGeneratorOctaves(EaglercraftRandom random, int i) {
|
||||
field_1191_b = i;
|
||||
generatorCollection = new NoiseGeneratorPerlin[i];
|
||||
for (int j = 0; j < i; j++) {
|
||||
|
|
|
@ -1,14 +1,15 @@
|
|||
package net.minecraft.src;
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class NoiseGeneratorOctaves2 extends NoiseGenerator {
|
||||
|
||||
public NoiseGeneratorOctaves2(Random random, int i) {
|
||||
public NoiseGeneratorOctaves2(EaglercraftRandom random, int i) {
|
||||
field_4233_b = i;
|
||||
field_4234_a = new NoiseGenerator2[i];
|
||||
for (int j = 0; j < i; j++) {
|
||||
|
|
|
@ -1,18 +1,19 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class NoiseGeneratorPerlin extends NoiseGenerator {
|
||||
|
||||
public NoiseGeneratorPerlin() {
|
||||
this(new Random());
|
||||
this(new EaglercraftRandom());
|
||||
}
|
||||
|
||||
public NoiseGeneratorPerlin(Random random) {
|
||||
public NoiseGeneratorPerlin(EaglercraftRandom random) {
|
||||
permutations = new int[512];
|
||||
xCoord = random.nextDouble() * 256D;
|
||||
yCoord = random.nextDouble() * 256D;
|
||||
|
|
|
@ -8,6 +8,7 @@ import java.nio.IntBuffer;
|
|||
import java.util.*;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglerAdapter;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
import net.lax1dude.eaglercraft.TextureLocation;
|
||||
import net.lax1dude.eaglercraft.adapter.Tessellator;
|
||||
import net.minecraft.client.Minecraft;
|
||||
|
@ -84,7 +85,7 @@ public class RenderGlobal implements IWorldAccess {
|
|||
}
|
||||
|
||||
private void func_950_f() {
|
||||
Random random = new Random(10842L);
|
||||
EaglercraftRandom random = new EaglercraftRandom(10842L);
|
||||
Tessellator tessellator = Tessellator.instance;
|
||||
tessellator.startDrawingQuads();
|
||||
for (int i = 0; i < 1500; i++) {
|
||||
|
|
|
@ -4,9 +4,8 @@ package net.minecraft.src;
|
|||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglerAdapter;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
import net.lax1dude.eaglercraft.TextureLocation;
|
||||
import net.lax1dude.eaglercraft.adapter.Tessellator;
|
||||
|
||||
|
@ -17,7 +16,7 @@ public class RenderItem extends Render {
|
|||
|
||||
public RenderItem() {
|
||||
renderBlocks = new RenderBlocks();
|
||||
random = new Random();
|
||||
random = new EaglercraftRandom();
|
||||
shadowSize = 0.15F;
|
||||
field_194_c = 0.75F;
|
||||
}
|
||||
|
@ -197,7 +196,7 @@ public class RenderItem extends Render {
|
|||
}
|
||||
|
||||
private RenderBlocks renderBlocks;
|
||||
private Random random;
|
||||
private EaglercraftRandom random;
|
||||
|
||||
@Override
|
||||
protected boolean loadDownloadableImageTexture(String s, String s1) {
|
||||
|
|
|
@ -4,9 +4,8 @@ package net.minecraft.src;
|
|||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglerAdapter;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
import net.lax1dude.eaglercraft.TextureLocation;
|
||||
import net.lax1dude.eaglercraft.adapter.Tessellator;
|
||||
|
||||
|
@ -15,7 +14,7 @@ public class RenderPainting extends Render {
|
|||
private static final TextureLocation paintingTexture = new TextureLocation("/art/kz.png");
|
||||
|
||||
public RenderPainting() {
|
||||
rand = new Random();
|
||||
rand = new EaglercraftRandom();
|
||||
}
|
||||
|
||||
public void func_158_a(EntityPainting entitypainting, double d, double d1, double d2, float f, float f1) {
|
||||
|
@ -124,7 +123,7 @@ public class RenderPainting extends Render {
|
|||
func_158_a((EntityPainting) entity, d, d1, d2, f, f1);
|
||||
}
|
||||
|
||||
private Random rand;
|
||||
private EaglercraftRandom rand;
|
||||
|
||||
@Override
|
||||
protected boolean loadDownloadableImageTexture(String s, String s1) {
|
||||
|
|
|
@ -1,16 +1,17 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.io.PrintStream;
|
||||
import java.util.Random;
|
||||
|
||||
public class Teleporter {
|
||||
|
||||
public Teleporter() {
|
||||
field_4232_a = new Random();
|
||||
field_4232_a = new EaglercraftRandom();
|
||||
}
|
||||
|
||||
public void func_4107_a(World world, Entity entity) {
|
||||
|
@ -252,5 +253,5 @@ public class Teleporter {
|
|||
return true;
|
||||
}
|
||||
|
||||
private Random field_4232_a;
|
||||
private EaglercraftRandom field_4232_a;
|
||||
}
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class TexturePortalFX extends TextureFX {
|
||||
|
||||
|
@ -12,7 +14,7 @@ public class TexturePortalFX extends TextureFX {
|
|||
super(Block.portal.blockIndexInTexture);
|
||||
field_4227_g = 0;
|
||||
field_4226_h = new byte[32][1024];
|
||||
Random random = new Random(100L);
|
||||
EaglercraftRandom random = new EaglercraftRandom(100L);
|
||||
for (int i = 0; i < 32; i++) {
|
||||
for (int j = 0; j < 16; j++) {
|
||||
for (int k = 0; k < 16; k++) {
|
||||
|
|
|
@ -1,16 +1,18 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class TileEntityDispenser extends TileEntity implements IInventory {
|
||||
|
||||
public TileEntityDispenser() {
|
||||
dispenserContents = new ItemStack[9];
|
||||
dispenserRandom = new Random();
|
||||
dispenserRandom = new EaglercraftRandom();
|
||||
}
|
||||
|
||||
public int getSizeInventory() {
|
||||
|
@ -111,5 +113,5 @@ public class TileEntityDispenser extends TileEntity implements IInventory {
|
|||
}
|
||||
|
||||
private ItemStack dispenserContents[];
|
||||
private Random dispenserRandom;
|
||||
private EaglercraftRandom dispenserRandom;
|
||||
}
|
||||
|
|
|
@ -7,6 +7,8 @@ package net.minecraft.src;
|
|||
import java.io.PrintStream;
|
||||
import java.util.*;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class World implements IBlockAccess {
|
||||
|
||||
public WorldChunkManager getWorldChunkManager() {
|
||||
|
@ -24,12 +26,12 @@ public class World implements IBlockAccess {
|
|||
playerEntities = new ArrayList();
|
||||
field_1019_F = 0xffffffL;
|
||||
skylightSubtracted = 0;
|
||||
field_9437_g = (new Random()).nextInt();
|
||||
rand = new EaglercraftRandom();
|
||||
field_9437_g = rand.nextInt();
|
||||
field_9436_h = 0x3c6ef35f;
|
||||
field_1043_h = false;
|
||||
lockTimestamp = System.currentTimeMillis();
|
||||
autosavePeriod = 40;
|
||||
rand = new Random();
|
||||
isNewWorld = false;
|
||||
worldAccesses = new ArrayList();
|
||||
field_9428_I = new ArrayList();
|
||||
|
@ -59,12 +61,12 @@ public class World implements IBlockAccess {
|
|||
playerEntities = new ArrayList();
|
||||
field_1019_F = 0xffffffL;
|
||||
skylightSubtracted = 0;
|
||||
field_9437_g = (new Random()).nextInt();
|
||||
rand = new EaglercraftRandom();
|
||||
field_9437_g = rand.nextInt();
|
||||
field_9436_h = 0x3c6ef35f;
|
||||
field_1043_h = false;
|
||||
lockTimestamp = System.currentTimeMillis();
|
||||
autosavePeriod = 40;
|
||||
rand = new Random();
|
||||
isNewWorld = false;
|
||||
worldAccesses = new ArrayList();
|
||||
field_9428_I = new ArrayList();
|
||||
|
@ -103,12 +105,12 @@ public class World implements IBlockAccess {
|
|||
playerEntities = new ArrayList();
|
||||
field_1019_F = 0xffffffL;
|
||||
skylightSubtracted = 0;
|
||||
field_9437_g = (new Random()).nextInt();
|
||||
rand = new EaglercraftRandom();
|
||||
field_9437_g = rand.nextInt();
|
||||
field_9436_h = 0x3c6ef35f;
|
||||
field_1043_h = false;
|
||||
lockTimestamp = System.currentTimeMillis();
|
||||
autosavePeriod = 40;
|
||||
rand = new Random();
|
||||
isNewWorld = false;
|
||||
worldAccesses = new ArrayList();
|
||||
field_9428_I = new ArrayList();
|
||||
|
@ -1556,7 +1558,7 @@ public class World implements IBlockAccess {
|
|||
|
||||
public void randomDisplayUpdates(int i, int j, int k) {
|
||||
byte byte0 = 16;
|
||||
Random random = new Random();
|
||||
EaglercraftRandom random = new EaglercraftRandom();
|
||||
for (int l = 0; l < 1000; l++) {
|
||||
int i1 = (i + rand.nextInt(byte0)) - rand.nextInt(byte0);
|
||||
int j1 = (j + rand.nextInt(byte0)) - rand.nextInt(byte0);
|
||||
|
@ -1980,7 +1982,7 @@ public class World implements IBlockAccess {
|
|||
private long lockTimestamp;
|
||||
protected int autosavePeriod;
|
||||
public int difficultySetting;
|
||||
public Random rand;
|
||||
public EaglercraftRandom rand;
|
||||
public boolean isNewWorld;
|
||||
public final WorldProvider worldProvider;
|
||||
protected List worldAccesses;
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class WorldChunkManager {
|
||||
|
||||
|
@ -12,9 +14,9 @@ public class WorldChunkManager {
|
|||
}
|
||||
|
||||
public WorldChunkManager(World world) {
|
||||
field_4194_e = new NoiseGeneratorOctaves2(new Random(world.func_22138_q() * 9871L), 4);
|
||||
field_4193_f = new NoiseGeneratorOctaves2(new Random(world.func_22138_q() * 39811L), 4);
|
||||
field_4192_g = new NoiseGeneratorOctaves2(new Random(world.func_22138_q() * 0x84a59L), 2);
|
||||
field_4194_e = new NoiseGeneratorOctaves2(new EaglercraftRandom(world.func_22138_q() * 9871L), 4);
|
||||
field_4193_f = new NoiseGeneratorOctaves2(new EaglercraftRandom(world.func_22138_q() * 39811L), 4);
|
||||
field_4192_g = new NoiseGeneratorOctaves2(new EaglercraftRandom(world.func_22138_q() * 0x84a59L), 2);
|
||||
}
|
||||
|
||||
public MobSpawnerBase func_4074_a(ChunkCoordIntPair chunkcoordintpair) {
|
||||
|
|
|
@ -4,12 +4,12 @@ package net.minecraft.src;
|
|||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class WorldGenBigTree extends WorldGenerator {
|
||||
|
||||
public WorldGenBigTree() {
|
||||
field_881_b = new Random();
|
||||
field_881_b = new EaglercraftRandom();
|
||||
field_878_e = 0;
|
||||
field_876_g = 0.61799999999999999D;
|
||||
field_875_h = 1.0D;
|
||||
|
@ -312,7 +312,7 @@ public class WorldGenBigTree extends WorldGenerator {
|
|||
field_872_k = d2;
|
||||
}
|
||||
|
||||
public boolean generate(World world, Random random, int i, int j, int k) {
|
||||
public boolean generate(World world, EaglercraftRandom random, int i, int j, int k) {
|
||||
worldObj = world;
|
||||
long l = random.nextLong();
|
||||
field_881_b.setSeed(l);
|
||||
|
@ -334,7 +334,7 @@ public class WorldGenBigTree extends WorldGenerator {
|
|||
}
|
||||
|
||||
static final byte field_882_a[] = { 2, 0, 0, 1, 2, 1 };
|
||||
Random field_881_b;
|
||||
EaglercraftRandom field_881_b;
|
||||
World worldObj;
|
||||
int basePos[] = { 0, 0, 0 };
|
||||
int field_878_e;
|
||||
|
|
|
@ -1,17 +1,18 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class WorldGenCactus extends WorldGenerator {
|
||||
|
||||
public WorldGenCactus() {
|
||||
}
|
||||
|
||||
public boolean generate(World world, Random random, int i, int j, int k) {
|
||||
public boolean generate(World world, EaglercraftRandom random, int i, int j, int k) {
|
||||
for (int l = 0; l < 10; l++) {
|
||||
int i1 = (i + random.nextInt(8)) - random.nextInt(8);
|
||||
int j1 = (j + random.nextInt(4)) - random.nextInt(4);
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class WorldGenClay extends WorldGenerator {
|
||||
|
||||
public WorldGenClay(int i) {
|
||||
|
@ -13,7 +14,7 @@ public class WorldGenClay extends WorldGenerator {
|
|||
numberOfBlocks = i;
|
||||
}
|
||||
|
||||
public boolean generate(World world, Random random, int i, int j, int k) {
|
||||
public boolean generate(World world, EaglercraftRandom random, int i, int j, int k) {
|
||||
if (world.getBlockMaterial(i, j, k) != Material.water) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -1,17 +1,18 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class WorldGenDungeons extends WorldGenerator {
|
||||
|
||||
public WorldGenDungeons() {
|
||||
}
|
||||
|
||||
public boolean generate(World world, Random random, int i, int j, int k) {
|
||||
public boolean generate(World world, EaglercraftRandom random, int i, int j, int k) {
|
||||
byte byte0 = 3;
|
||||
int l = random.nextInt(2) + 2;
|
||||
int i1 = random.nextInt(2) + 2;
|
||||
|
@ -113,7 +114,7 @@ public class WorldGenDungeons extends WorldGenerator {
|
|||
return true;
|
||||
}
|
||||
|
||||
private ItemStack pickCheckLootItem(Random random) {
|
||||
private ItemStack pickCheckLootItem(EaglercraftRandom random) {
|
||||
int i = random.nextInt(11);
|
||||
if (i == 0) {
|
||||
return new ItemStack(Item.saddle);
|
||||
|
@ -149,7 +150,7 @@ public class WorldGenDungeons extends WorldGenerator {
|
|||
}
|
||||
}
|
||||
|
||||
private String pickMobSpawner(Random random) {
|
||||
private String pickMobSpawner(EaglercraftRandom random) {
|
||||
int i = random.nextInt(4);
|
||||
if (i == 0) {
|
||||
return "Skeleton";
|
||||
|
|
|
@ -1,17 +1,18 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class WorldGenFire extends WorldGenerator {
|
||||
|
||||
public WorldGenFire() {
|
||||
}
|
||||
|
||||
public boolean generate(World world, Random random, int i, int j, int k) {
|
||||
public boolean generate(World world, EaglercraftRandom random, int i, int j, int k) {
|
||||
for (int l = 0; l < 64; l++) {
|
||||
int i1 = (i + random.nextInt(8)) - random.nextInt(8);
|
||||
int j1 = (j + random.nextInt(4)) - random.nextInt(4);
|
||||
|
|
|
@ -1,18 +1,19 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class WorldGenFlowers extends WorldGenerator {
|
||||
|
||||
public WorldGenFlowers(int i) {
|
||||
plantBlockId = i;
|
||||
}
|
||||
|
||||
public boolean generate(World world, Random random, int i, int j, int k) {
|
||||
public boolean generate(World world, EaglercraftRandom random, int i, int j, int k) {
|
||||
for (int l = 0; l < 64; l++) {
|
||||
int i1 = (i + random.nextInt(8)) - random.nextInt(8);
|
||||
int j1 = (j + random.nextInt(4)) - random.nextInt(4);
|
||||
|
|
|
@ -1,17 +1,18 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class WorldGenForest extends WorldGenerator {
|
||||
|
||||
public WorldGenForest() {
|
||||
}
|
||||
|
||||
public boolean generate(World world, Random random, int i, int j, int k) {
|
||||
public boolean generate(World world, EaglercraftRandom random, int i, int j, int k) {
|
||||
int l = random.nextInt(3) + 5;
|
||||
boolean flag = true;
|
||||
if (j < 1 || j + l + 1 > 128) {
|
||||
|
|
|
@ -1,18 +1,19 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class WorldGenHellLava extends WorldGenerator {
|
||||
|
||||
public WorldGenHellLava(int i) {
|
||||
field_4158_a = i;
|
||||
}
|
||||
|
||||
public boolean generate(World world, Random random, int i, int j, int k) {
|
||||
public boolean generate(World world, EaglercraftRandom random, int i, int j, int k) {
|
||||
if (world.getBlockId(i, j + 1, k) != Block.bloodStone.blockID) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -1,18 +1,19 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class WorldGenLakes extends WorldGenerator {
|
||||
|
||||
public WorldGenLakes(int i) {
|
||||
field_15235_a = i;
|
||||
}
|
||||
|
||||
public boolean generate(World world, Random random, int i, int j, int k) {
|
||||
public boolean generate(World world, EaglercraftRandom random, int i, int j, int k) {
|
||||
i -= 8;
|
||||
for (k -= 8; j > 0 && world.isAirBlock(i, j, k); j--) {
|
||||
}
|
||||
|
|
|
@ -1,17 +1,18 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class WorldGenLightStone1 extends WorldGenerator {
|
||||
|
||||
public WorldGenLightStone1() {
|
||||
}
|
||||
|
||||
public boolean generate(World world, Random random, int i, int j, int k) {
|
||||
public boolean generate(World world, EaglercraftRandom random, int i, int j, int k) {
|
||||
if (!world.isAirBlock(i, j, k)) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -1,17 +1,18 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class WorldGenLightStone2 extends WorldGenerator {
|
||||
|
||||
public WorldGenLightStone2() {
|
||||
}
|
||||
|
||||
public boolean generate(World world, Random random, int i, int j, int k) {
|
||||
public boolean generate(World world, EaglercraftRandom random, int i, int j, int k) {
|
||||
if (!world.isAirBlock(i, j, k)) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -1,18 +1,19 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class WorldGenLiquids extends WorldGenerator {
|
||||
|
||||
public WorldGenLiquids(int i) {
|
||||
liquidBlockId = i;
|
||||
}
|
||||
|
||||
public boolean generate(World world, Random random, int i, int j, int k) {
|
||||
public boolean generate(World world, EaglercraftRandom random, int i, int j, int k) {
|
||||
if (world.getBlockId(i, j + 1, k) != Block.stone.blockID) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class WorldGenMinable extends WorldGenerator {
|
||||
|
||||
public WorldGenMinable(int i, int j) {
|
||||
|
@ -13,7 +14,7 @@ public class WorldGenMinable extends WorldGenerator {
|
|||
numberOfBlocks = j;
|
||||
}
|
||||
|
||||
public boolean generate(World world, Random random, int i, int j, int k) {
|
||||
public boolean generate(World world, EaglercraftRandom random, int i, int j, int k) {
|
||||
float f = random.nextFloat() * 3.141593F;
|
||||
double d = (float) (i + 8) + (MathHelper.sin(f) * (float) numberOfBlocks) / 8F;
|
||||
double d1 = (float) (i + 8) - (MathHelper.sin(f) * (float) numberOfBlocks) / 8F;
|
||||
|
|
|
@ -1,17 +1,18 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class WorldGenPumpkin extends WorldGenerator {
|
||||
|
||||
public WorldGenPumpkin() {
|
||||
}
|
||||
|
||||
public boolean generate(World world, Random random, int i, int j, int k) {
|
||||
public boolean generate(World world, EaglercraftRandom random, int i, int j, int k) {
|
||||
for (int l = 0; l < 64; l++) {
|
||||
int i1 = (i + random.nextInt(8)) - random.nextInt(8);
|
||||
int j1 = (j + random.nextInt(4)) - random.nextInt(4);
|
||||
|
|
|
@ -1,17 +1,18 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class WorldGenReed extends WorldGenerator {
|
||||
|
||||
public WorldGenReed() {
|
||||
}
|
||||
|
||||
public boolean generate(World world, Random random, int i, int j, int k) {
|
||||
public boolean generate(World world, EaglercraftRandom random, int i, int j, int k) {
|
||||
for (int l = 0; l < 20; l++) {
|
||||
int i1 = (i + random.nextInt(4)) - random.nextInt(4);
|
||||
int j1 = j;
|
||||
|
|
|
@ -1,17 +1,18 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class WorldGenTaiga1 extends WorldGenerator {
|
||||
|
||||
public WorldGenTaiga1() {
|
||||
}
|
||||
|
||||
public boolean generate(World world, Random random, int i, int j, int k) {
|
||||
public boolean generate(World world, EaglercraftRandom random, int i, int j, int k) {
|
||||
int l = random.nextInt(5) + 7;
|
||||
int i1 = l - random.nextInt(2) - 3;
|
||||
int j1 = l - i1;
|
||||
|
|
|
@ -1,17 +1,18 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class WorldGenTaiga2 extends WorldGenerator {
|
||||
|
||||
public WorldGenTaiga2() {
|
||||
}
|
||||
|
||||
public boolean generate(World world, Random random, int i, int j, int k) {
|
||||
public boolean generate(World world, EaglercraftRandom random, int i, int j, int k) {
|
||||
int l = random.nextInt(4) + 6;
|
||||
int i1 = 1 + random.nextInt(2);
|
||||
int j1 = l - i1;
|
||||
|
|
|
@ -1,17 +1,18 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class WorldGenTrees extends WorldGenerator {
|
||||
|
||||
public WorldGenTrees() {
|
||||
}
|
||||
|
||||
public boolean generate(World world, Random random, int i, int j, int k) {
|
||||
public boolean generate(World world, EaglercraftRandom random, int i, int j, int k) {
|
||||
int l = random.nextInt(3) + 4;
|
||||
boolean flag = true;
|
||||
if (j < 1 || j + l + 1 > 128) {
|
||||
|
|
|
@ -1,17 +1,19 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3) braces deadcode
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public abstract class WorldGenerator {
|
||||
|
||||
public WorldGenerator() {
|
||||
}
|
||||
|
||||
public abstract boolean generate(World world, Random random, int i, int j, int k);
|
||||
public abstract boolean generate(World world, EaglercraftRandom random, int i, int j, int k);
|
||||
|
||||
public void func_517_a(double d, double d1, double d2) {
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user