Update TeleposeEvent.java

Add a convenience function (which may or may not be partly to keep my handler's code from going off my screen :P )
This commit is contained in:
Reika 2015-01-25 23:23:03 -05:00
parent 5b4d4ff498
commit d7cedd2c57

View file

@ -43,5 +43,13 @@ public class TeleposeEvent extends Event {
finalBlock = bf;
finalMetadata = mf;
}
public TileEntity getInitialTile() {
return initialWorld.getTileEntity(initialX, initialY, initialZ);
}
public TileEntity getFinalTile() {
return finalWorld.getTileEntity(finalX, finalY, finalZ);
}
}