Uses of Class
net.neoforged.neoforge.common.util.BlockSnapshot
Packages that use BlockSnapshot
Package
Description
-
Uses of BlockSnapshot in net.minecraft.client.multiplayer.prediction
Fields in net.minecraft.client.multiplayer.prediction declared as BlockSnapshotModifier and TypeFieldDescription(package private) BlockSnapshot
BlockStatePredictionHandler.ServerVerifiedState.snapshot
Neo: Used to hold all data necessary for clientside restoration during break denial.Methods in net.minecraft.client.multiplayer.prediction with parameters of type BlockSnapshotModifier and TypeMethodDescriptionvoid
BlockStatePredictionHandler.retainSnapshot
(BlockPos pos, BlockSnapshot snapshot) Sets the stored BlockSnapshot on the ServerVerifiedState for the given position. -
Uses of BlockSnapshot in net.minecraft.world.level
Fields in net.minecraft.world.level with type parameters of type BlockSnapshot -
Uses of BlockSnapshot in net.neoforged.neoforge.common.util
Methods in net.neoforged.neoforge.common.util that return BlockSnapshotModifier and TypeMethodDescriptionstatic BlockSnapshot
BlockSnapshot.create
(ResourceKey<Level> dim, LevelAccessor level, BlockPos pos) Creates a new snapshot with the default block flags (and Block#UPDATE_CLIENTS
.static BlockSnapshot
BlockSnapshot.create
(ResourceKey<Level> dim, LevelAccessor level, 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 Entity entity, BlockSnapshot blockSnapshot, Direction direction) Method parameters in net.neoforged.neoforge.event with type arguments of type BlockSnapshotModifier and TypeMethodDescriptionstatic boolean
EventHooks.onMultiBlockPlace
(@Nullable Entity entity, List<BlockSnapshot> blockSnapshots, 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, BlockState placedAgainst, @Nullable Entity entity) Constructor parameters in net.neoforged.neoforge.event.level with type arguments of type BlockSnapshotModifierConstructorDescriptionEntityMultiPlaceEvent
(List<BlockSnapshot> blockSnapshots, BlockState placedAgainst, @Nullable Entity entity)