Link to portalspawn
The PortalSpawn Event is fired when an attempt is made to spawn a nether portal. If cancelled, the portal will not be spawned.
Link to event-class
You will need to cast the event in the function header as this class:
You can, of course, also import the class before and use that name then.
Event interface extensions
Link to event-interface-extensions
BlockNeighborNotify Events implement the following interfaces and are able to call all of their methods/getters/setters as well:
Link to zengetters
DescriptionIf the size of portal is valid
DescriptionThe height of portal
DescriptionThe width of portal