3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/core/utility/NonOwnerPointer.h"
7#include "mc/network/PredictionValidationError.h"
21namespace ServerPlayerBlockUseHandler {
24MCAPI
bool isValidSourceRequest(::ServerPlayer& player, ::ItemStackRequestActionMineBlock
const& request);
26MCAPI
void onAbortDestroyBlock(::ServerPlayer& player, ::BlockPos
const& pos,
int face);
28MCAPI
void onBeforeMovementSimulation(
29 ::ServerPlayer& player,
30 ::PlayerBlockActions
const& blockActions,
31 ::std::unique_ptr<::ItemStackRequestData> itemStackRequest,
32 ::Bedrock::NonOwnerPointer<::TextFilteringProcessor> textFilter
35MCAPI
void onStartDestroyBlock(::ServerPlayer& player, ::BlockPos
const& pos,
int face);
37MCAPI
void serverTickBlockBreaking(::ServerPlayer& player, ::BlockPos
const& destroyBlockPos,
int facing);
39MCAPI ::ServerPlayerBlockUseHandler::PredictionValidationError validateClientBlockBreakPrediction(
40 ::ServerPlayer& player,
41 ::ItemStackRequestActionMineBlock
const* mineRequest,
42 ::BlockPos
const& serverDestroyedBlock,
43 ::ItemStack
const& oldItem,
44 ::ItemStack
const& newItem,
45 ::PlayerBlockActionData
const* clientDestroyPrediction
Definition ItemStackRequestActionMineBlock.h:17
Definition ItemStackRequestData.h:20
Definition ItemStack.h:35
Definition PlayerBlockActions.h:16
Definition ServerPlayer.h:74
Definition TextFilteringProcessor.h:20
Definition PlayerBlockActionData.h:15