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,14 +1,14 @@
--- a/net/minecraft/server/EntityItem.java
+++ b/net/minecraft/server/EntityItem.java
@@ -4,6 +4,7 @@
import java.util.Iterator;
@@ -5,6 +5,7 @@
import javax.annotation.Nullable;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
+import org.bukkit.event.player.PlayerPickupItemEvent; // CraftBukkit
public class EntityItem extends Entity {
@@ -15,6 +16,7 @@
@@ -16,6 +17,7 @@
private String g;
private String h;
public float a;
@@ -16,7 +16,7 @@
public EntityItem(World world, double d0, double d1, double d2) {
super(world);
@@ -30,6 +32,11 @@
@@ -31,6 +33,11 @@
public EntityItem(World world, double d0, double d1, double d2, ItemStack itemstack) {
this(world, d0, d1, d2);
@@ -28,7 +28,7 @@
this.setItemStack(itemstack);
}
@@ -54,9 +61,12 @@
@@ -55,9 +62,12 @@
this.die();
} else {
super.m();
@@ -44,7 +44,7 @@
this.lastX = this.locX;
this.lastY = this.locY;
@@ -92,12 +102,20 @@
@@ -93,12 +103,20 @@
this.motY *= -0.5D;
}
@@ -65,7 +65,7 @@
this.die();
}
@@ -139,6 +157,7 @@
@@ -140,6 +158,7 @@
} else if (itemstack1.count + itemstack.count > itemstack1.getMaxStackSize()) {
return false;
} else {
@@ -73,7 +73,7 @@
itemstack1.count += itemstack.count;
entityitem.pickupDelay = Math.max(entityitem.pickupDelay, this.pickupDelay);
entityitem.age = Math.min(entityitem.age, this.age);
@@ -185,6 +204,11 @@
@@ -186,6 +205,11 @@
} else if (this.getItemStack() != null && this.getItemStack().getItem() == Items.NETHER_STAR && damagesource.isExplosion()) {
return false;
} else {
@@ -85,7 +85,7 @@
this.ao();
this.f = (int) ((float) this.f - f);
if (this.f <= 0) {
@@ -230,7 +254,18 @@
@@ -231,7 +255,18 @@
NBTTagCompound nbttagcompound1 = nbttagcompound.getCompound("Item");
@@ -105,7 +105,7 @@
if (this.getItemStack() == null) {
this.die();
}
@@ -242,6 +277,26 @@
@@ -243,6 +278,26 @@
ItemStack itemstack = this.getItemStack();
int i = itemstack.count;