Update CraftBukkit to Minecraft 1.3.1
This commit is contained in:
committed by
Travis Watkins
parent
08e2923bd4
commit
a43d621c01
@@ -4,14 +4,18 @@ import org.bukkit.craftbukkit.block.CraftBlockState; // CraftBukkit
|
||||
|
||||
public class ItemHoe extends Item {
|
||||
|
||||
protected EnumToolMaterial a;
|
||||
|
||||
public ItemHoe(int i, EnumToolMaterial enumtoolmaterial) {
|
||||
super(i);
|
||||
this.a = enumtoolmaterial;
|
||||
this.maxStackSize = 1;
|
||||
this.setMaxDurability(enumtoolmaterial.a());
|
||||
this.a(CreativeModeTab.i);
|
||||
}
|
||||
|
||||
public boolean interactWith(ItemStack itemstack, EntityHuman entityhuman, World world, int i, int j, int k, int l) {
|
||||
if (!entityhuman.d(i, j, k)) {
|
||||
public boolean interactWith(ItemStack itemstack, EntityHuman entityhuman, World world, int i, int j, int k, int l, float f, float f1, float f2) {
|
||||
if (!entityhuman.e(i, j, k)) {
|
||||
return false;
|
||||
} else {
|
||||
int i1 = world.getTypeId(i, j, k);
|
||||
@@ -45,4 +49,8 @@ public class ItemHoe extends Item {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public String f() {
|
||||
return this.a.toString();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user