2011-01-14 20:44:11 +01:00
|
|
|
package net.minecraft.server;
|
|
|
|
|
2011-06-20 03:47:17 +02:00
|
|
|
// CraftBukkit start
|
2012-02-29 19:56:35 +01:00
|
|
|
import java.util.List;
|
|
|
|
|
2011-06-20 03:47:17 +02:00
|
|
|
import org.bukkit.craftbukkit.inventory.CraftItemStack;
|
2012-02-29 19:56:35 +01:00
|
|
|
import org.bukkit.entity.HumanEntity;
|
2011-06-20 03:47:17 +02:00
|
|
|
import org.bukkit.event.inventory.FurnaceBurnEvent;
|
|
|
|
import org.bukkit.event.inventory.FurnaceSmeltEvent;
|
2012-02-29 19:56:35 +01:00
|
|
|
import org.bukkit.craftbukkit.entity.CraftHumanEntity;
|
2011-06-20 03:47:17 +02:00
|
|
|
// CraftBukkit end
|
|
|
|
|
2013-03-13 23:33:27 +01:00
|
|
|
public class TileEntityFurnace extends TileEntity implements IWorldInventory {
|
2011-01-14 20:44:11 +01:00
|
|
|
|
2013-11-04 14:07:38 +01:00
|
|
|
private static final int[] k = new int[] { 0};
|
|
|
|
private static final int[] l = new int[] { 2, 1};
|
|
|
|
private static final int[] m = new int[] { 1};
|
2011-04-20 19:05:14 +02:00
|
|
|
private ItemStack[] items = new ItemStack[3];
|
2013-07-01 13:03:00 +02:00
|
|
|
public int burnTime;
|
|
|
|
public int ticksForCurrentFuel;
|
|
|
|
public int cookTime;
|
2013-11-04 14:07:38 +01:00
|
|
|
private String o;
|
2011-01-14 20:44:11 +01:00
|
|
|
|
|
|
|
// CraftBukkit start
|
2013-04-12 01:28:15 +02:00
|
|
|
private int lastTick = MinecraftServer.currentTick;
|
2012-03-14 15:00:54 +01:00
|
|
|
private int maxStack = MAX_STACK;
|
2012-07-22 08:18:00 +02:00
|
|
|
public List<HumanEntity> transaction = new java.util.ArrayList<HumanEntity>();
|
2012-01-14 23:02:10 +01:00
|
|
|
|
2011-01-14 20:44:11 +01:00
|
|
|
public ItemStack[] getContents() {
|
2011-06-27 00:25:01 +02:00
|
|
|
return this.items;
|
2011-01-14 20:44:11 +01:00
|
|
|
}
|
2012-02-29 19:56:35 +01:00
|
|
|
|
|
|
|
public void onOpen(CraftHumanEntity who) {
|
|
|
|
transaction.add(who);
|
|
|
|
}
|
|
|
|
|
|
|
|
public void onClose(CraftHumanEntity who) {
|
|
|
|
transaction.remove(who);
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<HumanEntity> getViewers() {
|
|
|
|
return transaction;
|
|
|
|
}
|
2012-03-14 15:00:54 +01:00
|
|
|
|
|
|
|
public void setMaxStackSize(int size) {
|
|
|
|
maxStack = size;
|
|
|
|
}
|
2011-01-14 20:44:11 +01:00
|
|
|
// CraftBukkit end
|
|
|
|
|
2011-01-29 22:50:29 +01:00
|
|
|
public TileEntityFurnace() {}
|
2011-01-14 20:44:11 +01:00
|
|
|
|
2011-04-20 19:05:14 +02:00
|
|
|
public int getSize() {
|
|
|
|
return this.items.length;
|
2011-01-14 20:44:11 +01:00
|
|
|
}
|
|
|
|
|
2011-04-20 19:05:14 +02:00
|
|
|
public ItemStack getItem(int i) {
|
|
|
|
return this.items[i];
|
2011-01-14 20:44:11 +01:00
|
|
|
}
|
|
|
|
|
2011-06-27 00:25:01 +02:00
|
|
|
public ItemStack splitStack(int i, int j) {
|
2011-04-20 19:05:14 +02:00
|
|
|
if (this.items[i] != null) {
|
2011-01-29 22:50:29 +01:00
|
|
|
ItemStack itemstack;
|
2011-01-14 20:44:11 +01:00
|
|
|
|
2011-04-20 19:05:14 +02:00
|
|
|
if (this.items[i].count <= j) {
|
|
|
|
itemstack = this.items[i];
|
|
|
|
this.items[i] = null;
|
2011-01-14 20:44:11 +01:00
|
|
|
return itemstack;
|
2011-01-29 22:50:29 +01:00
|
|
|
} else {
|
2011-04-20 19:05:14 +02:00
|
|
|
itemstack = this.items[i].a(j);
|
|
|
|
if (this.items[i].count == 0) {
|
|
|
|
this.items[i] = null;
|
2011-01-29 22:50:29 +01:00
|
|
|
}
|
2011-01-14 20:44:11 +01:00
|
|
|
|
2011-01-29 22:50:29 +01:00
|
|
|
return itemstack;
|
2011-01-14 20:44:11 +01:00
|
|
|
}
|
|
|
|
} else {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-03-01 11:49:23 +01:00
|
|
|
public ItemStack splitWithoutUpdate(int i) {
|
|
|
|
if (this.items[i] != null) {
|
|
|
|
ItemStack itemstack = this.items[i];
|
|
|
|
|
|
|
|
this.items[i] = null;
|
|
|
|
return itemstack;
|
|
|
|
} else {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-04-20 19:05:14 +02:00
|
|
|
public void setItem(int i, ItemStack itemstack) {
|
|
|
|
this.items[i] = itemstack;
|
|
|
|
if (itemstack != null && itemstack.count > this.getMaxStackSize()) {
|
|
|
|
itemstack.count = this.getMaxStackSize();
|
2011-01-14 20:44:11 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-11-04 14:07:38 +01:00
|
|
|
public String getInventoryName() {
|
|
|
|
return this.k_() ? this.o : "container.furnace";
|
2013-03-13 23:33:27 +01:00
|
|
|
}
|
|
|
|
|
2013-11-04 14:07:38 +01:00
|
|
|
public boolean k_() {
|
|
|
|
return this.o != null && this.o.length() > 0;
|
2013-03-13 23:33:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public void a(String s) {
|
2013-11-04 14:07:38 +01:00
|
|
|
this.o = s;
|
2011-01-14 20:44:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public void a(NBTTagCompound nbttagcompound) {
|
|
|
|
super.a(nbttagcompound);
|
2013-11-04 14:07:38 +01:00
|
|
|
NBTTagList nbttaglist = nbttagcompound.getList("Items", 10);
|
2011-01-14 20:44:11 +01:00
|
|
|
|
2011-04-20 19:05:14 +02:00
|
|
|
this.items = new ItemStack[this.getSize()];
|
2011-01-29 22:50:29 +01:00
|
|
|
|
2011-11-30 00:17:43 +01:00
|
|
|
for (int i = 0; i < nbttaglist.size(); ++i) {
|
2013-11-04 14:07:38 +01:00
|
|
|
NBTTagCompound nbttagcompound1 = nbttaglist.get(i);
|
2011-11-30 00:17:43 +01:00
|
|
|
byte b0 = nbttagcompound1.getByte("Slot");
|
2011-01-14 20:44:11 +01:00
|
|
|
|
2011-04-20 19:05:14 +02:00
|
|
|
if (b0 >= 0 && b0 < this.items.length) {
|
2013-01-17 10:28:44 +01:00
|
|
|
this.items[b0] = ItemStack.createStack(nbttagcompound1);
|
2011-01-14 20:44:11 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-11-30 00:17:43 +01:00
|
|
|
this.burnTime = nbttagcompound.getShort("BurnTime");
|
|
|
|
this.cookTime = nbttagcompound.getShort("CookTime");
|
2012-03-30 23:33:51 +02:00
|
|
|
this.ticksForCurrentFuel = fuelTime(this.items[1]);
|
2013-11-04 14:07:38 +01:00
|
|
|
if (nbttagcompound.hasKeyOfType("CustomName", 8)) {
|
|
|
|
this.o = nbttagcompound.getString("CustomName");
|
2013-03-13 23:33:27 +01:00
|
|
|
}
|
2011-01-14 20:44:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public void b(NBTTagCompound nbttagcompound) {
|
|
|
|
super.b(nbttagcompound);
|
2011-11-30 00:17:43 +01:00
|
|
|
nbttagcompound.setShort("BurnTime", (short) this.burnTime);
|
|
|
|
nbttagcompound.setShort("CookTime", (short) this.cookTime);
|
2011-01-14 20:44:11 +01:00
|
|
|
NBTTagList nbttaglist = new NBTTagList();
|
|
|
|
|
2011-04-20 19:05:14 +02:00
|
|
|
for (int i = 0; i < this.items.length; ++i) {
|
|
|
|
if (this.items[i] != null) {
|
2011-01-14 20:44:11 +01:00
|
|
|
NBTTagCompound nbttagcompound1 = new NBTTagCompound();
|
|
|
|
|
2011-11-30 00:17:43 +01:00
|
|
|
nbttagcompound1.setByte("Slot", (byte) i);
|
2012-02-29 22:31:04 +01:00
|
|
|
this.items[i].save(nbttagcompound1);
|
2011-11-30 00:17:43 +01:00
|
|
|
nbttaglist.add(nbttagcompound1);
|
2011-01-14 20:44:11 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-11-30 00:17:43 +01:00
|
|
|
nbttagcompound.set("Items", nbttaglist);
|
2013-11-04 14:07:38 +01:00
|
|
|
if (this.k_()) {
|
|
|
|
nbttagcompound.setString("CustomName", this.o);
|
2013-03-13 23:33:27 +01:00
|
|
|
}
|
2011-01-14 20:44:11 +01:00
|
|
|
}
|
|
|
|
|
2011-04-20 19:05:14 +02:00
|
|
|
public int getMaxStackSize() {
|
2012-03-14 15:00:54 +01:00
|
|
|
return maxStack; // CraftBukkit
|
2011-01-14 20:44:11 +01:00
|
|
|
}
|
|
|
|
|
2011-06-27 00:25:01 +02:00
|
|
|
public boolean isBurning() {
|
2011-04-20 19:05:14 +02:00
|
|
|
return this.burnTime > 0;
|
2011-01-14 20:44:11 +01:00
|
|
|
}
|
|
|
|
|
2013-03-13 23:33:27 +01:00
|
|
|
public void h() {
|
2011-04-20 19:05:14 +02:00
|
|
|
boolean flag = this.burnTime > 0;
|
2011-01-14 20:44:11 +01:00
|
|
|
boolean flag1 = false;
|
|
|
|
|
2013-04-12 01:28:15 +02:00
|
|
|
// CraftBukkit start - Use wall time instead of ticks for cooking
|
2013-04-27 11:50:37 +02:00
|
|
|
int elapsedTicks = MinecraftServer.currentTick - this.lastTick;
|
2013-04-12 01:28:15 +02:00
|
|
|
this.lastTick = MinecraftServer.currentTick;
|
2011-05-01 19:26:47 +02:00
|
|
|
|
2011-06-27 00:25:01 +02:00
|
|
|
// CraftBukkit - moved from below
|
|
|
|
if (this.isBurning() && this.canBurn()) {
|
2011-06-20 07:40:11 +02:00
|
|
|
this.cookTime += elapsedTicks;
|
|
|
|
if (this.cookTime >= 200) {
|
|
|
|
this.cookTime %= 200;
|
2011-06-27 00:25:01 +02:00
|
|
|
this.burn();
|
2011-06-20 07:40:11 +02:00
|
|
|
flag1 = true;
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
this.cookTime = 0;
|
|
|
|
}
|
2011-06-27 00:25:01 +02:00
|
|
|
// CraftBukkit end
|
2011-06-20 07:40:11 +02:00
|
|
|
|
2011-04-20 19:05:14 +02:00
|
|
|
if (this.burnTime > 0) {
|
2011-05-01 19:26:47 +02:00
|
|
|
this.burnTime -= elapsedTicks; // CraftBukkit
|
2011-01-14 20:44:11 +01:00
|
|
|
}
|
2011-01-29 22:50:29 +01:00
|
|
|
|
2011-04-20 19:05:14 +02:00
|
|
|
if (!this.world.isStatic) {
|
2013-03-25 05:22:32 +01:00
|
|
|
// CraftBukkit start - Handle multiple elapsed ticks
|
2011-06-27 00:25:01 +02:00
|
|
|
if (this.burnTime <= 0 && this.canBurn() && this.items[1] != null) { // CraftBukkit - == to <=
|
2012-12-17 08:31:41 +01:00
|
|
|
CraftItemStack fuel = CraftItemStack.asCraftMirror(this.items[1]);
|
2011-06-20 03:47:17 +02:00
|
|
|
|
2012-03-30 23:33:51 +02:00
|
|
|
FurnaceBurnEvent furnaceBurnEvent = new FurnaceBurnEvent(this.world.getWorld().getBlockAt(this.x, this.y, this.z), fuel, fuelTime(this.items[1]));
|
2011-06-27 00:25:01 +02:00
|
|
|
this.world.getServer().getPluginManager().callEvent(furnaceBurnEvent);
|
2011-06-20 03:47:17 +02:00
|
|
|
|
|
|
|
if (furnaceBurnEvent.isCancelled()) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2011-07-01 05:05:20 +02:00
|
|
|
this.ticksForCurrentFuel = furnaceBurnEvent.getBurnTime();
|
2011-06-27 00:25:01 +02:00
|
|
|
this.burnTime += this.ticksForCurrentFuel;
|
2011-07-01 05:05:20 +02:00
|
|
|
if (this.burnTime > 0 && furnaceBurnEvent.isBurning()) {
|
|
|
|
// CraftBukkit end
|
2011-01-14 20:44:11 +01:00
|
|
|
flag1 = true;
|
2011-04-20 19:05:14 +02:00
|
|
|
if (this.items[1] != null) {
|
|
|
|
--this.items[1].count;
|
|
|
|
if (this.items[1].count == 0) {
|
2013-07-01 13:03:00 +02:00
|
|
|
Item item = this.items[1].getItem().t();
|
2012-07-29 09:33:13 +02:00
|
|
|
|
|
|
|
this.items[1] = item != null ? new ItemStack(item) : null;
|
2011-01-14 20:44:11 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2011-01-29 22:50:29 +01:00
|
|
|
|
2013-03-25 05:22:32 +01:00
|
|
|
/* CraftBukkit start - Moved up
|
2011-11-20 09:01:14 +01:00
|
|
|
if (this.isBurning() && this.canBurn()) {
|
2011-06-27 00:25:01 +02:00
|
|
|
++this.cookTime;
|
|
|
|
if (this.cookTime == 200) {
|
|
|
|
this.cookTime = 0;
|
|
|
|
this.burn();
|
|
|
|
flag1 = true;
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
this.cookTime = 0;
|
|
|
|
}
|
|
|
|
// CraftBukkit end */
|
|
|
|
|
2011-04-20 19:05:14 +02:00
|
|
|
if (flag != this.burnTime > 0) {
|
2011-01-14 20:44:11 +01:00
|
|
|
flag1 = true;
|
2011-06-27 00:25:01 +02:00
|
|
|
BlockFurnace.a(this.burnTime > 0, this.world, this.x, this.y, this.z);
|
2011-01-14 20:44:11 +01:00
|
|
|
}
|
|
|
|
}
|
2011-01-29 22:50:29 +01:00
|
|
|
|
2011-01-14 20:44:11 +01:00
|
|
|
if (flag1) {
|
2011-04-20 19:05:14 +02:00
|
|
|
this.update();
|
2011-01-14 20:44:11 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-06-27 00:25:01 +02:00
|
|
|
private boolean canBurn() {
|
2011-04-20 19:05:14 +02:00
|
|
|
if (this.items[0] == null) {
|
2011-01-14 20:44:11 +01:00
|
|
|
return false;
|
2011-01-29 22:50:29 +01:00
|
|
|
} else {
|
2013-11-04 14:07:38 +01:00
|
|
|
ItemStack itemstack = RecipesFurnace.getInstance().getResult(this.items[0]);
|
2011-01-14 20:44:11 +01:00
|
|
|
|
2011-04-16 04:11:13 +02:00
|
|
|
// CraftBukkit - consider resultant count instead of current count
|
2011-06-27 00:25:01 +02:00
|
|
|
return itemstack == null ? false : (this.items[2] == null ? true : (!this.items[2].doMaterialsMatch(itemstack) ? false : (this.items[2].count + itemstack.count <= this.getMaxStackSize() && this.items[2].count < this.items[2].getMaxStackSize() ? true : this.items[2].count + itemstack.count <= itemstack.getMaxStackSize())));
|
2011-01-14 20:44:11 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-06-27 00:25:01 +02:00
|
|
|
public void burn() {
|
|
|
|
if (this.canBurn()) {
|
2013-11-04 14:07:38 +01:00
|
|
|
ItemStack itemstack = RecipesFurnace.getInstance().getResult(this.items[0]);
|
2011-01-14 20:44:11 +01:00
|
|
|
|
2011-06-20 03:47:17 +02:00
|
|
|
// CraftBukkit start
|
2012-12-17 08:31:41 +01:00
|
|
|
CraftItemStack source = CraftItemStack.asCraftMirror(this.items[0]);
|
|
|
|
CraftItemStack result = CraftItemStack.asCraftMirror(itemstack.cloneItemStack());
|
2011-06-20 03:47:17 +02:00
|
|
|
|
2011-06-27 00:25:01 +02:00
|
|
|
FurnaceSmeltEvent furnaceSmeltEvent = new FurnaceSmeltEvent(this.world.getWorld().getBlockAt(this.x, this.y, this.z), source, result);
|
|
|
|
this.world.getServer().getPluginManager().callEvent(furnaceSmeltEvent);
|
2011-06-20 03:47:17 +02:00
|
|
|
|
|
|
|
if (furnaceSmeltEvent.isCancelled()) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2012-12-17 08:31:41 +01:00
|
|
|
itemstack = CraftItemStack.asNMSCopy(furnaceSmeltEvent.getResult());
|
2011-06-27 00:25:01 +02:00
|
|
|
|
2011-04-20 19:05:14 +02:00
|
|
|
if (this.items[2] == null) {
|
2011-06-27 00:25:01 +02:00
|
|
|
this.items[2] = itemstack.cloneItemStack();
|
2013-11-04 14:07:38 +01:00
|
|
|
} else if (this.items[2].getItem() == itemstack.getItem()) {
|
2011-06-27 00:25:01 +02:00
|
|
|
// CraftBukkit - compare damage too
|
2011-09-26 09:59:03 +02:00
|
|
|
if (this.items[2].getData() == itemstack.getData()) {
|
2011-05-14 16:29:42 +02:00
|
|
|
this.items[2].count += itemstack.count;
|
|
|
|
}
|
|
|
|
// CraftBukkit end
|
2011-01-29 22:50:29 +01:00
|
|
|
}
|
|
|
|
|
2011-04-20 19:05:14 +02:00
|
|
|
--this.items[0].count;
|
|
|
|
if (this.items[0].count <= 0) {
|
|
|
|
this.items[0] = null;
|
2011-01-29 22:50:29 +01:00
|
|
|
}
|
2011-01-14 20:44:11 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-03-30 23:33:51 +02:00
|
|
|
public static int fuelTime(ItemStack itemstack) {
|
2011-01-14 20:44:11 +01:00
|
|
|
if (itemstack == null) {
|
|
|
|
return 0;
|
2011-01-29 22:50:29 +01:00
|
|
|
} else {
|
2012-07-29 09:33:13 +02:00
|
|
|
Item item = itemstack.getItem();
|
|
|
|
|
2013-11-04 14:07:38 +01:00
|
|
|
if (item instanceof ItemBlock && Block.a(item) != Blocks.AIR) {
|
|
|
|
Block block = Block.a(item);
|
2011-01-14 20:44:11 +01:00
|
|
|
|
2013-11-04 14:07:38 +01:00
|
|
|
if (block == Blocks.WOOD_STEP) {
|
2012-07-29 09:33:13 +02:00
|
|
|
return 150;
|
|
|
|
}
|
|
|
|
|
2013-11-04 14:07:38 +01:00
|
|
|
if (block.getMaterial() == Material.WOOD) {
|
2012-07-29 09:33:13 +02:00
|
|
|
return 300;
|
|
|
|
}
|
2013-07-01 13:03:00 +02:00
|
|
|
|
2013-11-04 14:07:38 +01:00
|
|
|
if (block == Blocks.COAL_BLOCK) {
|
2013-07-01 13:03:00 +02:00
|
|
|
return 16000;
|
|
|
|
}
|
2012-07-29 09:33:13 +02:00
|
|
|
}
|
|
|
|
|
2013-11-04 14:07:38 +01:00
|
|
|
return item instanceof ItemTool && ((ItemTool) item).j().equals("WOOD") ? 200 : (item instanceof ItemSword && ((ItemSword) item).j().equals("WOOD") ? 200 : (item instanceof ItemHoe && ((ItemHoe) item).i().equals("WOOD") ? 200 : (item == Items.STICK ? 100 : (item == Items.COAL ? 1600 : (item == Items.LAVA_BUCKET ? 20000 : (item == Item.getItemOf(Blocks.SAPLING) ? 100 : (item == Items.BLAZE_ROD ? 2400 : 0)))))));
|
2013-07-01 13:03:00 +02:00
|
|
|
}
|
2011-01-14 20:44:11 +01:00
|
|
|
}
|
|
|
|
|
2012-03-30 23:33:51 +02:00
|
|
|
public static boolean isFuel(ItemStack itemstack) {
|
|
|
|
return fuelTime(itemstack) > 0;
|
|
|
|
}
|
|
|
|
|
2013-03-13 23:33:27 +01:00
|
|
|
public boolean a(EntityHuman entityhuman) {
|
2011-07-08 14:25:53 +02:00
|
|
|
return this.world.getTileEntity(this.x, this.y, this.z) != this ? false : entityhuman.e((double) this.x + 0.5D, (double) this.y + 0.5D, (double) this.z + 0.5D) <= 64.0D;
|
2011-01-14 20:44:11 +01:00
|
|
|
}
|
2011-09-15 02:23:52 +02:00
|
|
|
|
2012-07-29 09:33:13 +02:00
|
|
|
public void startOpen() {}
|
2011-09-15 02:23:52 +02:00
|
|
|
|
2013-11-04 14:07:38 +01:00
|
|
|
public void l_() {}
|
2013-03-13 23:33:27 +01:00
|
|
|
|
|
|
|
public boolean b(int i, ItemStack itemstack) {
|
|
|
|
return i == 2 ? false : (i == 1 ? isFuel(itemstack) : true);
|
|
|
|
}
|
|
|
|
|
2013-03-20 21:09:23 +01:00
|
|
|
public int[] getSlotsForFace(int i) {
|
2013-11-04 14:07:38 +01:00
|
|
|
return i == 0 ? l : (i == 1 ? k : m);
|
2013-03-13 23:33:27 +01:00
|
|
|
}
|
|
|
|
|
2013-03-20 21:09:23 +01:00
|
|
|
public boolean canPlaceItemThroughFace(int i, ItemStack itemstack, int j) {
|
|
|
|
return this.b(i, itemstack);
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean canTakeItemThroughFace(int i, ItemStack itemstack, int j) {
|
2013-11-04 14:07:38 +01:00
|
|
|
return j != 0 || i != 1 || itemstack.getItem() == Items.BUCKET;
|
2013-03-13 23:33:27 +01:00
|
|
|
}
|
2011-01-29 22:50:29 +01:00
|
|
|
}
|