类 BlockEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.level.BlockEvent
- 直接已知子类:
BlockDropsEvent
,BlockEvent.BlockToolModificationEvent
,BlockEvent.BreakEvent
,BlockEvent.EntityPlaceEvent
,BlockEvent.FarmlandTrampleEvent
,BlockEvent.FluidPlaceBlockEvent
,BlockEvent.NeighborNotifyEvent
,BlockEvent.PortalSpawnEvent
,CreateFluidSourceEvent
,CropGrowEvent
,NoteBlockEvent
,PistonEvent
public abstract class BlockEvent
extends net.neoforged.bus.api.Event
-
嵌套类概要
嵌套类修饰符和类型类说明static class
Fired when a block is right-clicked by a tool to change its state.static class
This event is fired on the server when a player attempts to break a block, upon receipt of a block break packet.static class
Fired when a single block placement triggers the creation of multiple blocks(e.g. placing a bed block).static class
Called when a block is placed.static class
Fired when when farmland gets trampled This event isICancellableEvent
static class
Fired when a liquid places a block.static class
Fired when a physics update occurs on a block.static class
Fired when an attempt is made to spawn a nether portal fromBaseFireBlock.onPlace(BlockState, Level, BlockPos, BlockState, boolean)
. -
字段概要
字段修饰符和类型字段说明private static final boolean
private final LevelAccessor
private final BlockPos
private final BlockState
-
构造器概要
构造器 -
方法概要
-
字段详细资料
-
DEBUG
private static final boolean DEBUG -
level
-
pos
-
state
-
-
构造器详细资料
-
BlockEvent
-
-
方法详细资料
-
getLevel
-
getPos
-
getState
-