@@ -66,12 +66,12 @@ public class CraftCreeper extends CraftMonster implements Creeper {
|
||||
|
||||
@Override
|
||||
public void explode() {
|
||||
getHandle().eb();
|
||||
getHandle().explode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ignite() {
|
||||
getHandle().dY(); // PAIL rename ignite
|
||||
getHandle().ignite();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -26,7 +26,7 @@ public class CraftHanging extends CraftEntity implements Hanging {
|
||||
@Override
|
||||
public boolean setFacingDirection(BlockFace face, boolean force) {
|
||||
EntityHanging hanging = getHandle();
|
||||
EnumDirection dir = hanging.direction;
|
||||
EnumDirection dir = hanging.getDirection();
|
||||
switch (face) {
|
||||
case SOUTH:
|
||||
default:
|
||||
@@ -52,7 +52,7 @@ public class CraftHanging extends CraftEntity implements Hanging {
|
||||
|
||||
@Override
|
||||
public BlockFace getFacing() {
|
||||
EnumDirection direction = this.getHandle().direction;
|
||||
EnumDirection direction = this.getHandle().getDirection();
|
||||
if (direction == null) return BlockFace.SELF;
|
||||
return CraftBlock.notchToBlockFace(direction);
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ public class CraftItemFrame extends CraftHanging implements ItemFrame {
|
||||
@Override
|
||||
public boolean setFacingDirection(BlockFace face, boolean force) {
|
||||
EntityHanging hanging = getHandle();
|
||||
EnumDirection oldDir = hanging.direction;
|
||||
EnumDirection oldDir = hanging.getDirection();
|
||||
EnumDirection newDir = CraftBlock.blockFaceToNotch(face);
|
||||
|
||||
getHandle().setDirection(newDir);
|
||||
|
||||
@@ -34,11 +34,11 @@ public class CraftPainting extends CraftHanging implements Painting {
|
||||
EntityPainting painting = this.getHandle();
|
||||
Paintings oldArt = painting.art;
|
||||
painting.art = CraftArt.BukkitToNotch(art);
|
||||
painting.setDirection(painting.direction);
|
||||
painting.setDirection(painting.getDirection());
|
||||
if (!force && !painting.survives()) {
|
||||
// Revert painting since it doesn't fit
|
||||
painting.art = oldArt;
|
||||
painting.setDirection(painting.direction);
|
||||
painting.setDirection(painting.getDirection());
|
||||
return false;
|
||||
}
|
||||
this.update();
|
||||
@@ -60,7 +60,7 @@ public class CraftPainting extends CraftHanging implements Painting {
|
||||
EntityPainting painting = EntityTypes.PAINTING.a(world);
|
||||
painting.blockPosition = getHandle().blockPosition;
|
||||
painting.art = getHandle().art;
|
||||
painting.setDirection(getHandle().direction);
|
||||
painting.setDirection(getHandle().getDirection());
|
||||
getHandle().die();
|
||||
getHandle().velocityChanged = true; // because this occurs when the painting is broken, so it might be important
|
||||
world.addEntity(painting);
|
||||
|
||||
@@ -26,6 +26,8 @@ public final class CraftMemoryMapper {
|
||||
return null;
|
||||
} else if (object instanceof Location) {
|
||||
return toNms((Location) object);
|
||||
} else if (object instanceof Long) {
|
||||
return object;
|
||||
}
|
||||
|
||||
throw new UnsupportedOperationException("Do not know how to map " + object);
|
||||
|
||||
Reference in New Issue
Block a user