Class BlockEvent.PortalSpawnEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.level.BlockEvent
net.neoforged.neoforge.event.level.BlockEvent.PortalSpawnEvent
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
- Enclosing class:
BlockEvent
public static class BlockEvent.PortalSpawnEvent
extends BlockEvent
implements net.neoforged.bus.api.ICancellableEvent
Fired when an attempt is made to spawn a nether portal from
BaseFireBlock.onPlace(BlockState, Level, BlockPos, BlockState, boolean)
.
If cancelled, the portal will not be spawned.-
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.neoforge.event.level.BlockEvent
BlockEvent.BlockToolModificationEvent, BlockEvent.BreakEvent, BlockEvent.EntityMultiPlaceEvent, BlockEvent.EntityPlaceEvent, BlockEvent.FarmlandTrampleEvent, BlockEvent.FluidPlaceBlockEvent, BlockEvent.NeighborNotifyEvent, BlockEvent.PortalSpawnEvent
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPortalSpawnEvent
(LevelAccessor level, BlockPos pos, BlockState state, PortalShape size) -
Method Summary
Methods inherited from class net.neoforged.neoforge.event.level.BlockEvent
getLevel, getPos, getState
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
Field Details
-
size
-
-
Constructor Details
-
PortalSpawnEvent
-
-
Method Details
-
getPortalSize
-