LeviLamina
Loading...
Searching...
No Matches
ClientPlayerEventCoordinator.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/events/NetworkType.h"
7#include "mc/world/actor/player/persona/ProfileType.h"
8#include "mc/world/events/PlayerEventCoordinator.h"
9
10// auto generated forward declare list
11// clang-format off
12class Actor;
13class Block;
14class BlockPos;
15class EntityContext;
16class Player;
17class Vec2;
18struct ActorUniqueID;
19class IClientInstance;
20class LocalPlayer;
21// clang-format on
22
24public:
25 // member functions
26 // NOLINTBEGIN
27#ifdef LL_PLAT_C
28 MCAPI void sendCameraSetPlayerRot(::Player& player, ::Vec2 const& rotation);
29
30 MCAPI void sendCloseAllScreensRequestEvent(::LocalPlayer& player);
31
32 MCAPI void sendCloseDataDrivenScreenRequestEvent(::LocalPlayer& player, uint formId);
33
34 MCAPI void sendLocalPlayerDeath(::IClientInstance& client, ::LocalPlayer& player);
35
36 MCAPI void sendLocalPlayerOpenInventory(::IClientInstance& client, ::LocalPlayer& player);
37
38 MCAPI void sendLocalPlayerOpenTrading(
39 ::IClientInstance& client,
40 ::LocalPlayer& player,
41 ::ActorUniqueID const& uniqueID,
42 bool useNewScreen
43 );
44
45 MCAPI void sendLocalPlayerRespawn(::IClientInstance& client, ::LocalPlayer& player);
46
47 MCAPI void sendPlayerCreated(
48 ::LocalPlayer& player,
49 ::persona::ProfileType personaSlot,
50 ::std::string const& classicSkinId,
51 bool usingClassicSkin,
52 ::NetworkType networkType
53 );
54#endif
55
56 MCAPI void sendPlayerDestroyedBlock(::Player& player, ::Block const& block);
57
58#ifdef LL_PLAT_C
59 MCAPI void sendPlayerInput(::EntityContext& entity);
60
61 MCAPI void sendPlayerStartRiding(::Player& player, ::Actor& vehicle);
62
63 MCAPI void
64 sendPlayerStopRiding(::Player& player, bool exitFromPassenger, bool entityIsBeingDestroyed, bool switchingVehicles);
65
66 MCAPI void sendPlayerTurn(::Player& player, ::Vec2& turnDelta);
67
68 MCAPI void sendShowScreenRequestEvent(
69 ::LocalPlayer& player,
70 ::std::string const& screenId,
71 uint formId,
72 ::std::optional<uint> dataInstanceId
73 );
74#endif
75
76 MCAPI void sendStartDestroyBlock(::Player& player, ::BlockPos const& pos, uchar& face);
77 // NOLINTEND
78
79public:
80 // vftables
81 // NOLINTBEGIN
82 MCNAPI static void** $vftable();
83 // NOLINTEND
84};
Definition Actor.h:123
Definition BlockPos.h:21
Definition Block.h:69
Definition ClientPlayerEventCoordinator.h:23
static MCAPI void ** $vftable()
Definition EntityContext.h:17
Definition IClientInstance.h:5
Definition LocalPlayer.h:5
Definition PlayerEventCoordinator.h:27
Definition Player.h:136
Definition Vec2.h:5
Definition ActorUniqueID.h:10