Minecraft 1.9.4

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2016-05-10 21:47:39 +10:00
parent c9a6e9175c
commit d506c12c07
236 changed files with 1471 additions and 1822 deletions

View File

@@ -1,8 +1,9 @@
--- a/net/minecraft/server/TileEntityFurnace.java
+++ b/net/minecraft/server/TileEntityFurnace.java
@@ -1,5 +1,15 @@
@@ -1,6 +1,15 @@
package net.minecraft.server;
import javax.annotation.Nullable;
+// CraftBukkit start
+import java.util.List;
+
@@ -12,11 +13,10 @@
+import org.bukkit.event.inventory.FurnaceSmeltEvent;
+import org.bukkit.craftbukkit.entity.CraftHumanEntity;
+// CraftBukkit end
+
public class TileEntityFurnace extends TileEntityContainer implements ITickable, IWorldInventory {
private static final int[] a = new int[] { 0};
@@ -12,6 +22,32 @@
@@ -14,6 +23,32 @@
private int cookTimeTotal;
private String m;
@@ -49,7 +49,7 @@
public TileEntityFurnace() {}
public int getSize() {
@@ -116,11 +152,29 @@
@@ -122,11 +157,29 @@
}
public void c() {
@@ -81,7 +81,7 @@
}
if (!this.world.isClientSide) {
@@ -129,9 +183,21 @@
@@ -135,9 +188,21 @@
this.cookTime = MathHelper.clamp(this.cookTime - 2, 0, this.cookTimeTotal);
}
} else {
@@ -106,7 +106,7 @@
flag1 = true;
if (this.items[1] != null) {
--this.items[1].count;
@@ -144,6 +210,7 @@
@@ -150,6 +215,7 @@
}
}
@@ -114,7 +114,7 @@
if (this.isBurning() && this.canBurn()) {
++this.cookTime;
if (this.cookTime == this.cookTimeTotal) {
@@ -155,11 +222,13 @@
@@ -161,11 +227,13 @@
} else {
this.cookTime = 0;
}
@@ -128,7 +128,7 @@
}
}
@@ -179,7 +248,8 @@
@@ -185,7 +253,8 @@
} else {
ItemStack itemstack = RecipesFurnace.getInstance().getResult(this.items[0]);
@@ -138,7 +138,7 @@
}
}
@@ -187,11 +257,38 @@
@@ -193,11 +262,38 @@
if (this.canBurn()) {
ItemStack itemstack = RecipesFurnace.getInstance().getResult(this.items[0]);