summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/ItemStack.java
diff options
context:
space:
mode:
authorErik Broes <erikbroes@grum.nl>2011-04-20 19:05:14 +0200
committerErik Broes <erikbroes@grum.nl>2011-04-20 19:05:14 +0200
commit483a878b8bcf1feb789cb5fd9374d0a060cc4d8a (patch)
treefb56faee3872a85282e2fa88235580589c826e45 /src/main/java/net/minecraft/server/ItemStack.java
parentac9f297445a6116c5bb314b3be9f38520a58845e (diff)
downloadcraftbukkit-483a878b8bcf1feb789cb5fd9374d0a060cc4d8a.tar
craftbukkit-483a878b8bcf1feb789cb5fd9374d0a060cc4d8a.tar.gz
craftbukkit-483a878b8bcf1feb789cb5fd9374d0a060cc4d8a.tar.lz
craftbukkit-483a878b8bcf1feb789cb5fd9374d0a060cc4d8a.tar.xz
craftbukkit-483a878b8bcf1feb789cb5fd9374d0a060cc4d8a.zip
Update for 1.4_00_01 -- if you bypassed Bukkit, you will most likely break.
Diffstat (limited to 'src/main/java/net/minecraft/server/ItemStack.java')
-rw-r--r--src/main/java/net/minecraft/server/ItemStack.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/main/java/net/minecraft/server/ItemStack.java b/src/main/java/net/minecraft/server/ItemStack.java
index 204710e6..1768ed6f 100644
--- a/src/main/java/net/minecraft/server/ItemStack.java
+++ b/src/main/java/net/minecraft/server/ItemStack.java
@@ -48,12 +48,12 @@ public final class ItemStack {
return new ItemStack(this.id, i, this.damage);
}
- public Item a() {
+ public Item getItem() {
return Item.byId[this.id];
}
- public boolean a(EntityHuman entityhuman, World world, int i, int j, int k, int l) {
- boolean flag = this.a().a(this, entityhuman, world, i, j, k, l);
+ public boolean placeItem(EntityHuman entityhuman, World world, int i, int j, int k, int l) {
+ boolean flag = this.getItem().a(this, entityhuman, world, i, j, k, l);
if (flag) {
entityhuman.a(StatisticList.A[this.id], 1);
@@ -63,11 +63,11 @@ public final class ItemStack {
}
public float a(Block block) {
- return this.a().a(this, block);
+ return this.getItem().a(this, block);
}
public ItemStack a(World world, EntityHuman entityhuman) {
- return this.a().a(this, world, entityhuman);
+ return this.getItem().a(this, world, entityhuman);
}
public NBTTagCompound a(NBTTagCompound nbttagcompound) {
@@ -84,7 +84,7 @@ public final class ItemStack {
}
public int b() {
- return this.a().b();
+ return this.getItem().getMaxStackSize();
}
public boolean c() {
@@ -107,7 +107,7 @@ public final class ItemStack {
return this.damage;
}
- public int h() {
+ public int getData() {
return this.damage;
}
@@ -115,7 +115,7 @@ public final class ItemStack {
return Item.byId[this.id].d();
}
- public void a(int i, Entity entity) {
+ public void damage(int i, Entity entity) {
if (this.d()) {
this.damage += i;
if (this.damage > this.i()) {
@@ -167,7 +167,7 @@ public final class ItemStack {
return new ItemStack(this.id, this.count, this.damage);
}
- public static boolean a(ItemStack itemstack, ItemStack itemstack1) {
+ public static boolean equals(ItemStack itemstack, ItemStack itemstack1) {
return itemstack == null && itemstack1 == null ? true : (itemstack != null && itemstack1 != null ? itemstack.c(itemstack1) : false);
}