[Bleeding] Add experimental support for entity portal traveling

EntityPortalEvent is called when an entity is about to portal to a
new location. This event is cancellable on top of being able to
change the exit location.

EntityPortalExitEvent is called when exiting the portal, allowing
for adjustment of the exit velocity.

By: EdGruberman <ed@rjump.com>
This commit is contained in:
Bukkit/Spigot
2012-12-14 02:55:41 -07:00
parent 941e29786e
commit c5392313d3
4 changed files with 107 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ import org.bukkit.entity.Player;
import org.bukkit.event.HandlerList;
/**
* Called when a player completes the portaling process by standing in a portal
* Called when a player is about to teleport because it is in contact with a portal
*/
public class PlayerPortalEvent extends PlayerTeleportEvent {
private static final HandlerList handlers = new HandlerList();