mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-10 17:52:02 -07:00
Update CraftBukkit to Minecraft 1.3.1
This commit is contained in:
committed by
Travis Watkins
parent
08e2923bd4
commit
a43d621c01
@@ -6,39 +6,36 @@ public class BlockNetherWart extends BlockFlower {
|
||||
|
||||
protected BlockNetherWart(int i) {
|
||||
super(i, 226);
|
||||
this.a(true);
|
||||
this.b(true);
|
||||
float f = 0.5F;
|
||||
|
||||
this.a(0.5F - f, 0.0F, 0.5F - f, 0.5F + f, 0.25F, 0.5F + f);
|
||||
this.a((CreativeModeTab) null);
|
||||
}
|
||||
|
||||
protected boolean d(int i) {
|
||||
protected boolean d_(int i) {
|
||||
return i == Block.SOUL_SAND.id;
|
||||
}
|
||||
|
||||
public boolean f(World world, int i, int j, int k) {
|
||||
return this.d(world.getTypeId(i, j - 1, k));
|
||||
public boolean d(World world, int i, int j, int k) {
|
||||
return this.d_(world.getTypeId(i, j - 1, k));
|
||||
}
|
||||
|
||||
public void a(World world, int i, int j, int k, Random random) {
|
||||
public void b(World world, int i, int j, int k, Random random) {
|
||||
int l = world.getData(i, j, k);
|
||||
|
||||
if (l < 3) {
|
||||
BiomeBase biomebase = world.getBiome(i, k);
|
||||
|
||||
if (biomebase instanceof BiomeHell && random.nextInt(10) == 0) {
|
||||
org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockGrowEvent(world, i, j, k, this.id, ++l); // CraftBukkit
|
||||
}
|
||||
if (l < 3 && random.nextInt(10) == 0) {
|
||||
org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockGrowEvent(world, i, j, k, this.id, ++l); // CraftBukkit
|
||||
}
|
||||
|
||||
super.a(world, i, j, k, random);
|
||||
super.b(world, i, j, k, random);
|
||||
}
|
||||
|
||||
public int a(int i, int j) {
|
||||
return j >= 3 ? this.textureId + 2 : (j > 0 ? this.textureId + 1 : this.textureId);
|
||||
}
|
||||
|
||||
public int c() {
|
||||
public int b() {
|
||||
return 6;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user