类 BlockEvent.EntityMultiPlaceEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.level.BlockEvent
net.minecraftforge.event.level.BlockEvent.EntityPlaceEvent
net.minecraftforge.event.level.BlockEvent.EntityMultiPlaceEvent
- 封闭类:
BlockEvent
Fired when a single block placement triggers the
creation of multiple blocks(e.g. placing a bed block). The block returned
by
BlockEvent.state
and its related methods is the block where
the placed block would exist if the placement only affected a single
block.-
嵌套类概要
从类继承的嵌套类/接口 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
从类继承的嵌套类/接口 net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
字段概要
字段 -
构造器概要
构造器构造器说明EntityMultiPlaceEvent
(@NotNull List<BlockSnapshot> blockSnapshots, @NotNull BlockState placedAgainst, @Nullable Entity entity) -
方法概要
修饰符和类型方法说明Gets a list of BlockSnapshots for all blocks which were replaced by the placement of the new blocks.从类继承的方法 net.minecraftforge.event.level.BlockEvent.EntityPlaceEvent
getBlockSnapshot, getEntity, getPlacedAgainst, getPlacedBlock
从类继承的方法 net.minecraftforge.event.level.BlockEvent
getLevel, getPos, getState
从类继承的方法 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
字段详细资料
-
blockSnapshots
-
-
构造器详细资料
-
EntityMultiPlaceEvent
public EntityMultiPlaceEvent(@NotNull @NotNull List<BlockSnapshot> blockSnapshots, @NotNull @NotNull BlockState placedAgainst, @Nullable @Nullable Entity entity)
-
-
方法详细资料
-
getReplacedBlockSnapshots
Gets a list of BlockSnapshots for all blocks which were replaced by the placement of the new blocks. Most of these blocks will just be of type AIR.- 返回:
- immutable list of replaced BlockSnapshots
-