mirror of
https://git.zelz.net/catfoolyou/Project164.git
synced 2025-12-14 20:37:42 +00:00
Replace Random with EaglercraftRandom
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BiomeDecorator
|
||||
{
|
||||
@@ -8,7 +8,7 @@ public class BiomeDecorator
|
||||
protected World currentWorld;
|
||||
|
||||
/** The Biome Decorator's random number generator. */
|
||||
protected Random randomGenerator;
|
||||
protected EaglercraftRandom randomGenerator;
|
||||
|
||||
/** The X-coordinate of the chunk currently being decorated */
|
||||
protected int chunk_X;
|
||||
@@ -162,7 +162,7 @@ public class BiomeDecorator
|
||||
/**
|
||||
* Decorates the world. Calls code that was formerly (pre-1.8) in ChunkProviderGenerate.populate
|
||||
*/
|
||||
public void decorate(World par1World, Random par2Random, int par3, int par4)
|
||||
public void decorate(World par1World, EaglercraftRandom par2Random, int par3, int par4)
|
||||
{
|
||||
if (this.currentWorld != null)
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@ package net.minecraft.src;
|
||||
import java.awt.Color;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public abstract class BiomeGenBase
|
||||
{
|
||||
@@ -196,7 +196,7 @@ public abstract class BiomeGenBase
|
||||
/**
|
||||
* Gets a WorldGen appropriate for this biome.
|
||||
*/
|
||||
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
|
||||
public WorldGenerator getRandomWorldGenForTrees(EaglercraftRandom par1Random)
|
||||
{
|
||||
return (WorldGenerator)(par1Random.nextInt(10) == 0 ? this.worldGeneratorBigTree : this.worldGeneratorTrees);
|
||||
}
|
||||
@@ -204,7 +204,7 @@ public abstract class BiomeGenBase
|
||||
/**
|
||||
* Gets a WorldGen appropriate for this biome.
|
||||
*/
|
||||
public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
|
||||
public WorldGenerator getRandomWorldGenForGrass(EaglercraftRandom par1Random)
|
||||
{
|
||||
return new WorldGenTallGrass(Block.tallGrass.blockID, 1);
|
||||
}
|
||||
@@ -328,7 +328,7 @@ public abstract class BiomeGenBase
|
||||
return this.temperature;
|
||||
}
|
||||
|
||||
public void decorate(World par1World, Random par2Random, int par3, int par4)
|
||||
public void decorate(World par1World, EaglercraftRandom par2Random, int par3, int par4)
|
||||
{
|
||||
this.theBiomeDecorator.decorate(par1World, par2Random, par3, par4);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BiomeGenDesert extends BiomeGenBase
|
||||
{
|
||||
@@ -16,7 +16,7 @@ public class BiomeGenDesert extends BiomeGenBase
|
||||
this.theBiomeDecorator.cactiPerChunk = 10;
|
||||
}
|
||||
|
||||
public void decorate(World par1World, Random par2Random, int par3, int par4)
|
||||
public void decorate(World par1World, EaglercraftRandom par2Random, int par3, int par4)
|
||||
{
|
||||
super.decorate(par1World, par2Random, par3, par4);
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BiomeGenForest extends BiomeGenBase
|
||||
{
|
||||
@@ -15,7 +15,7 @@ public class BiomeGenForest extends BiomeGenBase
|
||||
/**
|
||||
* Gets a WorldGen appropriate for this biome.
|
||||
*/
|
||||
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
|
||||
public WorldGenerator getRandomWorldGenForTrees(EaglercraftRandom par1Random)
|
||||
{
|
||||
return (WorldGenerator)(par1Random.nextInt(5) == 0 ? this.worldGeneratorForest : (par1Random.nextInt(10) == 0 ? this.worldGeneratorBigTree : this.worldGeneratorTrees));
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BiomeGenHills extends BiomeGenBase
|
||||
{
|
||||
@@ -12,7 +12,7 @@ public class BiomeGenHills extends BiomeGenBase
|
||||
this.theWorldGenerator = new WorldGenMinable(Block.silverfish.blockID, 8);
|
||||
}
|
||||
|
||||
public void decorate(World par1World, Random par2Random, int par3, int par4)
|
||||
public void decorate(World par1World, EaglercraftRandom par2Random, int par3, int par4)
|
||||
{
|
||||
super.decorate(par1World, par2Random, par3, par4);
|
||||
int var5 = 3 + par2Random.nextInt(6);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BiomeGenJungle extends BiomeGenBase
|
||||
{
|
||||
@@ -17,7 +17,7 @@ public class BiomeGenJungle extends BiomeGenBase
|
||||
/**
|
||||
* Gets a WorldGen appropriate for this biome.
|
||||
*/
|
||||
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
|
||||
public WorldGenerator getRandomWorldGenForTrees(EaglercraftRandom par1Random)
|
||||
{
|
||||
return (WorldGenerator)(par1Random.nextInt(10) == 0 ? this.worldGeneratorBigTree : (par1Random.nextInt(2) == 0 ? new WorldGenShrub(3, 0) : (par1Random.nextInt(3) == 0 ? new WorldGenHugeTrees(false, 10 + par1Random.nextInt(20), 3, 3) : new WorldGenTrees(false, 4 + par1Random.nextInt(7), 3, 3, true))));
|
||||
}
|
||||
@@ -25,12 +25,12 @@ public class BiomeGenJungle extends BiomeGenBase
|
||||
/**
|
||||
* Gets a WorldGen appropriate for this biome.
|
||||
*/
|
||||
public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
|
||||
public WorldGenerator getRandomWorldGenForGrass(EaglercraftRandom par1Random)
|
||||
{
|
||||
return par1Random.nextInt(4) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 2) : new WorldGenTallGrass(Block.tallGrass.blockID, 1);
|
||||
}
|
||||
|
||||
public void decorate(World par1World, Random par2Random, int par3, int par4)
|
||||
public void decorate(World par1World, EaglercraftRandom par2Random, int par3, int par4)
|
||||
{
|
||||
super.decorate(par1World, par2Random, par3, par4);
|
||||
WorldGenVines var5 = new WorldGenVines();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BiomeGenSwamp extends BiomeGenBase
|
||||
{
|
||||
@@ -21,7 +21,7 @@ public class BiomeGenSwamp extends BiomeGenBase
|
||||
/**
|
||||
* Gets a WorldGen appropriate for this biome.
|
||||
*/
|
||||
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
|
||||
public WorldGenerator getRandomWorldGenForTrees(EaglercraftRandom par1Random)
|
||||
{
|
||||
return this.worldGeneratorSwamp;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BiomeGenTaiga extends BiomeGenBase
|
||||
{
|
||||
@@ -15,7 +15,7 @@ public class BiomeGenTaiga extends BiomeGenBase
|
||||
/**
|
||||
* Gets a WorldGen appropriate for this biome.
|
||||
*/
|
||||
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
|
||||
public WorldGenerator getRandomWorldGenForTrees(EaglercraftRandom par1Random)
|
||||
{
|
||||
return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenTaiga1() : new WorldGenTaiga2(false));
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class Block
|
||||
{
|
||||
@@ -562,12 +562,12 @@ public class Block
|
||||
/**
|
||||
* Ticks the block if it's been scheduled
|
||||
*/
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random) {}
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random) {}
|
||||
|
||||
/**
|
||||
* A randomly called display update to be able to add particles or other items for display
|
||||
*/
|
||||
public void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random) {}
|
||||
public void randomDisplayTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random) {}
|
||||
|
||||
/**
|
||||
* Called right before the block is destroyed by a player. Args: world, x, y, z, metaData
|
||||
@@ -603,7 +603,7 @@ public class Block
|
||||
/**
|
||||
* Returns the quantity of items to drop on block destruction.
|
||||
*/
|
||||
public int quantityDropped(Random par1Random)
|
||||
public int quantityDropped(EaglercraftRandom par1Random)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
@@ -611,7 +611,7 @@ public class Block
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return this.blockID;
|
||||
}
|
||||
@@ -1081,7 +1081,7 @@ public class Block
|
||||
/**
|
||||
* Returns the usual quantity dropped by the block plus a bonus of 1 to 'i' (inclusive).
|
||||
*/
|
||||
public int quantityDroppedWithBonus(int par1, Random par2Random)
|
||||
public int quantityDroppedWithBonus(int par1, EaglercraftRandom par2Random)
|
||||
{
|
||||
return this.quantityDropped(par2Random);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public abstract class BlockBasePressurePlate extends Block
|
||||
{
|
||||
@@ -108,7 +108,7 @@ public abstract class BlockBasePressurePlate extends Block
|
||||
/**
|
||||
* Ticks the block if it's been scheduled
|
||||
*/
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
if (!par1World.isRemote)
|
||||
{
|
||||
@@ -155,11 +155,11 @@ public abstract class BlockBasePressurePlate extends Block
|
||||
|
||||
if (!var8 && var7)
|
||||
{
|
||||
par1World.playSoundEffect((double)par2 + 0.5D, (double)par3 + 0.1D, (double)par4 + 0.5D, "random.click", 0.3F, 0.5F);
|
||||
par1World.playSoundEffect((double)par2 + 0.5D, (double)par3 + 0.1D, (double)par4 + 0.5D, "EaglercraftRandom.click", 0.3F, 0.5F);
|
||||
}
|
||||
else if (var8 && !var7)
|
||||
{
|
||||
par1World.playSoundEffect((double)par2 + 0.5D, (double)par3 + 0.1D, (double)par4 + 0.5D, "random.click", 0.3F, 0.6F);
|
||||
par1World.playSoundEffect((double)par2 + 0.5D, (double)par3 + 0.1D, (double)par4 + 0.5D, "EaglercraftRandom.click", 0.3F, 0.6F);
|
||||
}
|
||||
|
||||
if (var8)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockBed extends BlockDirectional
|
||||
{
|
||||
@@ -212,7 +212,7 @@ public class BlockBed extends BlockDirectional
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return isBlockHeadOfBed(par1) ? 0 : Item.bed.itemID;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockBookshelf extends Block
|
||||
{
|
||||
@@ -21,7 +21,7 @@ public class BlockBookshelf extends Block
|
||||
/**
|
||||
* Returns the quantity of items to drop on block destruction.
|
||||
*/
|
||||
public int quantityDropped(Random par1Random)
|
||||
public int quantityDropped(EaglercraftRandom par1Random)
|
||||
{
|
||||
return 3;
|
||||
}
|
||||
@@ -29,7 +29,7 @@ public class BlockBookshelf extends Block
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return Item.book.itemID;
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockBrewingStand extends BlockContainer
|
||||
{
|
||||
private Random rand = new Random();
|
||||
private EaglercraftRandom rand = new EaglercraftRandom();
|
||||
private Icon theIcon;
|
||||
|
||||
public BlockBrewingStand(int par1)
|
||||
@@ -102,7 +102,7 @@ public class BlockBrewingStand extends BlockContainer
|
||||
/**
|
||||
* A randomly called display update to be able to add particles or other items for display
|
||||
*/
|
||||
public void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void randomDisplayTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
double var6 = (double)((float)par2 + 0.4F + par5Random.nextFloat() * 0.2F);
|
||||
double var8 = (double)((float)par3 + 0.7F + par5Random.nextFloat() * 0.3F);
|
||||
@@ -160,7 +160,7 @@ public class BlockBrewingStand extends BlockContainer
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return Item.brewingStand.itemID;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public abstract class BlockButton extends Block
|
||||
{
|
||||
@@ -226,7 +226,7 @@ public abstract class BlockButton extends Block
|
||||
{
|
||||
par1World.setBlockMetadataWithNotify(par2, par3, par4, var11 + var12, 3);
|
||||
par1World.markBlockRangeForRenderUpdate(par2, par3, par4, par2, par3, par4);
|
||||
par1World.playSoundEffect((double)par2 + 0.5D, (double)par3 + 0.5D, (double)par4 + 0.5D, "random.click", 0.3F, 0.6F);
|
||||
par1World.playSoundEffect((double)par2 + 0.5D, (double)par3 + 0.5D, (double)par4 + 0.5D, "EaglercraftRandom.click", 0.3F, 0.6F);
|
||||
this.func_82536_d(par1World, par2, par3, par4, var11);
|
||||
par1World.scheduleBlockUpdate(par2, par3, par4, this.blockID, this.tickRate(par1World));
|
||||
return true;
|
||||
@@ -289,7 +289,7 @@ public abstract class BlockButton extends Block
|
||||
/**
|
||||
* Ticks the block if it's been scheduled
|
||||
*/
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
if (!par1World.isRemote)
|
||||
{
|
||||
@@ -306,7 +306,7 @@ public abstract class BlockButton extends Block
|
||||
par1World.setBlockMetadataWithNotify(par2, par3, par4, var6 & 7, 3);
|
||||
int var7 = var6 & 7;
|
||||
this.func_82536_d(par1World, par2, par3, par4, var7);
|
||||
par1World.playSoundEffect((double)par2 + 0.5D, (double)par3 + 0.5D, (double)par4 + 0.5D, "random.click", 0.3F, 0.5F);
|
||||
par1World.playSoundEffect((double)par2 + 0.5D, (double)par3 + 0.5D, (double)par4 + 0.5D, "EaglercraftRandom.click", 0.3F, 0.5F);
|
||||
par1World.markBlockRangeForRenderUpdate(par2, par3, par4, par2, par3, par4);
|
||||
}
|
||||
}
|
||||
@@ -355,7 +355,7 @@ public abstract class BlockButton extends Block
|
||||
par1World.setBlockMetadataWithNotify(par2, par3, par4, var6 | 8, 3);
|
||||
this.func_82536_d(par1World, par2, par3, par4, var6);
|
||||
par1World.markBlockRangeForRenderUpdate(par2, par3, par4, par2, par3, par4);
|
||||
par1World.playSoundEffect((double)par2 + 0.5D, (double)par3 + 0.5D, (double)par4 + 0.5D, "random.click", 0.3F, 0.6F);
|
||||
par1World.playSoundEffect((double)par2 + 0.5D, (double)par3 + 0.5D, (double)par4 + 0.5D, "EaglercraftRandom.click", 0.3F, 0.6F);
|
||||
}
|
||||
|
||||
if (!var8 && var7)
|
||||
@@ -363,7 +363,7 @@ public abstract class BlockButton extends Block
|
||||
par1World.setBlockMetadataWithNotify(par2, par3, par4, var6, 3);
|
||||
this.func_82536_d(par1World, par2, par3, par4, var6);
|
||||
par1World.markBlockRangeForRenderUpdate(par2, par3, par4, par2, par3, par4);
|
||||
par1World.playSoundEffect((double)par2 + 0.5D, (double)par3 + 0.5D, (double)par4 + 0.5D, "random.click", 0.3F, 0.5F);
|
||||
par1World.playSoundEffect((double)par2 + 0.5D, (double)par3 + 0.5D, (double)par4 + 0.5D, "EaglercraftRandom.click", 0.3F, 0.5F);
|
||||
}
|
||||
|
||||
if (var8)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockCactus extends Block
|
||||
{
|
||||
@@ -17,7 +17,7 @@ public class BlockCactus extends Block
|
||||
/**
|
||||
* Ticks the block if it's been scheduled
|
||||
*/
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
if (par1World.isAirBlock(par2, par3 + 1, par4))
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockCake extends Block
|
||||
{
|
||||
@@ -167,7 +167,7 @@ public class BlockCake extends Block
|
||||
/**
|
||||
* Returns the quantity of items to drop on block destruction.
|
||||
*/
|
||||
public int quantityDropped(Random par1Random)
|
||||
public int quantityDropped(EaglercraftRandom par1Random)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
@@ -175,7 +175,7 @@ public class BlockCake extends Block
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockCauldron extends Block
|
||||
{
|
||||
@@ -191,7 +191,7 @@ public class BlockCauldron extends Block
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return Item.cauldron.itemID;
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockChest extends BlockContainer
|
||||
{
|
||||
private final Random random = new Random();
|
||||
private final EaglercraftRandom random = new EaglercraftRandom();
|
||||
|
||||
/** 1 for trapped chests, 0 for normal chests. */
|
||||
public final int chestType;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockClay extends Block
|
||||
{
|
||||
@@ -13,7 +13,7 @@ public class BlockClay extends Block
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return Item.clay.itemID;
|
||||
}
|
||||
@@ -21,7 +21,7 @@ public class BlockClay extends Block
|
||||
/**
|
||||
* Returns the quantity of items to drop on block destruction.
|
||||
*/
|
||||
public int quantityDropped(Random par1Random)
|
||||
public int quantityDropped(EaglercraftRandom par1Random)
|
||||
{
|
||||
return 4;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockCocoa extends BlockDirectional
|
||||
{
|
||||
@@ -33,7 +33,7 @@ public class BlockCocoa extends BlockDirectional
|
||||
/**
|
||||
* Ticks the block if it's been scheduled
|
||||
*/
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
if (!this.canBlockStay(par1World, par2, par3, par4))
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockCommandBlock extends BlockContainer
|
||||
{
|
||||
@@ -44,7 +44,7 @@ public class BlockCommandBlock extends BlockContainer
|
||||
/**
|
||||
* Ticks the block if it's been scheduled
|
||||
*/
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
TileEntity var6 = par1World.getBlockTileEntity(par2, par3, par4);
|
||||
|
||||
@@ -114,7 +114,7 @@ public class BlockCommandBlock extends BlockContainer
|
||||
/**
|
||||
* Returns the quantity of items to drop on block destruction.
|
||||
*/
|
||||
public int quantityDropped(Random par1Random)
|
||||
public int quantityDropped(EaglercraftRandom par1Random)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockComparator extends BlockRedstoneLogic implements ITileEntityProvider
|
||||
{
|
||||
@@ -13,7 +13,7 @@ public class BlockComparator extends BlockRedstoneLogic implements ITileEntityPr
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return Item.comparator.itemID;
|
||||
}
|
||||
@@ -176,7 +176,7 @@ public class BlockComparator extends BlockRedstoneLogic implements ITileEntityPr
|
||||
}
|
||||
}
|
||||
|
||||
private void func_96476_c(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
private void func_96476_c(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
int var6 = par1World.getBlockMetadata(par2, par3, par4);
|
||||
int var7 = this.getOutputStrength(par1World, par2, par3, par4, var6);
|
||||
@@ -204,7 +204,7 @@ public class BlockComparator extends BlockRedstoneLogic implements ITileEntityPr
|
||||
/**
|
||||
* Ticks the block if it's been scheduled
|
||||
*/
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
if (this.isRepeaterPowered)
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockCrops extends BlockFlower
|
||||
{
|
||||
@@ -30,7 +30,7 @@ public class BlockCrops extends BlockFlower
|
||||
/**
|
||||
* Ticks the block if it's been scheduled
|
||||
*/
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
super.updateTick(par1World, par2, par3, par4, par5Random);
|
||||
|
||||
@@ -184,7 +184,7 @@ public class BlockCrops extends BlockFlower
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return par1 == 7 ? this.getCropItem() : this.getSeedItem();
|
||||
}
|
||||
@@ -192,7 +192,7 @@ public class BlockCrops extends BlockFlower
|
||||
/**
|
||||
* Returns the quantity of items to drop on block destruction.
|
||||
*/
|
||||
public int quantityDropped(Random par1Random)
|
||||
public int quantityDropped(EaglercraftRandom par1Random)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockDaylightDetector extends BlockContainer
|
||||
{
|
||||
@@ -34,7 +34,7 @@ public class BlockDaylightDetector extends BlockContainer
|
||||
/**
|
||||
* Ticks the block if it's been scheduled
|
||||
*/
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random) {}
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random) {}
|
||||
|
||||
/**
|
||||
* Lets the block know when one of its neighbor changes. Doesn't know which neighbor changed (coordinates passed are
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockDeadBush extends BlockFlower
|
||||
{
|
||||
@@ -23,7 +23,7 @@ public class BlockDeadBush extends BlockFlower
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockDetectorRail extends BlockRailBase
|
||||
{
|
||||
@@ -48,7 +48,7 @@ public class BlockDetectorRail extends BlockRailBase
|
||||
/**
|
||||
* Ticks the block if it's been scheduled
|
||||
*/
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
if (!par1World.isRemote)
|
||||
{
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockDispenser extends BlockContainer
|
||||
{
|
||||
/** Registry for all dispense behaviors. */
|
||||
public static final IRegistry dispenseBehaviorRegistry = new RegistryDefaulted(new BehaviorDefaultDispenseItem());
|
||||
protected Random random = new Random();
|
||||
protected EaglercraftRandom random = new EaglercraftRandom();
|
||||
protected Icon furnaceTopIcon;
|
||||
protected Icon furnaceFrontIcon;
|
||||
protected Icon field_96473_e;
|
||||
@@ -174,7 +174,7 @@ public class BlockDispenser extends BlockContainer
|
||||
/**
|
||||
* Ticks the block if it's been scheduled
|
||||
*/
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
if (!par1World.isRemote)
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockDoor extends Block
|
||||
{
|
||||
@@ -382,7 +382,7 @@ public class BlockDoor extends Block
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return (par1 & 8) != 0 ? 0 : (this.blockMaterial == Material.iron ? Item.doorIron.itemID : Item.doorWood.itemID);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockDragonEgg extends Block
|
||||
{
|
||||
@@ -30,7 +30,7 @@ public class BlockDragonEgg extends Block
|
||||
/**
|
||||
* Ticks the block if it's been scheduled
|
||||
*/
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
this.fallIfPossible(par1World, par2, par3, par4);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockEnchantmentTable extends BlockContainer
|
||||
{
|
||||
@@ -26,7 +26,7 @@ public class BlockEnchantmentTable extends BlockContainer
|
||||
/**
|
||||
* A randomly called display update to be able to add particles or other items for display
|
||||
*/
|
||||
public void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void randomDisplayTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
super.randomDisplayTick(par1World, par2, par3, par4, par5Random);
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockEndPortal extends BlockContainer
|
||||
{
|
||||
@@ -68,7 +68,7 @@ public class BlockEndPortal extends BlockContainer
|
||||
/**
|
||||
* Returns the quantity of items to drop on block destruction.
|
||||
*/
|
||||
public int quantityDropped(Random par1Random)
|
||||
public int quantityDropped(EaglercraftRandom par1Random)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
@@ -87,7 +87,7 @@ public class BlockEndPortal extends BlockContainer
|
||||
/**
|
||||
* A randomly called display update to be able to add particles or other items for display
|
||||
*/
|
||||
public void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void randomDisplayTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
double var6 = (double)((float)par2 + par5Random.nextFloat());
|
||||
double var8 = (double)((float)par3 + 0.8F);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockEndPortalFrame extends Block
|
||||
{
|
||||
@@ -92,7 +92,7 @@ public class BlockEndPortalFrame extends Block
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockEnderChest extends BlockContainer
|
||||
{
|
||||
@@ -39,7 +39,7 @@ public class BlockEnderChest extends BlockContainer
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return Block.obsidian.blockID;
|
||||
}
|
||||
@@ -47,7 +47,7 @@ public class BlockEnderChest extends BlockContainer
|
||||
/**
|
||||
* Returns the quantity of items to drop on block destruction.
|
||||
*/
|
||||
public int quantityDropped(Random par1Random)
|
||||
public int quantityDropped(EaglercraftRandom par1Random)
|
||||
{
|
||||
return 8;
|
||||
}
|
||||
@@ -133,7 +133,7 @@ public class BlockEnderChest extends BlockContainer
|
||||
/**
|
||||
* A randomly called display update to be able to add particles or other items for display
|
||||
*/
|
||||
public void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void randomDisplayTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
for (int var6 = 0; var6 < 3; ++var6)
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockFarmland extends Block
|
||||
{
|
||||
@@ -52,7 +52,7 @@ public class BlockFarmland extends Block
|
||||
/**
|
||||
* Ticks the block if it's been scheduled
|
||||
*/
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
if (!this.isWaterNearby(par1World, par2, par3, par4) && !par1World.canLightningStrikeAt(par2, par3 + 1, par4))
|
||||
{
|
||||
@@ -152,7 +152,7 @@ public class BlockFarmland extends Block
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return Block.dirt.idDropped(0, par2Random, par3);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockFire extends Block
|
||||
{
|
||||
@@ -93,7 +93,7 @@ public class BlockFire extends Block
|
||||
/**
|
||||
* Returns the quantity of items to drop on block destruction.
|
||||
*/
|
||||
public int quantityDropped(Random par1Random)
|
||||
public int quantityDropped(EaglercraftRandom par1Random)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
@@ -109,7 +109,7 @@ public class BlockFire extends Block
|
||||
/**
|
||||
* Ticks the block if it's been scheduled
|
||||
*/
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
if (par1World.getGameRules().getGameRuleBooleanValue("doFireTick"))
|
||||
{
|
||||
@@ -220,7 +220,7 @@ public class BlockFire extends Block
|
||||
return false;
|
||||
}
|
||||
|
||||
private void tryToCatchBlockOnFire(World par1World, int par2, int par3, int par4, int par5, Random par6Random, int par7)
|
||||
private void tryToCatchBlockOnFire(World par1World, int par2, int par3, int par4, int par5, EaglercraftRandom par6Random, int par7)
|
||||
{
|
||||
int var8 = this.abilityToCatchFire[par1World.getBlockId(par2, par3, par4)];
|
||||
|
||||
@@ -350,7 +350,7 @@ public class BlockFire extends Block
|
||||
/**
|
||||
* A randomly called display update to be able to add particles or other items for display
|
||||
*/
|
||||
public void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void randomDisplayTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
if (par5Random.nextInt(24) == 0)
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockFlower extends Block
|
||||
{
|
||||
@@ -48,7 +48,7 @@ public class BlockFlower extends Block
|
||||
/**
|
||||
* Ticks the block if it's been scheduled
|
||||
*/
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
this.checkFlowerChange(par1World, par2, par3, par4);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockFlowerPot extends Block
|
||||
{
|
||||
@@ -150,7 +150,7 @@ public class BlockFlowerPot extends Block
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return Item.flowerPot.itemID;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockFlowing extends BlockFluid
|
||||
{
|
||||
@@ -44,7 +44,7 @@ public class BlockFlowing extends BlockFluid
|
||||
/**
|
||||
* Ticks the block if it's been scheduled
|
||||
*/
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
int var6 = this.getFlowDecay(par1World, par2, par3, par4);
|
||||
byte var7 = 1;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public abstract class BlockFluid extends Block
|
||||
{
|
||||
@@ -175,7 +175,7 @@ public abstract class BlockFluid extends Block
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
@@ -183,7 +183,7 @@ public abstract class BlockFluid extends Block
|
||||
/**
|
||||
* Returns the quantity of items to drop on block destruction.
|
||||
*/
|
||||
public int quantityDropped(Random par1Random)
|
||||
public int quantityDropped(EaglercraftRandom par1Random)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
@@ -352,7 +352,7 @@ public abstract class BlockFluid extends Block
|
||||
/**
|
||||
* A randomly called display update to be able to add particles or other items for display
|
||||
*/
|
||||
public void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void randomDisplayTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
int var6;
|
||||
|
||||
@@ -594,7 +594,7 @@ public abstract class BlockFluid extends Block
|
||||
*/
|
||||
protected void triggerLavaMixEffects(World par1World, int par2, int par3, int par4)
|
||||
{
|
||||
par1World.playSoundEffect((double)((float)par2 + 0.5F), (double)((float)par3 + 0.5F), (double)((float)par4 + 0.5F), "random.fizz", 0.5F, 2.6F + (par1World.rand.nextFloat() - par1World.rand.nextFloat()) * 0.8F);
|
||||
par1World.playSoundEffect((double)((float)par2 + 0.5F), (double)((float)par3 + 0.5F), (double)((float)par4 + 0.5F), "EaglercraftRandom.fizz", 0.5F, 2.6F + (par1World.rand.nextFloat() - par1World.rand.nextFloat()) * 0.8F);
|
||||
|
||||
for (int var5 = 0; var5 < 8; ++var5)
|
||||
{
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockFurnace extends BlockContainer
|
||||
{
|
||||
/**
|
||||
* Is the random generator used by furnace to drop the inventory contents in random directions.
|
||||
*/
|
||||
private final Random furnaceRand = new Random();
|
||||
private final EaglercraftRandom furnaceRand = new EaglercraftRandom();
|
||||
|
||||
/** True if this is an active furnace, false if idle */
|
||||
private final boolean isActive;
|
||||
@@ -29,7 +29,7 @@ public class BlockFurnace extends BlockContainer
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return Block.furnaceIdle.blockID;
|
||||
}
|
||||
@@ -102,7 +102,7 @@ public class BlockFurnace extends BlockContainer
|
||||
/**
|
||||
* A randomly called display update to be able to add particles or other items for display
|
||||
*/
|
||||
public void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void randomDisplayTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
if (this.isActive)
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockGlass extends BlockBreakable
|
||||
{
|
||||
@@ -13,7 +13,7 @@ public class BlockGlass extends BlockBreakable
|
||||
/**
|
||||
* Returns the quantity of items to drop on block destruction.
|
||||
*/
|
||||
public int quantityDropped(Random par1Random)
|
||||
public int quantityDropped(EaglercraftRandom par1Random)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockGlowStone extends Block
|
||||
{
|
||||
@@ -13,7 +13,7 @@ public class BlockGlowStone extends Block
|
||||
/**
|
||||
* Returns the usual quantity dropped by the block plus a bonus of 1 to 'i' (inclusive).
|
||||
*/
|
||||
public int quantityDroppedWithBonus(int par1, Random par2Random)
|
||||
public int quantityDroppedWithBonus(int par1, EaglercraftRandom par2Random)
|
||||
{
|
||||
return MathHelper.clamp_int(this.quantityDropped(par2Random) + par2Random.nextInt(par1 + 1), 1, 4);
|
||||
}
|
||||
@@ -21,7 +21,7 @@ public class BlockGlowStone extends Block
|
||||
/**
|
||||
* Returns the quantity of items to drop on block destruction.
|
||||
*/
|
||||
public int quantityDropped(Random par1Random)
|
||||
public int quantityDropped(EaglercraftRandom par1Random)
|
||||
{
|
||||
return 2 + par1Random.nextInt(3);
|
||||
}
|
||||
@@ -29,7 +29,7 @@ public class BlockGlowStone extends Block
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return Item.glowstone.itemID;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockGrass extends Block
|
||||
{
|
||||
@@ -97,7 +97,7 @@ public class BlockGrass extends Block
|
||||
/**
|
||||
* Ticks the block if it's been scheduled
|
||||
*/
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
if (!par1World.isRemote)
|
||||
{
|
||||
@@ -126,7 +126,7 @@ public class BlockGrass extends Block
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return Block.dirt.idDropped(0, par2Random, par3);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockGravel extends BlockSand
|
||||
{
|
||||
@@ -12,7 +12,7 @@ public class BlockGravel extends BlockSand
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
if (par3 > 3)
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public abstract class BlockHalfSlab extends Block
|
||||
{
|
||||
@@ -93,7 +93,7 @@ public abstract class BlockHalfSlab extends Block
|
||||
/**
|
||||
* Returns the quantity of items to drop on block destruction.
|
||||
*/
|
||||
public int quantityDropped(Random par1Random)
|
||||
public int quantityDropped(EaglercraftRandom par1Random)
|
||||
{
|
||||
return this.isDoubleSlab ? 2 : 1;
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockHopper extends BlockContainer
|
||||
{
|
||||
private final Random field_94457_a = new Random();
|
||||
private final EaglercraftRandom field_94457_a = new EaglercraftRandom();
|
||||
private Icon hopperIcon;
|
||||
private Icon hopperTopIcon;
|
||||
private Icon hopperInsideIcon;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockIce extends BlockBreakable
|
||||
{
|
||||
@@ -69,7 +69,7 @@ public class BlockIce extends BlockBreakable
|
||||
/**
|
||||
* Returns the quantity of items to drop on block destruction.
|
||||
*/
|
||||
public int quantityDropped(Random par1Random)
|
||||
public int quantityDropped(EaglercraftRandom par1Random)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
@@ -77,7 +77,7 @@ public class BlockIce extends BlockBreakable
|
||||
/**
|
||||
* Ticks the block if it's been scheduled
|
||||
*/
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
if (par1World.getSavedLightValue(EnumSkyBlock.Block, par2, par3, par4) > 11 - Block.lightOpacity[this.blockID])
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockLadder extends Block
|
||||
{
|
||||
@@ -169,7 +169,7 @@ public class BlockLadder extends Block
|
||||
/**
|
||||
* Returns the quantity of items to drop on block destruction.
|
||||
*/
|
||||
public int quantityDropped(Random par1Random)
|
||||
public int quantityDropped(EaglercraftRandom par1Random)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockLeaves extends BlockLeavesBase
|
||||
{
|
||||
@@ -106,7 +106,7 @@ public class BlockLeaves extends BlockLeavesBase
|
||||
/**
|
||||
* Ticks the block if it's been scheduled
|
||||
*/
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
if (!par1World.isRemote)
|
||||
{
|
||||
@@ -220,7 +220,7 @@ public class BlockLeaves extends BlockLeavesBase
|
||||
/**
|
||||
* A randomly called display update to be able to add particles or other items for display
|
||||
*/
|
||||
public void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void randomDisplayTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
if (par1World.canLightningStrikeAt(par2, par3 + 1, par4) && !par1World.doesBlockHaveSolidTopSurface(par2, par3 - 1, par4) && par5Random.nextInt(15) == 1)
|
||||
{
|
||||
@@ -240,7 +240,7 @@ public class BlockLeaves extends BlockLeavesBase
|
||||
/**
|
||||
* Returns the quantity of items to drop on block destruction.
|
||||
*/
|
||||
public int quantityDropped(Random par1Random)
|
||||
public int quantityDropped(EaglercraftRandom par1Random)
|
||||
{
|
||||
return par1Random.nextInt(20) == 0 ? 1 : 0;
|
||||
}
|
||||
@@ -248,7 +248,7 @@ public class BlockLeaves extends BlockLeavesBase
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return Block.sapling.blockID;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockLockedChest extends Block
|
||||
{
|
||||
@@ -20,7 +20,7 @@ public class BlockLockedChest extends Block
|
||||
/**
|
||||
* Ticks the block if it's been scheduled
|
||||
*/
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
par1World.setBlockToAir(par2, par3, par4);
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockLog extends BlockRotatedPillar
|
||||
{
|
||||
@@ -19,7 +19,7 @@ public class BlockLog extends BlockRotatedPillar
|
||||
/**
|
||||
* Returns the quantity of items to drop on block destruction.
|
||||
*/
|
||||
public int quantityDropped(Random par1Random)
|
||||
public int quantityDropped(EaglercraftRandom par1Random)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
@@ -27,7 +27,7 @@ public class BlockLog extends BlockRotatedPillar
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return Block.wood.blockID;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockMelon extends Block
|
||||
{
|
||||
@@ -23,7 +23,7 @@ public class BlockMelon extends Block
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return Item.melon.itemID;
|
||||
}
|
||||
@@ -31,7 +31,7 @@ public class BlockMelon extends Block
|
||||
/**
|
||||
* Returns the quantity of items to drop on block destruction.
|
||||
*/
|
||||
public int quantityDropped(Random par1Random)
|
||||
public int quantityDropped(EaglercraftRandom par1Random)
|
||||
{
|
||||
return 3 + par1Random.nextInt(5);
|
||||
}
|
||||
@@ -39,7 +39,7 @@ public class BlockMelon extends Block
|
||||
/**
|
||||
* Returns the usual quantity dropped by the block plus a bonus of 1 to 'i' (inclusive).
|
||||
*/
|
||||
public int quantityDroppedWithBonus(int par1, Random par2Random)
|
||||
public int quantityDroppedWithBonus(int par1, EaglercraftRandom par2Random)
|
||||
{
|
||||
int var3 = this.quantityDropped(par2Random) + par2Random.nextInt(1 + par1);
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockMobSpawner extends BlockContainer
|
||||
{
|
||||
@@ -20,7 +20,7 @@ public class BlockMobSpawner extends BlockContainer
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
@@ -28,7 +28,7 @@ public class BlockMobSpawner extends BlockContainer
|
||||
/**
|
||||
* Returns the quantity of items to drop on block destruction.
|
||||
*/
|
||||
public int quantityDropped(Random par1Random)
|
||||
public int quantityDropped(EaglercraftRandom par1Random)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockMushroom extends BlockFlower
|
||||
{
|
||||
@@ -15,7 +15,7 @@ public class BlockMushroom extends BlockFlower
|
||||
/**
|
||||
* Ticks the block if it's been scheduled
|
||||
*/
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
if (par5Random.nextInt(25) == 0)
|
||||
{
|
||||
@@ -105,7 +105,7 @@ public class BlockMushroom extends BlockFlower
|
||||
/**
|
||||
* Fertilize the mushroom.
|
||||
*/
|
||||
public boolean fertilizeMushroom(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public boolean fertilizeMushroom(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
int var6 = par1World.getBlockMetadata(par2, par3, par4);
|
||||
par1World.setBlockToAir(par2, par3, par4);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockMushroomCap extends Block
|
||||
{
|
||||
@@ -29,7 +29,7 @@ public class BlockMushroomCap extends Block
|
||||
/**
|
||||
* Returns the quantity of items to drop on block destruction.
|
||||
*/
|
||||
public int quantityDropped(Random par1Random)
|
||||
public int quantityDropped(EaglercraftRandom par1Random)
|
||||
{
|
||||
int var2 = par1Random.nextInt(10) - 7;
|
||||
|
||||
@@ -44,7 +44,7 @@ public class BlockMushroomCap extends Block
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return Block.mushroomBrown.blockID + this.mushroomType;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockMycelium extends Block
|
||||
{
|
||||
@@ -56,7 +56,7 @@ public class BlockMycelium extends Block
|
||||
/**
|
||||
* Ticks the block if it's been scheduled
|
||||
*/
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
if (!par1World.isRemote)
|
||||
{
|
||||
@@ -85,7 +85,7 @@ public class BlockMycelium extends Block
|
||||
/**
|
||||
* A randomly called display update to be able to add particles or other items for display
|
||||
*/
|
||||
public void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void randomDisplayTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
super.randomDisplayTick(par1World, par2, par3, par4, par5Random);
|
||||
|
||||
@@ -98,7 +98,7 @@ public class BlockMycelium extends Block
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return Block.dirt.idDropped(0, par2Random, par3);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockNetherStalk extends BlockFlower
|
||||
{
|
||||
@@ -35,7 +35,7 @@ public class BlockNetherStalk extends BlockFlower
|
||||
/**
|
||||
* Ticks the block if it's been scheduled
|
||||
*/
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
int var6 = par1World.getBlockMetadata(par2, par3, par4);
|
||||
|
||||
@@ -93,7 +93,7 @@ public class BlockNetherStalk extends BlockFlower
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
@@ -101,7 +101,7 @@ public class BlockNetherStalk extends BlockFlower
|
||||
/**
|
||||
* Returns the quantity of items to drop on block destruction.
|
||||
*/
|
||||
public int quantityDropped(Random par1Random)
|
||||
public int quantityDropped(EaglercraftRandom par1Random)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockObsidian extends BlockStone
|
||||
{
|
||||
@@ -12,7 +12,7 @@ public class BlockObsidian extends BlockStone
|
||||
/**
|
||||
* Returns the quantity of items to drop on block destruction.
|
||||
*/
|
||||
public int quantityDropped(Random par1Random)
|
||||
public int quantityDropped(EaglercraftRandom par1Random)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
@@ -20,7 +20,7 @@ public class BlockObsidian extends BlockStone
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return Block.obsidian.blockID;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockOre extends Block
|
||||
{
|
||||
@@ -13,7 +13,7 @@ public class BlockOre extends Block
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return this.blockID == Block.oreCoal.blockID ? Item.coal.itemID : (this.blockID == Block.oreDiamond.blockID ? Item.diamond.itemID : (this.blockID == Block.oreLapis.blockID ? Item.dyePowder.itemID : (this.blockID == Block.oreEmerald.blockID ? Item.emerald.itemID : (this.blockID == Block.oreNetherQuartz.blockID ? Item.netherQuartz.itemID : this.blockID))));
|
||||
}
|
||||
@@ -21,7 +21,7 @@ public class BlockOre extends Block
|
||||
/**
|
||||
* Returns the quantity of items to drop on block destruction.
|
||||
*/
|
||||
public int quantityDropped(Random par1Random)
|
||||
public int quantityDropped(EaglercraftRandom par1Random)
|
||||
{
|
||||
return this.blockID == Block.oreLapis.blockID ? 4 + par1Random.nextInt(5) : 1;
|
||||
}
|
||||
@@ -29,7 +29,7 @@ public class BlockOre extends Block
|
||||
/**
|
||||
* Returns the usual quantity dropped by the block plus a bonus of 1 to 'i' (inclusive).
|
||||
*/
|
||||
public int quantityDroppedWithBonus(int par1, Random par2Random)
|
||||
public int quantityDroppedWithBonus(int par1, EaglercraftRandom par2Random)
|
||||
{
|
||||
if (par1 > 0 && this.blockID != this.idDropped(0, par2Random, par1))
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockPane extends Block
|
||||
{
|
||||
@@ -30,7 +30,7 @@ public class BlockPane extends Block
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return !this.canDropItself ? 0 : super.idDropped(par1, par2Random, par3);
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockPistonExtension extends Block
|
||||
{
|
||||
@@ -129,7 +129,7 @@ public class BlockPistonExtension extends Block
|
||||
/**
|
||||
* Returns the quantity of items to drop on block destruction.
|
||||
*/
|
||||
public int quantityDropped(Random par1Random)
|
||||
public int quantityDropped(EaglercraftRandom par1Random)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockPistonMoving extends BlockContainer
|
||||
{
|
||||
@@ -102,7 +102,7 @@ public class BlockPistonMoving extends BlockContainer
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockPortal extends BlockBreakable
|
||||
{
|
||||
@@ -13,7 +13,7 @@ public class BlockPortal extends BlockBreakable
|
||||
/**
|
||||
* Ticks the block if it's been scheduled
|
||||
*/
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
super.updateTick(par1World, par2, par3, par4, par5Random);
|
||||
|
||||
@@ -240,7 +240,7 @@ public class BlockPortal extends BlockBreakable
|
||||
/**
|
||||
* Returns the quantity of items to drop on block destruction.
|
||||
*/
|
||||
public int quantityDropped(Random par1Random)
|
||||
public int quantityDropped(EaglercraftRandom par1Random)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
@@ -267,7 +267,7 @@ public class BlockPortal extends BlockBreakable
|
||||
/**
|
||||
* A randomly called display update to be able to add particles or other items for display
|
||||
*/
|
||||
public void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void randomDisplayTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
if (par5Random.nextInt(100) == 0)
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public abstract class BlockRailBase extends Block
|
||||
{
|
||||
@@ -104,7 +104,7 @@ public abstract class BlockRailBase extends Block
|
||||
/**
|
||||
* Returns the quantity of items to drop on block destruction.
|
||||
*/
|
||||
public int quantityDropped(Random par1Random)
|
||||
public int quantityDropped(EaglercraftRandom par1Random)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockRedstoneLight extends Block
|
||||
{
|
||||
@@ -58,7 +58,7 @@ public class BlockRedstoneLight extends Block
|
||||
/**
|
||||
* Ticks the block if it's been scheduled
|
||||
*/
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
if (!par1World.isRemote && this.powered && !par1World.isBlockIndirectlyGettingPowered(par2, par3, par4))
|
||||
{
|
||||
@@ -69,7 +69,7 @@ public class BlockRedstoneLight extends Block
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return Block.redstoneLampIdle.blockID;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public abstract class BlockRedstoneLogic extends BlockDirectional
|
||||
{
|
||||
@@ -41,7 +41,7 @@ public abstract class BlockRedstoneLogic extends BlockDirectional
|
||||
/**
|
||||
* Ticks the block if it's been scheduled
|
||||
*/
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
int var6 = par1World.getBlockMetadata(par2, par3, par4);
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockRedstoneOre extends Block
|
||||
{
|
||||
@@ -69,7 +69,7 @@ public class BlockRedstoneOre extends Block
|
||||
/**
|
||||
* Ticks the block if it's been scheduled
|
||||
*/
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
if (this.blockID == Block.oreRedstoneGlowing.blockID)
|
||||
{
|
||||
@@ -80,7 +80,7 @@ public class BlockRedstoneOre extends Block
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return Item.redstone.itemID;
|
||||
}
|
||||
@@ -88,7 +88,7 @@ public class BlockRedstoneOre extends Block
|
||||
/**
|
||||
* Returns the usual quantity dropped by the block plus a bonus of 1 to 'i' (inclusive).
|
||||
*/
|
||||
public int quantityDroppedWithBonus(int par1, Random par2Random)
|
||||
public int quantityDroppedWithBonus(int par1, EaglercraftRandom par2Random)
|
||||
{
|
||||
return this.quantityDropped(par2Random) + par2Random.nextInt(par1 + 1);
|
||||
}
|
||||
@@ -96,7 +96,7 @@ public class BlockRedstoneOre extends Block
|
||||
/**
|
||||
* Returns the quantity of items to drop on block destruction.
|
||||
*/
|
||||
public int quantityDropped(Random par1Random)
|
||||
public int quantityDropped(EaglercraftRandom par1Random)
|
||||
{
|
||||
return 4 + par1Random.nextInt(2);
|
||||
}
|
||||
@@ -118,7 +118,7 @@ public class BlockRedstoneOre extends Block
|
||||
/**
|
||||
* A randomly called display update to be able to add particles or other items for display
|
||||
*/
|
||||
public void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void randomDisplayTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
if (this.glowing)
|
||||
{
|
||||
@@ -131,7 +131,7 @@ public class BlockRedstoneOre extends Block
|
||||
*/
|
||||
private void sparkle(World par1World, int par2, int par3, int par4)
|
||||
{
|
||||
Random var5 = par1World.rand;
|
||||
EaglercraftRandom var5 = par1World.rand;
|
||||
double var6 = 0.0625D;
|
||||
|
||||
for (int var8 = 0; var8 < 6; ++var8)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockRedstoneRepeater extends BlockRedstoneLogic
|
||||
{
|
||||
@@ -45,7 +45,7 @@ public class BlockRedstoneRepeater extends BlockRedstoneLogic
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return Item.redstoneRepeater.itemID;
|
||||
}
|
||||
@@ -79,7 +79,7 @@ public class BlockRedstoneRepeater extends BlockRedstoneLogic
|
||||
/**
|
||||
* A randomly called display update to be able to add particles or other items for display
|
||||
*/
|
||||
public void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void randomDisplayTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
if (this.isRepeaterPowered)
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockRedstoneTorch extends BlockTorch
|
||||
{
|
||||
@@ -133,7 +133,7 @@ public class BlockRedstoneTorch extends BlockTorch
|
||||
/**
|
||||
* Ticks the block if it's been scheduled
|
||||
*/
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
boolean var6 = this.isIndirectlyPowered(par1World, par2, par3, par4);
|
||||
List var7 = (List)redstoneUpdateInfoCache.get(par1World);
|
||||
@@ -151,7 +151,7 @@ public class BlockRedstoneTorch extends BlockTorch
|
||||
|
||||
if (this.checkForBurnout(par1World, par2, par3, par4, true))
|
||||
{
|
||||
par1World.playSoundEffect((double)((float)par2 + 0.5F), (double)((float)par3 + 0.5F), (double)((float)par4 + 0.5F), "random.fizz", 0.5F, 2.6F + (par1World.rand.nextFloat() - par1World.rand.nextFloat()) * 0.8F);
|
||||
par1World.playSoundEffect((double)((float)par2 + 0.5F), (double)((float)par3 + 0.5F), (double)((float)par4 + 0.5F), "EaglercraftRandom.fizz", 0.5F, 2.6F + (par1World.rand.nextFloat() - par1World.rand.nextFloat()) * 0.8F);
|
||||
|
||||
for (int var8 = 0; var8 < 5; ++var8)
|
||||
{
|
||||
@@ -198,7 +198,7 @@ public class BlockRedstoneTorch extends BlockTorch
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return Block.torchRedstoneActive.blockID;
|
||||
}
|
||||
@@ -214,7 +214,7 @@ public class BlockRedstoneTorch extends BlockTorch
|
||||
/**
|
||||
* A randomly called display update to be able to add particles or other items for display
|
||||
*/
|
||||
public void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void randomDisplayTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
if (this.torchActive)
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ package net.minecraft.src;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashSet;
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
import java.util.Set;
|
||||
|
||||
public class BlockRedstoneWire extends Block
|
||||
@@ -360,7 +360,7 @@ public class BlockRedstoneWire extends Block
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return Item.redstone.itemID;
|
||||
}
|
||||
@@ -443,7 +443,7 @@ public class BlockRedstoneWire extends Block
|
||||
/**
|
||||
* A randomly called display update to be able to add particles or other items for display
|
||||
*/
|
||||
public void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void randomDisplayTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
int var6 = par1World.getBlockMetadata(par2, par3, par4);
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockReed extends Block
|
||||
{
|
||||
@@ -15,7 +15,7 @@ public class BlockReed extends Block
|
||||
/**
|
||||
* Ticks the block if it's been scheduled
|
||||
*/
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
if (par1World.isAirBlock(par2, par3 + 1, par4))
|
||||
{
|
||||
@@ -93,7 +93,7 @@ public class BlockReed extends Block
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return Item.reed.itemID;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockSand extends Block
|
||||
{
|
||||
@@ -38,7 +38,7 @@ public class BlockSand extends Block
|
||||
/**
|
||||
* Ticks the block if it's been scheduled
|
||||
*/
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
if (!par1World.isRemote)
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockSapling extends BlockFlower
|
||||
{
|
||||
@@ -19,7 +19,7 @@ public class BlockSapling extends BlockFlower
|
||||
/**
|
||||
* Ticks the block if it's been scheduled
|
||||
*/
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
if (!par1World.isRemote)
|
||||
{
|
||||
@@ -41,7 +41,7 @@ public class BlockSapling extends BlockFlower
|
||||
return this.saplingIcon[par2];
|
||||
}
|
||||
|
||||
public void markOrGrowMarked(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void markOrGrowMarked(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
int var6 = par1World.getBlockMetadata(par2, par3, par4);
|
||||
|
||||
@@ -58,7 +58,7 @@ public class BlockSapling extends BlockFlower
|
||||
/**
|
||||
* Attempts to grow a sapling into a tree
|
||||
*/
|
||||
public void growTree(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void growTree(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
int var6 = par1World.getBlockMetadata(par2, par3, par4) & 3;
|
||||
Object var7 = null;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockSign extends BlockContainer
|
||||
{
|
||||
@@ -130,7 +130,7 @@ public class BlockSign extends BlockContainer
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return Item.sign.itemID;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockSilverfish extends Block
|
||||
{
|
||||
@@ -48,7 +48,7 @@ public class BlockSilverfish extends Block
|
||||
/**
|
||||
* Returns the quantity of items to drop on block destruction.
|
||||
*/
|
||||
public int quantityDropped(Random par1Random)
|
||||
public int quantityDropped(EaglercraftRandom par1Random)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockSkull extends BlockContainer
|
||||
{
|
||||
@@ -167,7 +167,7 @@ public class BlockSkull extends BlockContainer
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return Item.skull.itemID;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockSnow extends Block
|
||||
{
|
||||
@@ -127,7 +127,7 @@ public class BlockSnow extends Block
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return Item.snowball.itemID;
|
||||
}
|
||||
@@ -135,7 +135,7 @@ public class BlockSnow extends Block
|
||||
/**
|
||||
* Returns the quantity of items to drop on block destruction.
|
||||
*/
|
||||
public int quantityDropped(Random par1Random)
|
||||
public int quantityDropped(EaglercraftRandom par1Random)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
@@ -143,7 +143,7 @@ public class BlockSnow extends Block
|
||||
/**
|
||||
* Ticks the block if it's been scheduled
|
||||
*/
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
if (par1World.getSavedLightValue(EnumSkyBlock.Block, par2, par3, par4) > 11)
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockSnowBlock extends Block
|
||||
{
|
||||
@@ -14,7 +14,7 @@ public class BlockSnowBlock extends Block
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return Item.snowball.itemID;
|
||||
}
|
||||
@@ -22,7 +22,7 @@ public class BlockSnowBlock extends Block
|
||||
/**
|
||||
* Returns the quantity of items to drop on block destruction.
|
||||
*/
|
||||
public int quantityDropped(Random par1Random)
|
||||
public int quantityDropped(EaglercraftRandom par1Random)
|
||||
{
|
||||
return 4;
|
||||
}
|
||||
@@ -30,7 +30,7 @@ public class BlockSnowBlock extends Block
|
||||
/**
|
||||
* Ticks the block if it's been scheduled
|
||||
*/
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
if (par1World.getSavedLightValue(EnumSkyBlock.Block, par2, par3, par4) > 11)
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockStairs extends Block
|
||||
{
|
||||
@@ -359,7 +359,7 @@ public class BlockStairs extends Block
|
||||
/**
|
||||
* A randomly called display update to be able to add particles or other items for display
|
||||
*/
|
||||
public void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void randomDisplayTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
this.modelBlock.randomDisplayTick(par1World, par2, par3, par4, par5Random);
|
||||
}
|
||||
@@ -499,7 +499,7 @@ public class BlockStairs extends Block
|
||||
/**
|
||||
* Ticks the block if it's been scheduled
|
||||
*/
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
this.modelBlock.updateTick(par1World, par2, par3, par4, par5Random);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockStationary extends BlockFluid
|
||||
{
|
||||
@@ -47,7 +47,7 @@ public class BlockStationary extends BlockFluid
|
||||
/**
|
||||
* Ticks the block if it's been scheduled
|
||||
*/
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
if (this.blockMaterial == Material.lava)
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockStem extends BlockFlower
|
||||
{
|
||||
@@ -30,7 +30,7 @@ public class BlockStem extends BlockFlower
|
||||
/**
|
||||
* Ticks the block if it's been scheduled
|
||||
*/
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
super.updateTick(par1World, par2, par3, par4, par5Random);
|
||||
|
||||
@@ -256,7 +256,7 @@ public class BlockStem extends BlockFlower
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
@@ -264,7 +264,7 @@ public class BlockStem extends BlockFlower
|
||||
/**
|
||||
* Returns the quantity of items to drop on block destruction.
|
||||
*/
|
||||
public int quantityDropped(Random par1Random)
|
||||
public int quantityDropped(EaglercraftRandom par1Random)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockStep extends BlockHalfSlab
|
||||
{
|
||||
@@ -43,7 +43,7 @@ public class BlockStep extends BlockHalfSlab
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return Block.stoneSingleSlab.blockID;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockStone extends Block
|
||||
{
|
||||
@@ -13,7 +13,7 @@ public class BlockStone extends Block
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return Block.cobblestone.blockID;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockTNT extends Block
|
||||
{
|
||||
@@ -51,7 +51,7 @@ public class BlockTNT extends Block
|
||||
/**
|
||||
* Returns the quantity of items to drop on block destruction.
|
||||
*/
|
||||
public int quantityDropped(Random par1Random)
|
||||
public int quantityDropped(EaglercraftRandom par1Random)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockTallGrass extends BlockFlower
|
||||
{
|
||||
@@ -56,7 +56,7 @@ public class BlockTallGrass extends BlockFlower
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return par2Random.nextInt(8) == 0 ? Item.seeds.itemID : -1;
|
||||
}
|
||||
@@ -64,7 +64,7 @@ public class BlockTallGrass extends BlockFlower
|
||||
/**
|
||||
* Returns the usual quantity dropped by the block plus a bonus of 1 to 'i' (inclusive).
|
||||
*/
|
||||
public int quantityDroppedWithBonus(int par1, Random par2Random)
|
||||
public int quantityDroppedWithBonus(int par1, EaglercraftRandom par2Random)
|
||||
{
|
||||
return 1 + par2Random.nextInt(par1 * 2 + 1);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockTorch extends Block
|
||||
{
|
||||
@@ -107,7 +107,7 @@ public class BlockTorch extends Block
|
||||
/**
|
||||
* Ticks the block if it's been scheduled
|
||||
*/
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
super.updateTick(par1World, par2, par3, par4, par5Random);
|
||||
|
||||
@@ -266,7 +266,7 @@ public class BlockTorch extends Block
|
||||
/**
|
||||
* A randomly called display update to be able to add particles or other items for display
|
||||
*/
|
||||
public void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void randomDisplayTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
int var6 = par1World.getBlockMetadata(par2, par3, par4);
|
||||
double var7 = (double)((float)par2 + 0.5F);
|
||||
|
||||
@@ -2,7 +2,7 @@ package net.minecraft.src;
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockTripWire extends Block
|
||||
{
|
||||
@@ -66,7 +66,7 @@ public class BlockTripWire extends Block
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return Item.silk.itemID;
|
||||
}
|
||||
@@ -208,7 +208,7 @@ public class BlockTripWire extends Block
|
||||
/**
|
||||
* Ticks the block if it's been scheduled
|
||||
*/
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
if (!par1World.isRemote)
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockTripWireSource extends Block
|
||||
{
|
||||
@@ -264,7 +264,7 @@ public class BlockTripWireSource extends Block
|
||||
/**
|
||||
* Ticks the block if it's been scheduled
|
||||
*/
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
this.func_72143_a(par1World, par2, par3, par4, this.blockID, par1World.getBlockMetadata(par2, par3, par4), true, -1, 0);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockVine extends Block
|
||||
{
|
||||
@@ -242,7 +242,7 @@ public class BlockVine extends Block
|
||||
/**
|
||||
* Ticks the block if it's been scheduled
|
||||
*/
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, EaglercraftRandom par5Random)
|
||||
{
|
||||
if (!par1World.isRemote && par1World.rand.nextInt(4) == 0)
|
||||
{
|
||||
@@ -411,7 +411,7 @@ public class BlockVine extends Block
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
@@ -419,7 +419,7 @@ public class BlockVine extends Block
|
||||
/**
|
||||
* Returns the quantity of items to drop on block destruction.
|
||||
*/
|
||||
public int quantityDropped(Random par1Random)
|
||||
public int quantityDropped(EaglercraftRandom par1Random)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockWeb extends Block
|
||||
{
|
||||
@@ -55,7 +55,7 @@ public class BlockWeb extends Block
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return Item.silk.itemID;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class BlockWoodSlab extends BlockHalfSlab
|
||||
{
|
||||
@@ -25,7 +25,7 @@ public class BlockWoodSlab extends BlockHalfSlab
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
*/
|
||||
public int idDropped(int par1, Random par2Random, int par3)
|
||||
public int idDropped(int par1, EaglercraftRandom par2Random, int par3)
|
||||
{
|
||||
return Block.woodSingleSlab.blockID;
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class Chunk
|
||||
{
|
||||
@@ -1108,9 +1108,9 @@ public class Chunk
|
||||
return this.isModified;
|
||||
}
|
||||
|
||||
public Random getRandomWithSeed(long par1)
|
||||
public EaglercraftRandom getRandomWithSeed(long par1)
|
||||
{
|
||||
return new Random(this.worldObj.getSeed() + (long)(this.xPosition * this.xPosition * 4987142) + (long)(this.xPosition * 5947611) + (long)(this.zPosition * this.zPosition) * 4392871L + (long)(this.zPosition * 389711) ^ par1);
|
||||
return new EaglercraftRandom(this.worldObj.getSeed() + (long)(this.xPosition * this.xPosition * 4987142) + (long)(this.xPosition * 5947611) + (long)(this.zPosition * this.zPosition) * 4392871L + (long)(this.zPosition * 389711) ^ par1);
|
||||
}
|
||||
|
||||
public boolean isEmpty()
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class ChunkProviderEnd implements IChunkProvider
|
||||
{
|
||||
private Random endRNG;
|
||||
private EaglercraftRandom endRNG;
|
||||
private NoiseGeneratorOctaves noiseGen1;
|
||||
private NoiseGeneratorOctaves noiseGen2;
|
||||
private NoiseGeneratorOctaves noiseGen3;
|
||||
@@ -26,7 +26,7 @@ public class ChunkProviderEnd implements IChunkProvider
|
||||
public ChunkProviderEnd(World par1World, long par2)
|
||||
{
|
||||
this.endWorld = par1World;
|
||||
this.endRNG = new Random(par2);
|
||||
this.endRNG = new EaglercraftRandom(par2);
|
||||
this.noiseGen1 = new NoiseGeneratorOctaves(this.endRNG, 16);
|
||||
this.noiseGen2 = new NoiseGeneratorOctaves(this.endRNG, 16);
|
||||
this.noiseGen3 = new NoiseGeneratorOctaves(this.endRNG, 8);
|
||||
|
||||
@@ -4,12 +4,12 @@ import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class ChunkProviderFlat implements IChunkProvider
|
||||
{
|
||||
private World worldObj;
|
||||
private Random random;
|
||||
private EaglercraftRandom random;
|
||||
private final byte[] cachedBlockIDs = new byte[256];
|
||||
private final byte[] cachedBlockMetadata = new byte[256];
|
||||
private final FlatGeneratorInfo flatWorldGenInfo;
|
||||
@@ -22,7 +22,7 @@ public class ChunkProviderFlat implements IChunkProvider
|
||||
public ChunkProviderFlat(World par1World, long par2, boolean par4, String par5Str)
|
||||
{
|
||||
this.worldObj = par1World;
|
||||
this.random = new Random(par2);
|
||||
this.random = new EaglercraftRandom(par2);
|
||||
this.flatWorldGenInfo = FlatGeneratorInfo.createFlatGeneratorFromString(par5Str);
|
||||
|
||||
if (par4)
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class ChunkProviderGenerate implements IChunkProvider
|
||||
{
|
||||
/** RNG. */
|
||||
private Random rand;
|
||||
private EaglercraftRandom rand;
|
||||
|
||||
/** A NoiseGeneratorOctaves used in generating terrain */
|
||||
private NoiseGeneratorOctaves noiseGen1;
|
||||
@@ -79,7 +79,7 @@ public class ChunkProviderGenerate implements IChunkProvider
|
||||
{
|
||||
this.worldObj = par1World;
|
||||
this.mapFeaturesEnabled = par4;
|
||||
this.rand = new Random(par2);
|
||||
this.rand = new EaglercraftRandom(par2);
|
||||
this.noiseGen1 = new NoiseGeneratorOctaves(this.rand, 16);
|
||||
this.noiseGen2 = new NoiseGeneratorOctaves(this.rand, 16);
|
||||
this.noiseGen3 = new NoiseGeneratorOctaves(this.rand, 8);
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class ChunkProviderHell implements IChunkProvider
|
||||
{
|
||||
private Random hellRNG;
|
||||
private EaglercraftRandom hellRNG;
|
||||
|
||||
/** A NoiseGeneratorOctaves used in generating nether terrain */
|
||||
private NoiseGeneratorOctaves netherNoiseGen1;
|
||||
@@ -47,7 +47,7 @@ public class ChunkProviderHell implements IChunkProvider
|
||||
public ChunkProviderHell(World par1World, long par2)
|
||||
{
|
||||
this.worldObj = par1World;
|
||||
this.hellRNG = new Random(par2);
|
||||
this.hellRNG = new EaglercraftRandom(par2);
|
||||
this.netherNoiseGen1 = new NoiseGeneratorOctaves(this.hellRNG, 16);
|
||||
this.netherNoiseGen2 = new NoiseGeneratorOctaves(this.hellRNG, 16);
|
||||
this.netherNoiseGen3 = new NoiseGeneratorOctaves(this.hellRNG, 8);
|
||||
|
||||
@@ -9,7 +9,7 @@ import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
|
||||
public class CommandSpreadPlayers extends CommandBase
|
||||
@@ -93,7 +93,7 @@ public class CommandSpreadPlayers extends CommandBase
|
||||
|
||||
private void func_110669_a(ICommandSender par1ICommandSender, List par2List, CommandSpreadPlayersPosition par3CommandSpreadPlayersPosition, double par4, double par6, World par8World, boolean par9)
|
||||
{
|
||||
Random var10 = new Random();
|
||||
EaglercraftRandom var10 = new EaglercraftRandom();
|
||||
double var11 = par3CommandSpreadPlayersPosition.field_111101_a - par6;
|
||||
double var13 = par3CommandSpreadPlayersPosition.field_111100_b - par6;
|
||||
double var15 = par3CommandSpreadPlayersPosition.field_111101_a + par6;
|
||||
@@ -131,7 +131,7 @@ public class CommandSpreadPlayers extends CommandBase
|
||||
return var2.size();
|
||||
}
|
||||
|
||||
private int func_110668_a(CommandSpreadPlayersPosition par1CommandSpreadPlayersPosition, double par2, World par4World, Random par5Random, double par6, double par8, double par10, double par12, CommandSpreadPlayersPosition[] par14ArrayOfCommandSpreadPlayersPosition, boolean par15)
|
||||
private int func_110668_a(CommandSpreadPlayersPosition par1CommandSpreadPlayersPosition, double par2, World par4World, EaglercraftRandom par5Random, double par6, double par8, double par10, double par12, CommandSpreadPlayersPosition[] par14ArrayOfCommandSpreadPlayersPosition, boolean par15)
|
||||
{
|
||||
boolean var16 = true;
|
||||
double var18 = 3.4028234663852886E38D;
|
||||
@@ -266,7 +266,7 @@ public class CommandSpreadPlayers extends CommandBase
|
||||
return var5;
|
||||
}
|
||||
|
||||
private CommandSpreadPlayersPosition[] func_110670_a(Random par1Random, int par2, double par3, double par5, double par7, double par9)
|
||||
private CommandSpreadPlayersPosition[] func_110670_a(EaglercraftRandom par1Random, int par2, double par3, double par5, double par7, double par9)
|
||||
{
|
||||
CommandSpreadPlayersPosition[] var11 = new CommandSpreadPlayersPosition[par2];
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
class CommandSpreadPlayersPosition
|
||||
{
|
||||
@@ -106,7 +106,7 @@ class CommandSpreadPlayersPosition
|
||||
return false;
|
||||
}
|
||||
|
||||
public void func_111097_a(Random par1Random, double par2, double par4, double par6, double par8)
|
||||
public void func_111097_a(EaglercraftRandom par1Random, double par2, double par4, double par6, double par8)
|
||||
{
|
||||
this.field_111101_a = MathHelper.getRandomDoubleInRange(par1Random, par2, par6);
|
||||
this.field_111100_b = MathHelper.getRandomDoubleInRange(par1Random, par4, par8);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
|
||||
public class CommandWeather extends CommandBase
|
||||
@@ -28,7 +28,7 @@ public class CommandWeather extends CommandBase
|
||||
{
|
||||
if (par2ArrayOfStr.length >= 1 && par2ArrayOfStr.length <= 2)
|
||||
{
|
||||
int var3 = (300 + (new Random()).nextInt(600)) * 20;
|
||||
int var3 = (300 + (new EaglercraftRandom()).nextInt(600)) * 20;
|
||||
|
||||
if (par2ArrayOfStr.length >= 2)
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
|
||||
public class ComponentMineshaftCorridor extends StructureComponent
|
||||
{
|
||||
@@ -32,7 +32,7 @@ public class ComponentMineshaftCorridor extends StructureComponent
|
||||
this.sectionCount = par1NBTTagCompound.getInteger("Num");
|
||||
}
|
||||
|
||||
public ComponentMineshaftCorridor(int par1, Random par2Random, StructureBoundingBox par3StructureBoundingBox, int par4)
|
||||
public ComponentMineshaftCorridor(int par1, EaglercraftRandom par2Random, StructureBoundingBox par3StructureBoundingBox, int par4)
|
||||
{
|
||||
super(par1);
|
||||
this.coordBaseMode = par4;
|
||||
@@ -50,7 +50,7 @@ public class ComponentMineshaftCorridor extends StructureComponent
|
||||
}
|
||||
}
|
||||
|
||||
public static StructureBoundingBox findValidPlacement(List par0List, Random par1Random, int par2, int par3, int par4, int par5)
|
||||
public static StructureBoundingBox findValidPlacement(List par0List, EaglercraftRandom par1Random, int par2, int par3, int par4, int par5)
|
||||
{
|
||||
StructureBoundingBox var6 = new StructureBoundingBox(par2, par3, par4, par2, par3 + 2, par4);
|
||||
int var7;
|
||||
@@ -93,7 +93,7 @@ public class ComponentMineshaftCorridor extends StructureComponent
|
||||
/**
|
||||
* Initiates construction of the Structure Component picked, at the current Location of StructGen
|
||||
*/
|
||||
public void buildComponent(StructureComponent par1StructureComponent, List par2List, Random par3Random)
|
||||
public void buildComponent(StructureComponent par1StructureComponent, List par2List, EaglercraftRandom par3Random)
|
||||
{
|
||||
int var4 = this.getComponentType();
|
||||
int var5 = par3Random.nextInt(4);
|
||||
@@ -206,7 +206,7 @@ public class ComponentMineshaftCorridor extends StructureComponent
|
||||
/**
|
||||
* Used to generate chests with items in it. ex: Temple Chests, Village Blacksmith Chests, Mineshaft Chests.
|
||||
*/
|
||||
protected boolean generateStructureChestContents(World par1World, StructureBoundingBox par2StructureBoundingBox, Random par3Random, int par4, int par5, int par6, WeightedRandomChestContent[] par7ArrayOfWeightedRandomChestContent, int par8)
|
||||
protected boolean generateStructureChestContents(World par1World, StructureBoundingBox par2StructureBoundingBox, EaglercraftRandom par3Random, int par4, int par5, int par6, WeightedRandomChestContent[] par7ArrayOfWeightedRandomChestContent, int par8)
|
||||
{
|
||||
int var9 = this.getXWithOffset(par4, par6);
|
||||
int var10 = this.getYWithOffset(par5);
|
||||
@@ -230,7 +230,7 @@ public class ComponentMineshaftCorridor extends StructureComponent
|
||||
* second Part of Structure generating, this for example places Spiderwebs, Mob Spawners, it closes Mineshafts at
|
||||
* the end, it adds Fences...
|
||||
*/
|
||||
public boolean addComponentParts(World par1World, Random par2Random, StructureBoundingBox par3StructureBoundingBox)
|
||||
public boolean addComponentParts(World par1World, EaglercraftRandom par2Random, StructureBoundingBox par3StructureBoundingBox)
|
||||
{
|
||||
if (this.isLiquidInStructureBoundingBox(par1World, par3StructureBoundingBox))
|
||||
{
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user