summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/BlockOre.java
diff options
context:
space:
mode:
authorThinkofdeath <thinkofdeath@spigotmc.org>2014-11-26 08:32:16 +1100
committermd_5 <git@md-5.net>2014-11-28 17:16:30 +1100
commit24557bc2b37deb6a0edf497d547471832457b1dd (patch)
treec560572889a3b0b34964a0cddb35dc87fda3c914 /src/main/java/net/minecraft/server/BlockOre.java
parenta4805dbd77da057cc1ea0bf344379bc6e53ca1f6 (diff)
downloadcraftbukkit-24557bc2b37deb6a0edf497d547471832457b1dd.tar
craftbukkit-24557bc2b37deb6a0edf497d547471832457b1dd.tar.gz
craftbukkit-24557bc2b37deb6a0edf497d547471832457b1dd.tar.lz
craftbukkit-24557bc2b37deb6a0edf497d547471832457b1dd.tar.xz
craftbukkit-24557bc2b37deb6a0edf497d547471832457b1dd.zip
Update to Minecraft 1.8
For more information please see http://www.spigotmc.org/
Diffstat (limited to 'src/main/java/net/minecraft/server/BlockOre.java')
-rw-r--r--src/main/java/net/minecraft/server/BlockOre.java83
1 files changed, 0 insertions, 83 deletions
diff --git a/src/main/java/net/minecraft/server/BlockOre.java b/src/main/java/net/minecraft/server/BlockOre.java
deleted file mode 100644
index 42f44006..00000000
--- a/src/main/java/net/minecraft/server/BlockOre.java
+++ /dev/null
@@ -1,83 +0,0 @@
-package net.minecraft.server;
-
-import java.util.Random;
-
-public class BlockOre extends Block {
-
- public BlockOre() {
- super(Material.STONE);
- this.a(CreativeModeTab.b);
- }
-
- public Item getDropType(int i, Random random, int j) {
- return this == Blocks.COAL_ORE ? Items.COAL : (this == Blocks.DIAMOND_ORE ? Items.DIAMOND : (this == Blocks.LAPIS_ORE ? Items.INK_SACK : (this == Blocks.EMERALD_ORE ? Items.EMERALD : (this == Blocks.QUARTZ_ORE ? Items.QUARTZ : Item.getItemOf(this)))));
- }
-
- public int a(Random random) {
- return this == Blocks.LAPIS_ORE ? 4 + random.nextInt(5) : 1;
- }
-
- public int getDropCount(int i, Random random) {
- if (i > 0 && Item.getItemOf(this) != this.getDropType(0, random, i)) {
- int j = random.nextInt(i + 2) - 1;
-
- if (j < 0) {
- j = 0;
- }
-
- return this.a(random) * (j + 1);
- } else {
- return this.a(random);
- }
- }
-
- public void dropNaturally(World world, int i, int j, int k, int l, float f, int i1) {
- super.dropNaturally(world, i, j, k, l, f, i1);
- /* CraftBukkit start - Delegated to getExpDrop
- if (this.getDropType(l, world.random, i1) != Item.getItemOf(this)) {
- int j1 = 0;
-
- if (this == Blocks.COAL_ORE) {
- j1 = MathHelper.nextInt(world.random, 0, 2);
- } else if (this == Blocks.DIAMOND_ORE) {
- j1 = MathHelper.nextInt(world.random, 3, 7);
- } else if (this == Blocks.EMERALD_ORE) {
- j1 = MathHelper.nextInt(world.random, 3, 7);
- } else if (this == Blocks.LAPIS_ORE) {
- j1 = MathHelper.nextInt(world.random, 2, 5);
- } else if (this == Blocks.QUARTZ_ORE) {
- j1 = MathHelper.nextInt(world.random, 2, 5);
- }
-
- this.dropExperience(world, i, j, k, j1);
- }
- // */
- }
-
- public int getExpDrop(World world, int l, int i1) {
- if (this.getDropType(l, world.random, i1) != Item.getItemOf(this)) {
- int j1 = 0;
-
- if (this == Blocks.COAL_ORE) {
- j1 = MathHelper.nextInt(world.random, 0, 2);
- } else if (this == Blocks.DIAMOND_ORE) {
- j1 = MathHelper.nextInt(world.random, 3, 7);
- } else if (this == Blocks.EMERALD_ORE) {
- j1 = MathHelper.nextInt(world.random, 3, 7);
- } else if (this == Blocks.LAPIS_ORE) {
- j1 = MathHelper.nextInt(world.random, 2, 5);
- } else if (this == Blocks.QUARTZ_ORE) {
- j1 = MathHelper.nextInt(world.random, 2, 5);
- }
-
- return j1;
- }
-
- return 0;
- // CraftBukkit end
- }
-
- public int getDropData(int i) {
- return this == Blocks.LAPIS_ORE ? 4 : 0;
- }
-}