3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/options/EducationServicesEnvironment.h"
7#include "mc/common/SubClientId.h"
8#include "mc/deps/core/debug/log/LogLevel.h"
9#include "mc/deps/core/file/file_system/FileType.h"
10#include "mc/deps/core/sem_ver/SemVersionBase.h"
11#include "mc/deps/core/utility/NonOwnerPointer.h"
12#include "mc/deps/json/ValueType.h"
13#include "mc/deps/nether_net/LogSeverity.h"
14#include "mc/deps/shared_types/legacy/FilterSubject.h"
15#include "mc/deps/shared_types/legacy/item/UseAnimation.h"
16#include "mc/events/TextProcessingEventOrigin.h"
17#include "mc/external/lib_http_client/http_stl_allocator.h"
18#include "mc/external/libsrtp/srtp_err_status_t.h"
19#include "mc/network/packet/AgentActionType.h"
20#include "mc/options/DiscoveryEnvironment.h"
21#include "mc/util/HudElement.h"
22#include "mc/util/gltf/Accessor.h"
23#include "mc/util/gltf/Image.h"
24#include "mc/util/gltf/Material.h"
25#include "mc/world/actor/ActorCategory.h"
26#include "mc/world/actor/ActorFilterGroup.h"
27#include "mc/world/actor/ActorType.h"
28#include "mc/world/actor/ActorTypeNamespaceRules.h"
29#include "mc/world/containers/ContainerEnumName.h"
30#include "mc/world/filters/FilterGroup.h"
31#include "mc/world/filters/FilterOperator.h"
32#include "mc/world/item/CreativeItemCategory.h"
33#include "mc/world/level/WorldVersion.h"
34#include "mc/world/level/block/BlockProperty.h"
35#include "mc/world/level/block/BlockSlot.h"
36#include "mc/world/level/chunk/LevelChunkTag.h"
37#include "mc/world/level/chunk/SubChunkDelayedDeleter.h"
38#include "mc/world/level/chunk/SubChunkStorage.h"
39#include "mc/world/level/levelgen/flat/FlatWorldPresetID.h"
40#include "mc/world/level/material/MaterialType.h"
41#include "mc/world/level/saveddata/maps/MapItemSavedData.h"
42#include "mc/world/redstone/circuit/components/CircuitComponentType.h"
96namespace Bedrock {
class StaticOptimizedString; }
97namespace Bedrock {
class WorkerPoolHandleInterface; }
98namespace Core {
class File; }
99namespace Core {
class PathView; }
100namespace Core {
class Result; }
101namespace Json {
class Value; }
102namespace RakNet {
class RakPeerInterface; }
103namespace RakNet {
struct RakPeerConfiguration; }
104namespace cereal {
struct ReflectionCtx; }
105namespace mce {
class UUID; }
110MCAPI
void BedrockLogOut(uint,
char const*, ...);
112MCAPI ::CreativeItemCategory CreativeItemCategoryFromString(::std::string
const& str);
114MCFOLD
void* DefaultMemAllocFunction(uint64 size, uint memoryType);
116MCFOLD
void DefaultMemFreeFunction(
void* pointer, uint memoryType);
118MCFOLD
void DefaultOutOfMemoryHandler(
char const* file,
long line);
120MCAPI
bool DoesMockCallMatch(
::HC_CALL const* mockCall,
::HC_CALL const* originalCall);
122MCAPI ::HashedString
const& EntityCanonicalName(::ActorType entityType);
124MCAPI ::ActorType EntityTypeFromString(::std::string
const& str);
126MCAPI ::std::string EntityTypeToFormattedLocString(::ActorType entityType, ::ActorTypeNamespaceRules namespaceRule);
128MCAPI ::std::string EntityTypeToLocString(::ActorType entityType, ::ActorTypeNamespaceRules namespaceRule);
130MCAPI ::std::string EntityTypeToString(::ActorType entityType, ::ActorTypeNamespaceRules namespaceRule);
132MCAPI
void EntityTypeToStringAndNamespace(::ActorType entityType, ::std::string& nameOut, ::std::string& namespaceOut);
134MCAPI
float FoodSaturationFromString(::std::string
const& str);
136MCAPI ::std::unordered_map<::std::string, ::ActorFactoryData>& GetActorDataRegistry();
138MCAPI
double GetEngagementMetricsTimeSinceAppStart_DEPRECATED();
142MCAPI ::std::optional<::LogLevel> LogLevelFromString(::std::string
const& str);
148MCAPI
bool Mock_Internal_HCHttpCallPerformAsync(
::HC_CALL* originalCall);
150MCAPI
long Mock_Internal_ReadRequestBodyIntoMemory(
155MCAPI ::std::optional<::NetherNet::LogSeverity> NetherNetLogSeverityFromString(::std::string
const& str);
157MCAPI
void PlatformBedrockLogOut(uint _priority,
char const* buf, uint64 nullTerminatorPos);
159MCAPI ::std::string StringFromCreativeItemCategory(::CreativeItemCategory category);
161MCAPI ::std::string StringFromMaterialType(::MaterialType
const& materialType);
163MCAPI ::SharedTypes::Legacy::UseAnimation UseAnimationFromString(::std::string
const& str);
165MCAPI
void _addEnvironmentSubfilter(
166 ::std::string
const& legacyPredicate,
167 ::FilterGroup::CollectionType type,
168 ::std::string
const& filterName,
169 ::SharedTypes::Legacy::FilterSubject subject,
171 ::ActorFilterGroup::Processing process
174MCAPI
void _addLegacyFilterDefinition(
175 ::std::string
const& legacyPredicate,
176 ::FilterGroup::CollectionType type,
177 ::std::string
const& filterName,
178 ::SharedTypes::Legacy::FilterSubject subject,
180 ::ActorFilterGroup::Processing process
185MCAPI ::std::unique_ptr<::ListTag> _createBlockStateEnum(
::BlockState const& state);
187MCAPI uchar _facingToDirection(uchar facing);
189MCAPI uint _facingToVineDirection(uchar facing);
191MCAPI ::ScatterParamsMolangVariableIndices& _getScatterParamsMolangVariableIndices();
193MCAPI ::Block
const* _loadLayerBlock(
::Json::Value const& layer);
195MCAPI ::std::optional<::BlockPos> _locateBiome(
196 ::std::function<
bool(
::Biome const&)>
const& predicate,
203MCAPI ::std::optional<::std::vector<::BlockLayer>>
206MCAPI ::std::optional<::std::vector<::BlockLayer>>
209MCAPI ::std::optional<::std::vector<::BlockLayer>>
212MCAPI ::std::optional<::std::vector<::BlockLayer>>
215MCAPI ::std::unique_ptr<::ListTag> _saveBlockList(::std::vector<::BlockLegacy const*>
const& blockList);
224MCAPI
char const* blockSlotToString(::BlockSlot slot);
226MCAPI ::KeyOrNameResult
227buildActorDisplayName(::ActorType actorType, ::std::string
const& nameTag,
::Actor const* actor);
229MCAPI
void checkComponent(
232 ::CircuitComponentType typeId,
240MCAPI
bool checkTypeFilter(
254MCAPI ::Bedrock::NonOwnerPointer<::WorkerPool> createWorkerPool(
255 ::std::string_view name,
257 ::std::shared_ptr<::Bedrock::WorkerPoolHandleInterface>& destHandle
260MCAPI ::ActorCategory entityCategoriesFromString(::std::string
const& str);
262MCAPI ::ActorCategory entityCategoryFromString(::std::string
const& str);
264MCAPI ::srtp_err_status_t external_crypto_init();
266MCAPI ::srtp_err_status_t external_hmac_alloc(
::srtp_auth_t** a,
int key_len,
int out_len);
268MCAPI ::srtp_err_status_t external_hmac_compute(
void*, uchar
const*,
int,
int tag_len, uchar* result);
270MCAPI ::srtp_err_status_t external_hmac_dealloc(
::srtp_auth_t* a);
272MCAPI ::srtp_err_status_t external_hmac_init(
void* state, uchar
const* key,
int key_len);
274MCFOLD ::srtp_err_status_t external_hmac_start(
void*);
276MCFOLD ::srtp_err_status_t external_hmac_update(
void*, uchar
const*,
int);
280MCAPI ::std::optional<::FlatWorldPresetID> flatWorldPresetIDFromString(::std::string
const& str);
282MCAPI
void forEachEntityType(
283 ::std::function<
bool(::ActorType, ::std::string
const&)> callback,
284 ::ActorTypeNamespaceRules namespaceRule
289MCAPI
int fseek(
::Core::File& file, int64 offset,
int origin);
291MCAPI ::std::string gatherTypeStrings(::std::vector<::Json::ValueType>
const& types);
293MCAPI ::std::string getDiscoveryServiceURL(::DiscoveryEnvironment environment);
297MCAPI ::FlatWorldPreset
const& getFlatWorldPresetWithID(::FlatWorldPresetID
id);
299MCAPI ::std::unordered_map<::FlatWorldPresetID, ::FlatWorldPreset>
const& getFlatWorldPresets();
301MCAPI ::I18n& getI18n();
303MCAPI ::std::string getJsonTypeString(::Json::ValueType
const& type);
305MCAPI ::std::unordered_map<int, ::std::string>
const& getPackParseErrorTypeEventMapAccess();
307MCAPI ::std::unordered_map<int, ::std::string>
const& getPackParseErrorTypeLOCMapAccess();
309MCAPI ::AllWorkerConfigurations getWorkerConfiguration(uint highPowerCores, uint totalCores);
311MCAPI ::std::string join(::std::string prefix, ::std::string_view chunkKey);
313MCAPI ::std::string join(::std::string_view prefix, ::LevelChunkTag tag);
315MCAPI ::std::string join(::std::string_view prefix, ::LevelChunkTag tag, uint i);
317MCAPI ::std::string makeGuestDisplayName(::std::string
const& hostName, ::SubClientId subclientId);
319MCAPI ::mce::UUID makeGuestUUID(
::mce::UUID const& hostUuid, ::SubClientId subclientId);
336MCFOLD
bool operator<=(
347MCAPI
bool operator==(
352MCAPI
bool operator==(
357MCAPI ::BlockProperty operator|(::BlockProperty lhs, ::BlockProperty b);
359MCAPI
void renderMapChunk(
367MCAPI ::DiscoveryEnvironment stringToDiscoveryEnvironment(::std::string
const& str);
371MCAPI ::leveldb::Status toLevelDbStatus(
::Core::Result const& result);
373MCAPI ::std::string toString(::AgentActionType type);
375MCAPI ::std::optional<::std::locale> tryGetLocaleFromName(::std::string
const& localeName);
377MCAPI ::http_wstring utf16_from_utf8(::http_string
const& utf8);
379MCAPI ::http_wstring utf16_from_utf8(
char const* utf8);
381MCAPI ::http_wstring utf16_from_utf8(
char const* utf8, uint64 size);
383MCAPI ::http_string utf8_from_utf16(::http_wstring
const& utf16);
385MCAPI ::http_string utf8_from_utf16(
wchar_t const* utf16, uint64 size);
390MCAPI ::std::vector<::HudElement>
const& ALL_HUD_ELEMENTS();
392MCAPI ::std::unordered_map<
393 ::glTF::Accessor::Type,
396 ::std::equal_to<::glTF::Accessor::Type>>
const&
397AccessorTypeEnumMap();
399MCAPI ::HashedString
const& BLAST_FURNACE_TAG();
401MCAPI ::HashedString
const& CAMPFIRE_TAG();
403MCAPI ::std::unordered_map<::ContainerEnumName, ::std::string>& ContainerCollectionNameMap();
405MCAPI ::HashedString
const& FURNACE_TAG();
407MCAPI ::std::array<::std::pair<::HudElement, ::std::string>, 13>
const& HUD_ELEMENTS_TO_STRINGS();
409MCAPI ::GatheringServerInfo
const& INVALID_GATHERING_SERVER_INFO();
411MCAPI ::ThirdPartyInfo
const& INVALID_THIRD_PARTY_INFO();
413MCAPI
char const*& IPV4_LOOPBACK();
415MCAPI
char const*& IPV6_LOOPBACK();
417MCAPI ::std::unordered_map<
418 ::glTF::Image::ImageMimeType,
421 ::std::equal_to<::glTF::Image::ImageMimeType>>
const&
422ImageMimeTypeEnumMap();
424MCAPI ::MCRESULT
const& MCRESULT_AllTargetsWillFail();
426MCAPI ::MCRESULT
const& MCRESULT_ChatMuted();
428MCAPI ::MCRESULT
const& MCRESULT_CommandExecIncomplete();
430MCAPI ::MCRESULT
const& MCRESULT_CommandNotFound();
432MCAPI ::MCRESULT
const& MCRESULT_CommandRequestInitiated();
434MCAPI ::MCRESULT
const& MCRESULT_CommandStepDone();
436MCAPI ::MCRESULT
const& MCRESULT_CommandStepFail();
438MCAPI ::MCRESULT
const& MCRESULT_CommandVersionMismatch();
440MCAPI ::MCRESULT
const& MCRESULT_CommandsDisabled();
442MCAPI ::MCRESULT
const& MCRESULT_EncryptionRequired();
444MCAPI ::MCRESULT
const& MCRESULT_ExecutionFail();
446MCAPI ::MCRESULT
const& MCRESULT_ExpectedRequestMsg();
448MCAPI ::MCRESULT
const& MCRESULT_FailWithoutFailMsg();
450MCAPI ::MCRESULT
const& MCRESULT_FailedToParseCommand();
452MCAPI ::MCRESULT
const& MCRESULT_InvalidCommandCall();
454MCAPI ::MCRESULT
const& MCRESULT_InvalidCommandContext();
456MCAPI ::MCRESULT
const& MCRESULT_InvalidCommandOrigin();
458MCAPI ::MCRESULT
const& MCRESULT_InvalidOverloadSyntax();
460MCAPI ::MCRESULT
const& MCRESULT_MalformedRequest();
462MCAPI ::MCRESULT
const& MCRESULT_MustSpecifyVersion();
464MCAPI ::MCRESULT
const& MCRESULT_NewCommandVersionAvailable();
466MCAPI ::MCRESULT
const& MCRESULT_NoChatPermissions();
468MCAPI ::MCRESULT
const& MCRESULT_NoTargetsFound();
470MCAPI ::MCRESULT
const& MCRESULT_NotEnoughPermissions();
472MCAPI ::MCRESULT
const& MCRESULT_Success();
474MCAPI ::MCRESULT
const& MCRESULT_TooManyPendingRequests();
476MCAPI ::MCRESULT
const& MCRESULT_VersionMismatch();
478MCAPI ::SemVersionConstant
const& MIN_ENGINE_VERSION_MINIMUM_V2();
480MCAPI ::std::unordered_map<
481 ::glTF::Material::AlphaMode,
484 ::std::equal_to<::glTF::Material::AlphaMode>>
const&
485MaterialAlphaModeEnumMap();
487MCAPI ::std::bitset<38>
const& PLAYER_ACTION_MOVEMENT_BITSET();
489MCAPI ::std::bitset<38>
const& PLAYER_ACTION_MOVEMENT_FLYING_ATTRIBUTE_BITSET();
491MCAPI ::std::bitset<38>
const& PLAYER_ACTION_MOVEMENT_SPEED_ATTRIBUTE_BITSET();
493MCAPI ::HashedString
const& SMOKER_TAG();
495MCAPI ::HashedString
const& SOUL_CAMPFIRE_TAG();
501MCAPI ::std::unordered_map<
502 ::TextProcessingEventOrigin,
505 ::std::equal_to<::TextProcessingEventOrigin>>
const&
506TextProcessingEventOriginEnumMap();
508MCAPI ::std::array<::HashedString, 17>
const& VanillaStructureFeatureTypes();
510MCAPI ::std::unordered_map<::std::string, ::ActorFilterGroup::LegacyMapping>& _environmentSubfilters();
512MCAPI ::std::unordered_map<::std::string, ::ActorFilterGroup::LegacyMapping>& _legacyPredicates();
514MCAPI ::std::unordered_map<int, ::std::string>
const& discoveryEnvironmentLabels();
516MCAPI ::std::unordered_map<::std::string, ::DiscoveryEnvironment>
const& discoveryEnvironmentStrings();
518MCAPI ::std::unordered_map<::DiscoveryEnvironment, ::std::string>
const& discoveryEnvironments();
520MCAPI ::std::add_lvalue_reference_t<uint[]> englishCharacterFrequencies();
522MCAPI ::std::vector<::std::string>& gAreaFilters();
524MCAPI ::SubChunkDelayedDeleter<::SubChunkStorage<::Biome>>& gBiomeChunkGC();
526MCAPI ::SubChunkDelayedDeleter<::SubChunkStorage<::Block>>& gBlockStorageGC();
528MCAPI ::InternalTaskGroup& gInternalTaskGroup();
530MCAPI ::SubChunkDelayedDeleter<::SubChunkBrightnessStorage>& gLightStorageGC();
532MCAPI ::std::vector<::std::string>& gPriorityFilters();
534MCAPI ::std::add_lvalue_reference_t<
void* (*)(uint64, uint)> g_memAllocFunc();
536MCAPI ::std::add_lvalue_reference_t<void (*)(
void*, uint)> g_memFreeFunc();
538MCAPI ::HCTraceImplArea& g_traceHTTPCLIENT();
540MCAPI ::HCTraceImplArea& g_traceWEBSOCKET();
542MCAPI ::EducationServicesEnvironment& mCachedServicesEnvironment();
544MCAPI ::std::add_lvalue_reference_t<void (*)(
char const*, long)> notifyOutOfMemory();
546MCAPI ::std::add_lvalue_reference_t<void (*)(
void*,
char const*, uint)> rakFree_Ex();
548MCAPI ::std::add_lvalue_reference_t<
void* (*)(uint64,
char const*, uint)> rakMalloc_Ex();
550MCAPI ::std::add_lvalue_reference_t<
void* (*)(
void*, uint64,
char const*, uint)> rakRealloc_Ex();
552MCAPI ::std::add_lvalue_reference_t<::DynDnsResult[]> resultTable();
554MCAPI
bool& s_AsyncLibEnablePumpingWait();
556MCAPI ::std::atomic<uint>& s_AsyncLibGlobalStateCount();
558MCAPI
int& stbi__flip_vertically_on_write();
560MCAPI
int& stbi_write_tga_with_rle();
562MCAPI ::std::add_lvalue_reference_t<::TypeMapping[]> typeMappings();
Definition ActorOwnerComponent.h:10
Definition BiomeArea.h:11
Definition BlockLegacy.h:86
Definition BlockState.h:13
Definition BoundingBox.h:13
Definition BribeableComponent.h:13
Definition CircuitComponentList.h:14
Definition CircuitSceneGraph.h:19
Definition CircuitTrackingInfo.h:14
Definition DefinitionTrigger.h:11
Definition Dimension.h:83
Definition ExpressionNode.h:29
Definition GatheringServerInfo.h:5
Definition HashedString.h:5
Definition IFileAccess.h:15
Definition InternalTaskGroup.h:18
Definition ItemInstance.h:16
Definition LevelData.h:49
Definition RakPeerInterface.h:32
Definition RecipeIngredient.h:17
Definition SemVersionBase.h:9
Definition SemVersionConstant.h:8
Definition SubChunkBrightnessStorage.h:5
Definition ThirdPartyInfo.h:5
Definition WorkerPool.h:19
Definition _HeaderOutputPredefine.h:191
Definition http_stl_allocator.h:6
Definition AccessorTypeEnumHasher.h:5
Definition ActorDefinitionIdentifier.h:15
Definition ActorFactoryData.h:5
Definition AllWorkerConfigurations.h:5
Definition AssertHandlerContext.h:5
Definition BlockLayer.h:5
Definition BlockMaterialInstance.h:9
Definition DynDnsResult.h:5
Definition FlatWorldPreset.h:10
Definition HCTraceImplArea.h:5
Definition ImageMimeTypeEnumHasher.h:5
Definition KeyOrNameResult.h:5
Definition MapItemSavedData.h:43
Definition MaterialAlphaModeEnumHasher.h:5
Definition RakPeerConfiguration.h:7
Definition ScatterParamsMolangVariableIndices.h:8
Definition TextProcessingEventOriginEnumHasher.h:5
Definition ThreadConfiguration.h:5
Definition TypeMapping.h:5
Definition WorkerConfiguration.h:8
Definition ReflectionCtx.h:11
Definition srtp_auth_t.h:5