Update CraftBukkit to 1.6.4

By: feildmaster <admin@feildmaster.com>
This commit is contained in:
CraftBukkit/Spigot 2013-09-19 13:25:08 -05:00
parent 278aee6f0d
commit 46b65df5ae
10 changed files with 23 additions and 23 deletions

View file

@ -4,7 +4,7 @@
<groupId>org.bukkit</groupId>
<artifactId>craftbukkit</artifactId>
<packaging>jar</packaging>
<version>1.6.2-R1.1-SNAPSHOT</version>
<version>1.6.4-R0.1-SNAPSHOT</version>
<name>CraftBukkit</name>
<url>http://www.bukkit.org</url>
@ -12,8 +12,8 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<api.version>unknown</api.version>
<junit.version>4.11</junit.version>
<minecraft.version>1.6.2_01</minecraft.version>
<minecraft_version>1_6_R2</minecraft_version>
<minecraft.version>1.6.4</minecraft.version>
<minecraft_version>1_6_R3</minecraft_version>
</properties>
<scm>

View file

@ -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() {

View file

@ -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;

View file

@ -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) {

View file

@ -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

View file

@ -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());
}
}

View file

@ -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

View file

@ -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;
}

View file

@ -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)));
}
}

View file

@ -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