Changes
From Forge Community Wiki
177 bytes added
, 18:46, 20 April 2021
Line 214: |
Line 214: |
| | | |
| This is mostly used for preventing portal spawning in certain dimensions (even the overworld). | | This is mostly used for preventing portal spawning in certain dimensions (even the overworld). |
| + | |
| + | Example usage: |
| + | <syntaxhighlight lang="java"> |
| + | public void onPortalLight(final BlockEvent.PortalSpawnEvent event) |
| + | { |
| + | event.setCanceled(true); |
| + | } |
| + | </syntaxhighlight> |
| | | |
| == BlockToolInteractEvent == | | == BlockToolInteractEvent == |