public class BlockEvent extends Event
修飾子とタイプ | クラスと説明 |
---|---|
static class |
BlockEvent.BreakEvent
Event that is fired when an Block is about to be broken by a player
Canceling this event will prevent the Block from being broken.
|
static class |
BlockEvent.CreateFluidSourceEvent
Fired to check whether a non-source block can turn into a source block.
|
static class |
BlockEvent.CropGrowEvent
Fired when a crop block grows.
|
static class |
BlockEvent.EntityMultiPlaceEvent
Fired when a single block placement triggers the
creation of multiple blocks(e.g. placing a bed block).
|
static class |
BlockEvent.EntityPlaceEvent
Called when a block is placed.
|
static class |
BlockEvent.FarmlandTrampleEvent
Fired when when farmland gets trampled
This event is
Cancelable |
static class |
BlockEvent.FluidPlaceBlockEvent
Fired when a liquid places a block.
|
static class |
BlockEvent.HarvestDropsEvent
Fired when a block is about to drop it's harvested items.
|
static class |
BlockEvent.NeighborNotifyEvent
Fired when a physics update occurs on a block.
|
static class |
BlockEvent.PortalSpawnEvent |
Event.HasResult, Event.Result
コンストラクタと説明 |
---|
BlockEvent(IWorld world,
BlockPos pos,
BlockState state) |
修飾子とタイプ | メソッドと説明 |
---|---|
BlockPos |
getPos() |
BlockState |
getState() |
IWorld |
getWorld() |
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public BlockEvent(IWorld world, BlockPos pos, BlockState state)
public IWorld getWorld()
public BlockPos getPos()
public BlockState getState()