public static class BlockEvent.PortalSpawnEvent extends BlockEvent
BlockEvent.BreakEvent, BlockEvent.CreateFluidSourceEvent, BlockEvent.CropGrowEvent, BlockEvent.EntityMultiPlaceEvent, BlockEvent.EntityPlaceEvent, BlockEvent.FarmlandTrampleEvent, BlockEvent.FluidPlaceBlockEvent, BlockEvent.HarvestDropsEvent, BlockEvent.MultiPlaceEvent, BlockEvent.NeighborNotifyEvent, BlockEvent.PlaceEvent, BlockEvent.PortalSpawnEvent
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
private BlockPortal.Size |
size |
Constructor and Description |
---|
PortalSpawnEvent(World world,
BlockPos pos,
IBlockState state,
BlockPortal.Size size) |
Modifier and Type | Method and Description |
---|---|
BlockPortal.Size |
getPortalSize() |
getPos, getState, getWorld
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
private final BlockPortal.Size size
public PortalSpawnEvent(World world, BlockPos pos, IBlockState state, BlockPortal.Size size)
public BlockPortal.Size getPortalSize()