[SPIGOT-946] Begin making use of access transforms to simplify patching.

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2015-06-06 19:33:48 +10:00
parent ae714e4861
commit 58abe21c5a
47 changed files with 76 additions and 632 deletions

View File

@@ -10,15 +10,6 @@
public class EntitySlime extends EntityInsentient implements IMonster {
public float a;
@@ -23,7 +27,7 @@
this.datawatcher.a(16, Byte.valueOf((byte) 1));
}
- protected void setSize(int i) {
+ public void setSize(int i) { // CraftBukkit - public
this.datawatcher.watch(16, Byte.valueOf((byte) i));
this.setSize(0.51000005F * (float) i, 0.51000005F * (float) i);
this.setPosition(this.locX, this.locY, this.locZ);
@@ -133,6 +137,18 @@
if (!this.world.isClientSide && i > 1 && this.getHealth() <= 0.0F) {
int j = 2 + this.random.nextInt(3);