Uses of Class
net.neoforged.neoforge.common.util.BlockSnapshot
Package
Description
-
Uses of BlockSnapshot in net.minecraft.client.multiplayer.prediction
Modifier and TypeFieldDescription(package private) BlockSnapshot
BlockStatePredictionHandler.ServerVerifiedState.snapshot
Neo: Used to hold all data necessary for clientside restoration during break denial.Modifier 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
-
Uses of BlockSnapshot in net.neoforged.neoforge.common.util
Modifier 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
Modifier and TypeMethodDescriptionstatic boolean
EventHooks.onBlockPlace
(@Nullable Entity entity, BlockSnapshot blockSnapshot, Direction direction) Modifier and TypeMethodDescriptionstatic boolean
EventHooks.onMultiBlockPlace
(@Nullable Entity entity, List<BlockSnapshot> blockSnapshots, Direction direction) -
Uses of BlockSnapshot in net.neoforged.neoforge.event.level
Modifier and TypeFieldDescriptionprivate final BlockSnapshot
BlockEvent.EntityPlaceEvent.blockSnapshot
Modifier and TypeFieldDescriptionprivate final List
<BlockSnapshot> BlockEvent.EntityMultiPlaceEvent.blockSnapshots
Modifier and TypeMethodDescriptionBlockEvent.EntityMultiPlaceEvent.getReplacedBlockSnapshots()
Gets a list of BlockSnapshots for all blocks which were replaced by the placement of the new blocks.ModifierConstructorDescriptionEntityPlaceEvent
(BlockSnapshot blockSnapshot, BlockState placedAgainst, @Nullable Entity entity) ModifierConstructorDescriptionEntityMultiPlaceEvent
(List<BlockSnapshot> blockSnapshots, BlockState placedAgainst, @Nullable Entity entity)