[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

@@ -29,32 +29,14 @@
protected int bm;
public float bn;
public float bo;
@@ -25,15 +39,16 @@
public double bt;
public double bu;
public double bv;
- protected boolean sleeping;
+ public boolean sleeping; // CraftBukkit - public
public BlockPosition bx;
- private int sleepTicks;
+ public int sleepTicks; // CraftBukkit - public
public float by;
public float bz;
private BlockPosition c;
private boolean d;
private BlockPosition e;
public PlayerAbilities abilities = new PlayerAbilities();
+ public int oldLevel = -1; // CraftBukkit - add field
public int expLevel;
public int expTotal;
public float exp;
@@ -47,6 +62,16 @@
@@ -47,6 +61,17 @@
private boolean bI = false;
public EntityFishingHook hookedFish;
+ // CraftBukkit start
+ public boolean fauxSleeping;
+ public String spawnWorld = "";
+ public int oldLevel = -1;
+
+ @Override
+ public CraftHumanEntity getBukkitEntity() {
@@ -98,15 +80,6 @@
ItemStack itemstack = this.g.b(this.world, this);
if (itemstack != this.g || itemstack != null && itemstack.count != i) {
@@ -283,7 +334,7 @@
return this.getHealth() <= 0.0F || this.isSleeping();
}
- protected void closeInventory() {
+ public void closeInventory() { // CraftBukkit - public
this.activeContainer = this.defaultContainer;
}
@@ -324,7 +375,8 @@
if (this.world.getDifficulty() == EnumDifficulty.PEACEFUL && this.world.getGameRules().getBoolean("naturalRegeneration")) {