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 ::ServerPlayerBlockUseHandler::PredictionValidationError
25getErrorForRejectedRequest(::ServerPlayer& player, ::ItemStackRequestActionMineBlock const& request);
26
27MCAPI void onAbortDestroyBlock(::ServerPlayer& player, ::BlockPos const& pos, int face);
28
29MCAPI void onBeforeMovementSimulation(
30 ::ServerPlayer& player,
31 ::PlayerBlockActions const& blockActions,
32 ::std::unique_ptr<::ItemStackRequestData> itemStackRequest,
34);
35
36MCAPI void onCrackBlock(::ServerPlayer& player, ::BlockPos const& pos, int data);
37
38MCAPI void onStartDestroyBlock(::ServerPlayer& player, ::BlockPos const& pos, int face);
39
40MCAPI void onStopDestroyBlock(::ServerPlayer& player);
41
42MCAPI void serverTickBlockBreaking(::ServerPlayer& player, ::BlockPos const& destroyBlockPos, int facing);
43
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
51);
52// NOLINTEND
53
54} // namespace ServerPlayerBlockUseHandler
Definition NonOwnerPointer.h:9
Definition BlockPos.h:18
Definition ItemStackRequestActionMineBlock.h:16
Definition ItemStackRequestData.h:18
Definition ItemStack.h:25
Definition PlayerBlockActions.h:14
Definition ServerPlayer.h:64
Definition TextFilteringProcessor.h:18
Definition PlayerBlockActionData.h:13