PortalSpawn
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 класс-события
You will need to cast the event in the function header as this class:
crafttweaker.event.PortalSpawnEvent
You can, of course, also import the class before and use that name then.
Наследование от интерфейсов событий
Link to наследование-от-интерфейсов-событий
BlockNeighborNotify Events implement the following interfaces and are able to call all of their methods/getters/setters as well:
ZenGetters
Link to zengetters
ZenGetter | Тип | Описание |
---|---|---|
ZenGetter valid | Тип bool | Описание If the size of portal is valid |
ZenGetter height | Тип int | Описание The height of portal |
ZenGetter width | Тип int | Описание The width of portal |