From 46b65df5ae790808724051490f16b7c29c4f471f Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Thu, 19 Sep 2013 13:25:08 -0500 Subject: [PATCH] Update CraftBukkit to 1.6.4 By: feildmaster --- paper-server/pom.xml | 6 +++--- .../java/org/bukkit/craftbukkit/entity/CraftFireball.java | 4 ++-- .../java/org/bukkit/craftbukkit/entity/CraftFish.java | 2 +- .../java/org/bukkit/craftbukkit/entity/CraftHorse.java | 4 ++-- .../org/bukkit/craftbukkit/entity/CraftIronGolem.java | 4 ++-- .../org/bukkit/craftbukkit/entity/CraftItemFrame.java | 8 ++++---- .../org/bukkit/craftbukkit/entity/CraftLargeFireball.java | 2 +- .../org/bukkit/craftbukkit/entity/CraftLivingEntity.java | 8 ++++---- .../java/org/bukkit/craftbukkit/entity/CraftPlayer.java | 4 ++-- .../org/bukkit/craftbukkit/entity/CraftThrownPotion.java | 4 ++-- 10 files changed, 23 insertions(+), 23 deletions(-) diff --git a/paper-server/pom.xml b/paper-server/pom.xml index f23621d2f0..7c23af9d62 100644 --- a/paper-server/pom.xml +++ b/paper-server/pom.xml @@ -4,7 +4,7 @@ org.bukkit craftbukkit jar - 1.6.2-R1.1-SNAPSHOT + 1.6.4-R0.1-SNAPSHOT CraftBukkit http://www.bukkit.org @@ -12,8 +12,8 @@ UTF-8 unknown 4.11 - 1.6.2_01 - 1_6_R2 + 1.6.4 + 1_6_R3 diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftFireball.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftFireball.java index b2df4f5b2b..6ebe28d3f4 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftFireball.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftFireball.java @@ -15,7 +15,7 @@ public class CraftFireball extends AbstractProjectile implements Fireball { } public float getYield() { - return getHandle().yield; + return getHandle().bukkitYield; } public boolean isIncendiary() { @@ -27,7 +27,7 @@ public class CraftFireball extends AbstractProjectile implements Fireball { } public void setYield(float yield) { - getHandle().yield = yield; + getHandle().bukkitYield = yield; } public LivingEntity getShooter() { diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftFish.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftFish.java index 7504bd509a..b6575e967f 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftFish.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftFish.java @@ -49,7 +49,7 @@ public class CraftFish extends AbstractProjectile implements Fish { EntityFishingHook hook = getHandle(); if (this.biteChance == -1) { - if (hook.world.F(MathHelper.floor(hook.locX), MathHelper.floor(hook.locY) + 1, MathHelper.floor(hook.locZ))) { + if (hook.world.isRainingAt(MathHelper.floor(hook.locX), MathHelper.floor(hook.locY) + 1, MathHelper.floor(hook.locZ))) { return 1/300.0; } return 1/500.0; diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftHorse.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftHorse.java index b0da3b9cb8..bca7a2d6e6 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftHorse.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftHorse.java @@ -54,7 +54,7 @@ public class CraftHorse extends CraftAnimals implements Horse { public void setCarryingChest(boolean chest) { if (chest == isCarryingChest()) return; getHandle().setHasChest(chest); - getHandle().cH(); // Should be loadChest + getHandle().loadChest(); } public int getDomestication() { @@ -68,7 +68,7 @@ public class CraftHorse extends CraftAnimals implements Horse { } public int getMaxDomestication() { - return getHandle().cq(); // Should be getMaxDomestication + return getHandle().getMaxDomestication(); } public void setMaxDomestication(int value) { diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftIronGolem.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftIronGolem.java index 59d9c0d38a..ddee207eb7 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftIronGolem.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftIronGolem.java @@ -21,11 +21,11 @@ public class CraftIronGolem extends CraftGolem implements IronGolem { } public boolean isPlayerCreated() { - return getHandle().bW(); + return getHandle().isPlayerCreated(); } public void setPlayerCreated(boolean playerCreated) { - getHandle().f(playerCreated); + getHandle().setPlayerCreated(playerCreated); } @Override diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftItemFrame.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftItemFrame.java index ba8afa31bb..4cb611fd99 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftItemFrame.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftItemFrame.java @@ -20,16 +20,16 @@ public class CraftItemFrame extends CraftHanging implements ItemFrame { getHandle().getDataWatcher().a(2, 5); getHandle().getDataWatcher().h(2); } else { - getHandle().a(CraftItemStack.asNMSCopy(item)); + getHandle().setItem(CraftItemStack.asNMSCopy(item)); } } public org.bukkit.inventory.ItemStack getItem() { - return CraftItemStack.asBukkitCopy(getHandle().h()); + return CraftItemStack.asBukkitCopy(getHandle().getItem()); } public Rotation getRotation() { - return toBukkitRotation(getHandle().i()); + return toBukkitRotation(getHandle().getRotation()); } Rotation toBukkitRotation(int value) { @@ -44,7 +44,7 @@ public class CraftItemFrame extends CraftHanging implements ItemFrame { case 3: return Rotation.COUNTER_CLOCKWISE; default: - throw new AssertionError("Unknown rotation " + getHandle().i() + " for " + getHandle()); + throw new AssertionError("Unknown rotation " + value + " for " + getHandle()); } } diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftLargeFireball.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftLargeFireball.java index f75e74deca..ca0379403f 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftLargeFireball.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftLargeFireball.java @@ -13,7 +13,7 @@ public class CraftLargeFireball extends CraftFireball implements LargeFireball { @Override public void setYield(float yield) { super.setYield(yield); - getHandle().e = (int) yield; + getHandle().yield = (int) yield; } @Override diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java index 83e0ee9d75..52d4c3c0bb 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java @@ -410,21 +410,21 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity { if (!(getHandle() instanceof EntityInsentient)) { return false; } - return ((EntityInsentient) getHandle()).bI() != null; + return ((EntityInsentient) getHandle()).getLeashHolder() != null; } public Entity getLeashHolder() throws IllegalStateException { if (!isLeashed()) { throw new IllegalStateException("Entity not leashed"); } - return ((EntityInsentient) getHandle()).bI().getBukkitEntity(); + return ((EntityInsentient) getHandle()).getLeashHolder().getBukkitEntity(); } private boolean unleash() { if (!isLeashed()) { return false; } - ((EntityInsentient) getHandle()).a(true, false); + ((EntityInsentient) getHandle()).unleash(true, false); return true; } @@ -442,7 +442,7 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity { } unleash(); - ((EntityInsentient) getHandle()).b(((CraftEntity) holder).getHandle(), true); + ((EntityInsentient) getHandle()).setLeashHolder(((CraftEntity) holder).getHandle(), true); return true; } diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index d5d43c9a60..ac732732ad 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -1045,7 +1045,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player { } public void updateScaledHealth() { - AttributeMapServer attributemapserver = (AttributeMapServer) getHandle().aW(); + AttributeMapServer attributemapserver = (AttributeMapServer) getHandle().aX(); Set set = attributemapserver.b(); injectScaledMaxHealth(set, true); @@ -1070,6 +1070,6 @@ public class CraftPlayer extends CraftHumanEntity implements Player { } continue; } - collection.add(new AttributeModifiable(getHandle().aW(), (new AttributeRanged("generic.maxHealth", scaledHealth ? healthScale : getMaxHealth(), 0.0D, Float.MAX_VALUE)).a("Max Health").a(true))); + collection.add(new AttributeModifiable(getHandle().aX(), (new AttributeRanged("generic.maxHealth", scaledHealth ? healthScale : getMaxHealth(), 0.0D, Float.MAX_VALUE)).a("Max Health").a(true))); } } diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftThrownPotion.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftThrownPotion.java index 97d266fc0e..18da4266a8 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftThrownPotion.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftThrownPotion.java @@ -29,7 +29,7 @@ public class CraftThrownPotion extends CraftProjectile implements ThrownPotion { // We run this method once since it will set the item stack if there is none. getHandle().getPotionValue(); - return CraftItemStack.asBukkitCopy(getHandle().c); + return CraftItemStack.asBukkitCopy(getHandle().item); } public void setItem(ItemStack item) { @@ -39,7 +39,7 @@ public class CraftThrownPotion extends CraftProjectile implements ThrownPotion { // The ItemStack must be a potion. Validate.isTrue(item.getType() == Material.POTION, "ItemStack must be a potion. This item stack was " + item.getType() + "."); - getHandle().c = CraftItemStack.asNMSCopy(item); + getHandle().item = CraftItemStack.asNMSCopy(item); } @Override