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:
parent
5b4d4ff498
commit
d7cedd2c57
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue