Bukkit/Bukkit — pull request #463 by wilsonsd (2011-12-26 06:17:39+00:00)
Title: Add a reason code to PortalCreateEvent.

Plugins have no way to distinguish a portal that is being created by a
player setting fire to an obsidian frame and a portal that is created
because a player goes through an existing portal and needs somewhere
to come out. This commit adds:
1. a enum PortalCreateEvent.Reason, with two values: FIRE (for when a
frame is set fire) and FAR_END (for when a portal is created as a
destination for an existing portal).
2. PortalCreateEvent.reason, a field of type Reason, to hold the
reason for the event.
3. PortalCreateEvent.getReason(), so plugins can get the reason.