Uses of Class
net.neoforged.neoforge.common.util.BlockSnapshot
Packages that use BlockSnapshot
Package
Description
-
Uses of BlockSnapshot in net.neoforged.neoforge.common.util
Methods in net.neoforged.neoforge.common.util that return BlockSnapshotModifier and TypeMethodDescriptionstatic BlockSnapshot
BlockSnapshot.create
(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dim, net.minecraft.world.level.LevelAccessor level, net.minecraft.core.BlockPos pos) Creates a new snapshot with the default block flags (and Block#UPDATE_CLIENTS
.static BlockSnapshot
BlockSnapshot.create
(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dim, net.minecraft.world.level.LevelAccessor level, net.minecraft.core.BlockPos pos, int flag) Creates a new snapshot of the data at the given position. -
Uses of BlockSnapshot in net.neoforged.neoforge.event
Methods in net.neoforged.neoforge.event with parameters of type BlockSnapshotModifier and TypeMethodDescriptionstatic boolean
EventHooks.onBlockPlace
(@Nullable net.minecraft.world.entity.Entity entity, BlockSnapshot blockSnapshot, net.minecraft.core.Direction direction) Method parameters in net.neoforged.neoforge.event with type arguments of type BlockSnapshotModifier and TypeMethodDescriptionstatic boolean
EventHooks.onMultiBlockPlace
(@Nullable net.minecraft.world.entity.Entity entity, List<BlockSnapshot> blockSnapshots, net.minecraft.core.Direction direction) -
Uses of BlockSnapshot in net.neoforged.neoforge.event.level
Fields in net.neoforged.neoforge.event.level declared as BlockSnapshotModifier and TypeFieldDescriptionprivate final BlockSnapshot
BlockEvent.EntityPlaceEvent.blockSnapshot
Fields in net.neoforged.neoforge.event.level with type parameters of type BlockSnapshotModifier and TypeFieldDescriptionprivate final List
<BlockSnapshot> BlockEvent.EntityMultiPlaceEvent.blockSnapshots
Methods in net.neoforged.neoforge.event.level that return BlockSnapshotMethods in net.neoforged.neoforge.event.level that return types with arguments of type BlockSnapshotModifier and TypeMethodDescriptionBlockEvent.EntityMultiPlaceEvent.getReplacedBlockSnapshots()
Gets a list of BlockSnapshots for all blocks which were replaced by the placement of the new blocks.Constructors in net.neoforged.neoforge.event.level with parameters of type BlockSnapshotModifierConstructorDescriptionEntityPlaceEvent
(BlockSnapshot blockSnapshot, net.minecraft.world.level.block.state.BlockState placedAgainst, @Nullable net.minecraft.world.entity.Entity entity) Constructor parameters in net.neoforged.neoforge.event.level with type arguments of type BlockSnapshotModifierConstructorDescriptionEntityMultiPlaceEvent
(List<BlockSnapshot> blockSnapshots, net.minecraft.world.level.block.state.BlockState placedAgainst, @Nullable net.minecraft.world.entity.Entity entity)