3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/core/utility/NonOwnerPointer.h"
7#include "mc/network/PredictionValidationError.h"
21namespace ServerPlayerBlockUseHandler {
24MCAPI ::ServerPlayerBlockUseHandler::PredictionValidationError
25getErrorForRejectedRequest(::ServerPlayer& player, ::ItemStackRequestActionMineBlock
const& request);
27MCAPI
void onAbortDestroyBlock(::ServerPlayer& player, ::BlockPos
const& pos,
int face);
29MCAPI
void onBeforeMovementSimulation(
30 ::ServerPlayer& player,
31 ::PlayerBlockActions
const& blockActions,
32 ::std::unique_ptr<::ItemStackRequestData> itemStackRequest,
33 ::Bedrock::NonOwnerPointer<::TextFilteringProcessor> textFilter
36MCAPI
void onCrackBlock(::ServerPlayer& player, ::BlockPos
const& pos,
int data);
38MCAPI
void onStartDestroyBlock(::ServerPlayer& player, ::BlockPos
const& pos,
int face);
40MCAPI
void onStopDestroyBlock(::ServerPlayer& player);
42MCAPI
void serverTickBlockBreaking(::ServerPlayer& player, ::BlockPos
const& destroyBlockPos,
int facing);
44MCAPI ::ServerPlayerBlockUseHandler::PredictionValidationError validateClientBlockBreakPrediction(
45 ::ServerPlayer& player,
46 ::ItemStackRequestActionMineBlock
const* mineRequest,
47 ::BlockPos
const& serverDestroyedBlock,
48 ::ItemStack
const& oldItem,
49 ::ItemStack
const& newItem,
50 ::PlayerBlockActionData
const* clientDestroyPrediction
Definition ItemStackRequestActionMineBlock.h:16
Definition ItemStackRequestData.h:18
Definition ItemStack.h:26
Definition PlayerBlockActions.h:14
Definition ServerPlayer.h:67
Definition TextFilteringProcessor.h:18
Definition PlayerBlockActionData.h:15