2012-08-08 12:19:19 +02:00
|
|
|
package net.minecraft.server;
|
|
|
|
|
|
|
|
import java.util.Random;
|
|
|
|
|
|
|
|
public class BlockMobSpawner extends BlockContainer {
|
|
|
|
|
2013-03-13 23:33:27 +01:00
|
|
|
protected BlockMobSpawner(int i) {
|
|
|
|
super(i, Material.STONE);
|
2012-08-08 12:19:19 +02:00
|
|
|
}
|
|
|
|
|
2013-03-13 23:33:27 +01:00
|
|
|
public TileEntity b(World world) {
|
2012-08-08 12:19:19 +02:00
|
|
|
return new TileEntityMobSpawner();
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getDropType(int i, Random random, int j) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int a(Random random) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
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);
|
2013-03-25 05:22:32 +01:00
|
|
|
/* CraftBukkit start - Delegate to getExpDrop
|
2012-08-08 12:19:19 +02:00
|
|
|
int j1 = 15 + world.random.nextInt(15) + world.random.nextInt(15);
|
|
|
|
|
2013-03-13 23:33:27 +01:00
|
|
|
this.j(world, i, j, k, j1);*/
|
2012-08-08 13:23:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public int getExpDrop(World world, int data, int enchantmentLevel) {
|
|
|
|
int j1 = 15 + world.random.nextInt(15) + world.random.nextInt(15);
|
|
|
|
|
|
|
|
return j1;
|
|
|
|
// CraftBukkit end
|
2012-08-08 12:19:19 +02:00
|
|
|
}
|
|
|
|
|
2012-10-25 05:53:23 +02:00
|
|
|
public boolean c() {
|
2012-08-08 12:19:19 +02:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|