3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/common/SubClientId.h"
7#include "mc/deps/core/debug/log/LogLevel.h"
8#include "mc/deps/core/file/file_system/FileType.h"
9#include "mc/deps/core/resource/PackType.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/scripting/lifetime_registry/StrongTypedObjectHandle.h"
15#include "mc/deps/scripting/runtime/Result.h"
16#include "mc/deps/shared_types/legacy/FilterSubject.h"
17#include "mc/deps/shared_types/legacy/item/UseAnimation.h"
18#include "mc/deps/shared_types/v1_21_110/item/ItemCategory.h"
19#include "mc/events/TextProcessingEventOrigin.h"
20#include "mc/external/lib_http_client/http_stl_allocator.h"
21#include "mc/external/libsrtp/srtp_err_status_t.h"
22#include "mc/legacy/facing/Name.h"
23#include "mc/network/packet/AgentActionType.h"
24#include "mc/options/DiscoveryEnvironment.h"
25#include "mc/options/EducationServicesEnvironment.h"
26#include "mc/platform/Result.h"
27#include "mc/util/HudElement.h"
28#include "mc/util/gltf/Accessor.h"
29#include "mc/util/gltf/Image.h"
30#include "mc/util/gltf/Material.h"
31#include "mc/world/actor/ActorCategory.h"
32#include "mc/world/actor/ActorFilterGroup.h"
33#include "mc/world/actor/ActorType.h"
34#include "mc/world/actor/ActorTypeNamespaceRules.h"
35#include "mc/world/containers/ContainerEnumName.h"
36#include "mc/world/filters/FilterGroup.h"
37#include "mc/world/filters/FilterOperator.h"
38#include "mc/world/item/CreativeItemCategory.h"
39#include "mc/world/level/GameType.h"
40#include "mc/world/level/WorldVersion.h"
41#include "mc/world/level/block/BlockProperty.h"
42#include "mc/world/level/block/BlockSlot.h"
43#include "mc/world/level/block/TorchFacing.h"
44#include "mc/world/level/chunk/ChunkState.h"
45#include "mc/world/level/chunk/LevelChunkTag.h"
46#include "mc/world/level/chunk/SubChunkDelayedDeleter.h"
47#include "mc/world/level/chunk/SubChunkStorage.h"
48#include "mc/world/level/levelgen/flat/FlatWorldPresetID.h"
49#include "mc/world/level/material/MaterialType.h"
50#include "mc/world/level/saveddata/maps/MapItemSavedData.h"
51#include "mc/world/redstone/circuit/components/CircuitComponentType.h"
110namespace Bedrock {
class StaticOptimizedString; }
111namespace Bedrock {
class WorkerPoolHandleInterface; }
112namespace Bedrock::Services {
class IDiscoveryService; }
114namespace Core {
class File; }
115namespace Core {
class PathView; }
116namespace Json {
class Value; }
117namespace RakNet {
class RakPeerInterface; }
118namespace RakNet {
struct RakPeerConfiguration; }
119namespace ScriptModuleGameTest {
class ScriptSimulatedPlayer; }
120namespace ScriptModuleGameTest {
struct ScriptPlayerSkinData; }
121namespace ScriptModuleMinecraft {
class ScriptPlayer; }
122namespace ScriptModuleMinecraft {
struct ScriptDimensionLocation; }
123namespace ScriptModuleMinecraft {
struct ScriptInvalidActorError; }
124namespace Scripting {
class WeakLifetimeScope; }
125namespace Scripting {
struct EngineError; }
126namespace Scripting {
struct InvalidArgumentError; }
127namespace SharedTypes::v1_21_20::JigsawStructureTemplatePool {
struct EmptyPoolElement; }
128namespace SharedTypes::v1_21_20::JigsawStructureTemplatePool {
struct SinglePoolElement; }
129namespace cereal {
struct ReflectionCtx; }
130namespace mce {
class UUID; }
135MCAPI
void BedrockLogOut(uint,
char const*, ...);
137MCAPI ::CreativeItemCategory
138CreativeItemCategoryComprehensiveToRuntime(::SharedTypes::v1_21_110::ItemCategory::CreativeItemCategory category);
140MCAPI ::CreativeItemCategory CreativeItemCategoryFromString(::std::string
const& str);
142MCFOLD
void* DefaultMemAllocFunction(uint64 size, uint memoryType);
144MCFOLD
void DefaultMemFreeFunction(
void* pointer, uint memoryType);
146MCFOLD
void DefaultOutOfMemoryHandler(
char const* file,
long line);
148MCAPI
bool DoesMockCallMatch(
::HC_CALL const* mockCall,
::HC_CALL const* originalCall);
150MCAPI ::HashedString
const& EntityCanonicalName(::ActorType entityType);
152MCAPI ::ActorType EntityTypeFromString(::std::string
const& str);
154MCAPI ::std::string EntityTypeToFormattedLocString(::ActorType entityType, ::ActorTypeNamespaceRules namespaceRule);
156MCAPI ::std::string EntityTypeToLocString(::ActorType entityType, ::ActorTypeNamespaceRules namespaceRule);
158MCAPI ::std::string EntityTypeToString(::ActorType entityType, ::ActorTypeNamespaceRules namespaceRule);
160MCAPI
void EntityTypeToStringAndNamespace(::ActorType entityType, ::std::string& nameOut, ::std::string& namespaceOut);
162MCAPI
float FoodSaturationFromString(::std::string
const& str);
164MCAPI ::std::unordered_map<::std::string, ::ActorFactoryData>& GetActorDataRegistry();
166MCAPI
double GetEngagementMetricsTimeSinceAppStart_DEPRECATED();
168MCAPI ::std::optional<::LogLevel> LogLevelFromString(::std::string
const& str);
174MCAPI ::MaterialType MaterialTypeFromString(::std::string
const& materialType);
176MCAPI
bool Mock_Internal_HCHttpCallPerformAsync(
::HC_CALL* originalCall);
178MCAPI
long Mock_Internal_ReadRequestBodyIntoMemory(
183MCAPI ::std::optional<::NetherNet::LogSeverity> NetherNetLogSeverityFromString(::std::string
const& str);
185MCAPI ::PackType PackTypeFromString(::std::string
const& value);
187MCAPI
void PlatformBedrockLogOut(uint _priority,
char const* buf, uint64 nullTerminatorPos);
189MCAPI
void PushCircularReference(
190 ::std::unordered_map<::BlockPos, ::RedstoneTorchCapacitor*>& relatedTorches,
195MCAPI ::std::string StringFromMaterialType(::MaterialType
const& materialType);
197MCAPI ::std::string
const& StringFromPackType(::PackType value);
199MCAPI ::SharedTypes::Legacy::UseAnimation UseAnimationFromString(::std::string
const& str);
201MCAPI
void _addEnvironmentSubfilter(
202 ::std::string
const& legacyPredicate,
203 ::FilterGroup::CollectionType type,
204 ::std::string
const& filterName,
205 ::SharedTypes::Legacy::FilterSubject subject,
207 ::ActorFilterGroup::Processing process
210MCAPI
void _addLegacyFilterDefinition(
211 ::std::string
const& legacyPredicate,
212 ::FilterGroup::CollectionType type,
213 ::std::string
const& filterName,
214 ::SharedTypes::Legacy::FilterSubject subject,
216 ::ActorFilterGroup::Processing process
221MCAPI ::std::unique_ptr<::ListTag> _createBlockStateEnum(
::BlockState const& state);
223MCAPI uint _facingToVineDirection(uchar facing);
225MCAPI ::ScatterParamsMolangVariableIndices& _getScatterParamsMolangVariableIndices();
227MCAPI ::Block
const* _loadLayerBlock(
::Json::Value const& layer);
229MCAPI ::std::optional<::BlockPos> _locateBiome(
230 ::std::function<
bool(
::Biome const&)>
const& predicate,
237MCAPI ::std::optional<::std::vector<::BlockLayer>>
240MCAPI ::std::optional<::std::vector<::BlockLayer>>
243MCAPI ::std::optional<::std::vector<::BlockLayer>>
246MCAPI ::std::optional<::std::vector<::BlockLayer>>
249MCAPI ::std::unique_ptr<::ListTag> _saveBlockList(::std::vector<::BlockType const*>
const& blockList);
258MCAPI
char const* blockSlotToString(::BlockSlot slot);
260MCAPI ::KeyOrNameResult
261buildActorDisplayName(::ActorType actorType, ::std::string
const& nameTag,
::Actor const* actor);
263MCAPI
void checkComponent(
266 ::CircuitComponentType typeId,
274MCAPI
bool checkTypeFilter(
283MCAPI ::TorchFacing convertTorchDirection(::Facing::Name facing);
288MCAPI ::Bedrock::NonOwnerPointer<::WorkerPool> createWorkerPool(
289 ::std::string_view name,
291 ::std::shared_ptr<::Bedrock::WorkerPoolHandleInterface>& destHandle
294MCAPI ::ActorCategory entityCategoriesFromString(::std::string
const& str);
296MCAPI ::ActorCategory entityCategoryFromString(::std::string
const& str);
298MCAPI ::srtp_err_status_t external_crypto_init();
300MCAPI ::srtp_err_status_t external_hmac_alloc(
::srtp_auth_t** a,
int key_len,
int out_len);
302MCAPI ::srtp_err_status_t external_hmac_compute(
void*, uchar
const*,
int,
int tag_len, uchar* result);
304MCAPI ::srtp_err_status_t external_hmac_dealloc(
::srtp_auth_t* a);
306MCAPI ::srtp_err_status_t external_hmac_init(
void* state, uchar
const* key,
int key_len);
308MCFOLD ::srtp_err_status_t external_hmac_start(
void*);
310MCFOLD ::srtp_err_status_t external_hmac_update(
void*, uchar
const*,
int);
314MCAPI ::std::optional<::FlatWorldPresetID> flatWorldPresetIDFromString(::std::string
const& str);
316MCAPI
void forEachEntityType(
317 ::std::function<
bool(::ActorType, ::std::string
const&)> callback,
318 ::ActorTypeNamespaceRules namespaceRule
323MCAPI ::std::tuple<::std::string, ::std::unique_ptr<::StructurePoolElement>> from(
325 ::Bedrock::NotNullNonOwnerPtr<::IStructureTemplateManager> structureManager,
330MCAPI ::std::tuple<::std::string, ::std::unique_ptr<::StructurePoolElement>> from(
332 ::Bedrock::NotNullNonOwnerPtr<::IStructureTemplateManager> structureManager,
337MCAPI ::std::tuple<::std::string, ::std::unique_ptr<::StructurePoolElement>> from(
341 ::Bedrock::NotNullNonOwnerPtr<::IStructureTemplateManager> structures,
346MCAPI
int fseek(
::Core::File& file, int64 offset,
int origin);
350MCAPI uint64 fwrite(
void const*
buffer, uint64 size, uint64 count,
::Core::File& file);
352MCAPI ::std::string gatherTypeStrings(::std::vector<::Json::ValueType>
const& types);
354MCAPI ::std::string getDiscoveryServiceURL(::DiscoveryEnvironment environment);
356MCAPI ::std::string
const getEdition();
360MCAPI ::std::unordered_map<::FlatWorldPresetID, ::FlatWorldPreset>
const& getFlatWorldPresets();
362MCAPI ::I18n& getI18n();
364MCAPI ::std::string getJsonTypeString(::Json::ValueType
const& type);
366MCAPI ::std::unordered_map<int, ::std::string>
const& getPackParseErrorTypeEventMapAccess();
368MCAPI ::std::unordered_map<int, ::std::string>
const& getPackParseErrorTypeLOCMapAccess();
370MCAPI ::Scripting::Result<
376MCAPI ::AllWorkerConfigurations getWorkerConfiguration(uint highPowerCores, uint totalCores);
378MCAPI
bool isChunkAtStage(::std::weak_ptr<::LevelChunk> lcwp, ::ChunkState stateToCheck);
380MCAPI ::std::string join(::std::string prefix, ::std::string_view chunkKey);
382MCAPI ::std::string join(::std::string_view prefix, ::LevelChunkTag tag);
384MCAPI ::std::string join(::std::string_view prefix, ::LevelChunkTag tag, uint i);
386MCAPI ::std::string makeGuestDisplayName(::std::string
const& hostName, ::SubClientId subclientId);
388MCAPI ::mce::UUID makeGuestUUID(
::mce::UUID const& hostUuid, ::SubClientId subclientId);
390MCAPI ::mce::UUID makePlayerUUIDForXUID(::std::string
const& xuid);
392MCAPI ::std::shared_ptr<::Bedrock::Services::IDiscoveryService>
395MCAPI
bool operator!=(
421MCAPI
bool operator==(
426MCAPI
bool operator==(
431MCAPI ::BlockProperty operator|(::BlockProperty lhs, ::BlockProperty b);
433MCAPI
void renderMapChunk(
441MCAPI ::Scripting::Result<
447 ::std::string
const& name,
451MCAPI ::DiscoveryEnvironment stringToDiscoveryEnvironment(::std::string
const& str);
457MCAPI ::std::string toString(::AgentActionType type);
459MCAPI ::std::optional<::std::locale> tryGetLocaleFromName(::std::string
const& localeName);
461MCAPI ::http_wstring utf16_from_utf8(::http_string
const& utf8);
463MCAPI ::http_wstring utf16_from_utf8(
char const* utf8);
465MCAPI ::http_wstring utf16_from_utf8(
char const* utf8, uint64 size);
467MCAPI ::http_string utf8_from_utf16(::http_wstring
const& utf16);
469MCAPI ::http_string utf8_from_utf16(
wchar_t const* utf16, uint64 size);
474MCAPI ::std::vector<::HudElement>
const& ALL_HUD_ELEMENTS();
476MCAPI ::std::unordered_map<
477 ::glTF::Accessor::Type,
480 ::std::equal_to<::glTF::Accessor::Type>>
const&
481AccessorTypeEnumMap();
483MCAPI ::HashedString
const& BLAST_FURNACE_TAG();
485MCAPI ::HashedString
const& CAMPFIRE_TAG();
487MCAPI ::std::unordered_map<::ContainerEnumName, ::std::string>& ContainerCollectionNameMap();
489MCAPI ::HashedString
const& FURNACE_TAG();
491MCAPI ::std::array<::std::pair<::HudElement, ::std::string>, 13>
const& HUD_ELEMENTS_TO_STRINGS();
493MCAPI ::GatheringServerInfo
const& INVALID_GATHERING_SERVER_INFO();
495MCAPI ::ThirdPartyInfo
const& INVALID_THIRD_PARTY_INFO();
497MCAPI
char const*& IPV4_LOOPBACK();
499MCAPI
char const*& IPV6_LOOPBACK();
501MCAPI ::std::unordered_map<
502 ::glTF::Image::ImageMimeType,
505 ::std::equal_to<::glTF::Image::ImageMimeType>>
const&
506ImageMimeTypeEnumMap();
508MCAPI ::MCRESULT
const& MCRESULT_AllTargetsWillFail();
510MCAPI ::MCRESULT
const& MCRESULT_ChatMuted();
512MCAPI ::MCRESULT
const& MCRESULT_CommandExecIncomplete();
514MCAPI ::MCRESULT
const& MCRESULT_CommandNotFound();
516MCAPI ::MCRESULT
const& MCRESULT_CommandRequestInitiated();
518MCAPI ::MCRESULT
const& MCRESULT_CommandStepDone();
520MCAPI ::MCRESULT
const& MCRESULT_CommandStepFail();
522MCAPI ::MCRESULT
const& MCRESULT_CommandVersionMismatch();
524MCAPI ::MCRESULT
const& MCRESULT_CommandsDisabled();
526MCAPI ::MCRESULT
const& MCRESULT_EncryptionRequired();
528MCAPI ::MCRESULT
const& MCRESULT_ExecutionFail();
530MCAPI ::MCRESULT
const& MCRESULT_ExpectedRequestMsg();
532MCAPI ::MCRESULT
const& MCRESULT_FailWithoutFailMsg();
534MCAPI ::MCRESULT
const& MCRESULT_FailedToParseCommand();
536MCAPI ::MCRESULT
const& MCRESULT_InvalidCommandCall();
538MCAPI ::MCRESULT
const& MCRESULT_InvalidCommandContext();
540MCAPI ::MCRESULT
const& MCRESULT_InvalidCommandOrigin();
542MCAPI ::MCRESULT
const& MCRESULT_InvalidOverloadSyntax();
544MCAPI ::MCRESULT
const& MCRESULT_MalformedRequest();
546MCAPI ::MCRESULT
const& MCRESULT_MustSpecifyVersion();
548MCAPI ::MCRESULT
const& MCRESULT_NewCommandVersionAvailable();
550MCAPI ::MCRESULT
const& MCRESULT_NoChatPermissions();
552MCAPI ::MCRESULT
const& MCRESULT_NoTargetsFound();
554MCAPI ::MCRESULT
const& MCRESULT_NotEnoughPermissions();
556MCAPI ::MCRESULT
const& MCRESULT_Success();
558MCAPI ::MCRESULT
const& MCRESULT_TooManyPendingRequests();
560MCAPI ::MCRESULT
const& MCRESULT_VersionMismatch();
562MCAPI ::SemVersionConstant
const& MIN_ENGINE_VERSION_MINIMUM_V2();
564MCAPI ::std::unordered_map<
565 ::glTF::Material::AlphaMode,
568 ::std::equal_to<::glTF::Material::AlphaMode>>
const&
569MaterialAlphaModeEnumMap();
571MCAPI ::std::bitset<38>
const& PLAYER_ACTION_MOVEMENT_BITSET();
573MCAPI ::std::bitset<38>
const& PLAYER_ACTION_MOVEMENT_FLYING_ATTRIBUTE_BITSET();
575MCAPI ::std::bitset<38>
const& PLAYER_ACTION_MOVEMENT_SPEED_ATTRIBUTE_BITSET();
577MCAPI ::HashedString
const& SMOKER_TAG();
579MCAPI ::HashedString
const& SOUL_CAMPFIRE_TAG();
585MCAPI ::std::unordered_map<
586 ::TextProcessingEventOrigin,
589 ::std::equal_to<::TextProcessingEventOrigin>>
const&
590TextProcessingEventOriginEnumMap();
592MCAPI ::std::array<::HashedString, 17>
const& VanillaStructureFeatureTypes();
594MCAPI ::std::unordered_map<::std::string, ::ActorFilterGroup::LegacyMapping>& _environmentSubfilters();
596MCAPI ::std::unordered_map<::std::string, ::ActorFilterGroup::LegacyMapping>& _legacyPredicates();
598MCAPI ::std::unordered_map<int, ::std::string>
const& discoveryEnvironmentLabels();
600MCAPI ::std::unordered_map<::std::string, ::DiscoveryEnvironment>
const& discoveryEnvironmentStrings();
602MCAPI ::std::unordered_map<::DiscoveryEnvironment, ::std::string>
const& discoveryEnvironments();
604MCAPI ::std::array<::std::pair<char const*, char const*>, 5>
const& educationServicesEnvironmentStrings();
606MCAPI ::std::add_lvalue_reference_t<uint[]> englishCharacterFrequencies();
608MCAPI ::std::vector<::std::string>& gAreaFilters();
610MCAPI ::SubChunkDelayedDeleter<::SubChunkStorage<::Biome>>& gBiomeChunkGC();
612MCAPI ::SubChunkDelayedDeleter<::SubChunkStorage<::Block>>& gBlockStorageGC();
614MCAPI ::InternalTaskGroup& gInternalTaskGroup();
616MCAPI ::SubChunkDelayedDeleter<::SubChunkBrightnessStorage>& gLightStorageGC();
618MCAPI ::std::vector<::std::string>& gPriorityFilters();
620MCAPI ::std::add_lvalue_reference_t<
void* (*)(uint64, uint)> g_memAllocFunc();
622MCAPI ::std::add_lvalue_reference_t<void (*)(
void*, uint)> g_memFreeFunc();
624MCAPI ::HCTraceImplArea& g_traceHTTPCLIENT();
626MCAPI ::HCTraceImplArea& g_traceWEBSOCKET();
628MCAPI ::EducationServicesEnvironment& mCachedServicesEnvironment();
630MCAPI ::std::add_lvalue_reference_t<void (*)(
char const*, long)> notifyOutOfMemory();
632MCAPI ::std::add_lvalue_reference_t<void (*)(
void*,
char const*, uint)> rakFree_Ex();
634MCAPI ::std::add_lvalue_reference_t<
void* (*)(uint64,
char const*, uint)> rakMalloc_Ex();
636MCAPI ::std::add_lvalue_reference_t<
void* (*)(
void*, uint64,
char const*, uint)> rakRealloc_Ex();
638MCAPI ::std::add_lvalue_reference_t<::DynDnsResult[]> resultTable();
640MCAPI
bool& s_AsyncLibEnablePumpingWait();
642MCAPI ::std::atomic<uint>& s_AsyncLibGlobalStateCount();
644MCAPI ::__m128i& stbir__s16_32768();
646MCAPI ::__m128i& stbir__s32_32768();
648MCAPI ::std::add_lvalue_reference_t<::TypeMapping[]> typeMappings();
Definition ActorOwnerComponent.h:10
Definition BiomeArea.h:11
Definition BlockState.h:13
Definition BlockType.h:84
Definition BoundingBox.h:13
Definition BribeableComponent.h:13
Definition CircuitComponentList.h:14
Definition CircuitSceneGraph.h:18
Definition CircuitTrackingInfo.h:14
Definition DefinitionTrigger.h:15
Definition Dimension.h:83
Definition EmptyPoolElement.h:19
Definition ExpressionNode.h:28
Definition FeatureRegistry.h:18
Definition GatheringServerInfo.h:5
Definition HashedString.h:5
Definition IFileAccess.h:15
Definition IStructureTemplateManager.h:16
Definition InternalTaskGroup.h:18
Definition ItemInstance.h:15
Definition JigsawStructureRegistry.h:22
Definition LevelChunk.h:78
Definition LevelData.h:49
Definition RakPeerInterface.h:32
Definition RecipeIngredient.h:17
Definition RedstoneTorchCapacitor.h:19
Definition ScriptPlayer.h:53
Definition StrongTypedObjectHandle.h:8
Definition WeakLifetimeScope.h:7
Definition SemVersionBase.h:9
Definition SemVersionConstant.h:8
Definition StructurePoolElement.h:39
Definition SubChunkBrightnessStorage.h:5
Definition ThirdPartyInfo.h:5
Definition WorkerPool.h:19
Definition _HeaderOutputPredefine.h:196
Definition http_stl_allocator.h:6
Definition AccessorTypeEnumHasher.h:5
Definition ActorDefinitionIdentifier.h:15
Definition ActorFactoryData.h:16
Definition AllWorkerConfigurations.h:5
Definition AssertHandlerContext.h:5
Definition DiscoveryConfig.h:7
Definition BlockLayer.h:10
Definition BlockMaterialInstance.h:17
Definition DiscoveryConfig.h:5
Definition DynDnsResult.h:5
Definition FlatWorldPreset.h:15
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 ScriptPlayerSkinData.h:12
Definition ScriptDimensionLocation.h:12
Definition ScriptInvalidActorError.h:17
Definition EngineError.h:10
Definition InvalidArgumentError.h:17
Definition EmptyPoolElement.h:7
Definition SinglePoolElement.h:7
Definition TextProcessingEventOriginEnumHasher.h:5
Definition TypeMapping.h:5
Definition WorkerConfiguration.h:8
Definition ReflectionCtx.h:11
Definition srtp_auth_t.h:5