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

@ -44,4 +44,12 @@ public class TeleposeEvent extends Event {
finalMetadata = mf;
}
public TileEntity getInitialTile() {
return initialWorld.getTileEntity(initialX, initialY, initialZ);
}
public TileEntity getFinalTile() {
return finalWorld.getTileEntity(finalX, finalY, finalZ);
}
}