Package net.minecraftforge.event.level
Class BlockEvent.PortalSpawnEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.level.BlockEvent
net.minecraftforge.event.level.BlockEvent.PortalSpawnEvent
- Enclosing class:
- BlockEvent
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.minecraftforge.event.level.BlockEvent
BlockEvent.BlockToolModificationEvent, BlockEvent.BreakEvent, BlockEvent.CreateFluidSourceEvent, BlockEvent.CropGrowEvent, BlockEvent.EntityMultiPlaceEvent, BlockEvent.EntityPlaceEvent, BlockEvent.FarmlandTrampleEvent, BlockEvent.FluidPlaceBlockEvent, BlockEvent.NeighborNotifyEvent, BlockEvent.PortalSpawnEvent
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPortalSpawnEvent
(LevelAccessor level, BlockPos pos, BlockState state, PortalShape size) -
Method Summary
Methods inherited from class net.minecraftforge.event.level.BlockEvent
getLevel, getPos, getState
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
size
-
-
Constructor Details
-
PortalSpawnEvent
-
-
Method Details
-
getPortalSize
-