LeviLamina
Loading...
Searching...
No Matches
ServerPlayerBlockUseHandler.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/NonOwnerPointer.h"
7#include "mc/network/PredictionValidationError.h"
8
9// auto generated forward declare list
10// clang-format off
11class BlockPos;
12class ItemStack;
16class ServerPlayer;
19// clang-format on
20
21namespace ServerPlayerBlockUseHandler {
22// functions
23// NOLINTBEGIN
24MCAPI bool isValidSourceRequest(::ServerPlayer& player, ::ItemStackRequestActionMineBlock const& request);
25
26MCAPI void onAbortDestroyBlock(::ServerPlayer& player, ::BlockPos const& pos, int face);
27
28MCAPI void onBeforeMovementSimulation(
29 ::ServerPlayer& player,
30 ::PlayerBlockActions const& blockActions,
31 ::std::unique_ptr<::ItemStackRequestData> itemStackRequest,
32 ::Bedrock::NonOwnerPointer<::TextFilteringProcessor> textFilter
33);
34
35MCAPI void onStartDestroyBlock(::ServerPlayer& player, ::BlockPos const& pos, int face);
36
37MCAPI void serverTickBlockBreaking(::ServerPlayer& player, ::BlockPos const& destroyBlockPos, int facing);
38
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
46);
47// NOLINTEND
48
49} // namespace ServerPlayerBlockUseHandler
Definition BlockPos.h:21
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