Open main menu
Home
Random
Log in
Settings
About Forge Community Wiki
Disclaimers
Forge Community Wiki
Search
Changes
← Older edit
Events/BlockEvent
(view source)
Revision as of 18:46, 20 April 2021
177 bytes added
,
18:46, 20 April 2021
no edit summary
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 ==
EERussianguy
16
edits