mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-18 19:29:34 +00:00
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:
1 parent
5b4d4ff498
commit
d7cedd2c57
1 file changed
+8
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user