LeviLamina
Loading...
Searching...
No Matches
PlayerHelpers.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/GameType.h"
7
8// auto generated forward declare list
9// clang-format off
10class Player;
11namespace Editor { class ServiceProviderCollection; }
12namespace Editor::Services { class ModeServiceProvider; }
13// clang-format on
14
15namespace Editor {
16
18public:
19 // static functions
20 // NOLINTBEGIN
21 MCNAPI static ::Editor::Services::ModeServiceProvider const* _getModeServiceConst(::Player const& player);
22
23 MCNAPI static bool canChangeGameType(::Player const& player, ::GameType newGameType);
24
25 MCNAPI static bool canInteractWithOtherEntitiesInGame(::Player const& player);
26
27 MCNAPI static bool canSleep(::Player const& player);
28
29 MCNAPI static ::Editor::ServiceProviderCollection& getServiceProviders(::Player& player);
30
31 MCNAPI static bool isFireImmune(::Player const& player);
32
33 MCNAPI static bool isPlayerAudible(::Player const& player);
34 // NOLINTEND
35};
36
37} // namespace Editor
Definition PlayerHelpers.h:17
static MCAPI bool isPlayerAudible(::Player const &player)
static MCAPI bool canChangeGameType(::Player const &player, ::GameType newGameType)
static MCAPI bool canInteractWithOtherEntitiesInGame(::Player const &player)
static MCAPI bool isFireImmune(::Player const &player)
static MCAPI ::Editor::ServiceProviderCollection & getServiceProviders(::Player &player)
static MCAPI ::Editor::Services::ModeServiceProvider const * _getModeServiceConst(::Player const &player)
static MCAPI bool canSleep(::Player const &player)
Definition ServiceProviderCollection.h:7
Definition ModeServiceProvider.h:16
Definition Player.h:137