3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/options/EducationServicesEnvironment.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/sem_ver/SemVersionBase.h"
10#include "mc/deps/core/utility/NonOwnerPointer.h"
11#include "mc/deps/json/ValueType.h"
12#include "mc/deps/nether_net/LogSeverity.h"
13#include "mc/deps/shared_types/legacy/FilterSubject.h"
14#include "mc/deps/shared_types/legacy/item/UseAnimation.h"
15#include "mc/events/TextProcessingEventOrigin.h"
16#include "mc/external/lib_http_client/http_stl_allocator.h"
17#include "mc/external/libsrtp/srtp_err_status_t.h"
18#include "mc/network/packet/AgentActionType.h"
19#include "mc/options/DiscoveryEnvironment.h"
20#include "mc/util/HudElement.h"
21#include "mc/util/gltf/Accessor.h"
22#include "mc/util/gltf/Image.h"
23#include "mc/util/gltf/Material.h"
24#include "mc/world/actor/ActorCategory.h"
25#include "mc/world/actor/ActorFilterGroup.h"
26#include "mc/world/actor/ActorType.h"
27#include "mc/world/actor/ActorTypeNamespaceRules.h"
28#include "mc/world/containers/ContainerEnumName.h"
29#include "mc/world/filters/FilterGroup.h"
30#include "mc/world/filters/FilterOperator.h"
31#include "mc/world/item/CreativeItemCategory.h"
32#include "mc/world/level/WorldVersion.h"
33#include "mc/world/level/block/BlockProperty.h"
34#include "mc/world/level/block/BlockSlot.h"
35#include "mc/world/level/chunk/LevelChunkTag.h"
36#include "mc/world/level/chunk/SubChunkDelayedDeleter.h"
37#include "mc/world/level/chunk/SubChunkStorage.h"
38#include "mc/world/level/levelgen/flat/FlatWorldPresetID.h"
39#include "mc/world/level/material/MaterialType.h"
40#include "mc/world/level/saveddata/maps/MapItemSavedData.h"
41#include "mc/world/redstone/circuit/components/CircuitComponentType.h"
97namespace Bedrock {
class StaticOptimizedString; }
98namespace Bedrock {
class WorkerPoolHandleInterface; }
99namespace Core {
class File; }
100namespace Core {
class PathView; }
101namespace Core {
class Result; }
102namespace Json {
class Value; }
103namespace RakNet {
class RakPeerInterface; }
104namespace RakNet {
struct RakPeerConfiguration; }
105namespace cereal {
struct ReflectionCtx; }
110MCAPI
void BedrockLogOut(uint,
char const*, ...);
112MCAPI ::CreativeItemCategory CreativeItemCategoryFromString(::std::string
const& str);
114MCAPI
void* DefaultMemAllocFunction(uint64, uint);
116MCAPI
void DefaultMemFreeFunction(
void*, uint);
118MCFOLD
void DefaultOutOfMemoryHandler(
char const* file,
long line);
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();
140MCAPI ::std::optional<::LogLevel> LogLevelFromString(::std::string
const& str);
146MCAPI
bool Mock_Internal_HCHttpCallPerformAsync(
::HC_CALL*);
150MCAPI ::std::optional<::NetherNet::LogSeverity> NetherNetLogSeverityFromString(::std::string
const& str);
152MCAPI
void PlatformBedrockLogOut(uint _priority,
char const* buf, uint64 nullTerminatorPos);
154MCAPI
void PushCircularReference(
155 ::std::unordered_map<::BlockPos, ::RedstoneTorchCapacitor*>& relatedTorches,
160MCAPI ::std::string StringFromCreativeItemCategory(::CreativeItemCategory category);
162MCAPI ::std::string StringFromMaterialType(::MaterialType
const& materialType);
164MCAPI ::SharedTypes::Legacy::UseAnimation UseAnimationFromString(::std::string
const& str);
166MCAPI
void _addEnvironmentSubfilter(
167 ::std::string
const& legacyPredicate,
168 ::FilterGroup::CollectionType type,
169 ::std::string
const& filterName,
170 ::SharedTypes::Legacy::FilterSubject subject,
172 ::ActorFilterGroup::Processing process
175MCAPI
void _addLegacyFilterDefinition(
176 ::std::string
const& legacyPredicate,
177 ::FilterGroup::CollectionType type,
178 ::std::string
const& filterName,
179 ::SharedTypes::Legacy::FilterSubject subject,
181 ::ActorFilterGroup::Processing process
186MCAPI ::std::unique_ptr<::ListTag> _createBlockStateEnum(
::BlockState const& state);
188MCAPI uchar _facingToDirection(uchar facing);
190MCAPI uint _facingToVineDirection(uchar facing);
192MCAPI ::ScatterParamsMolangVariableIndices& _getScatterParamsMolangVariableIndices();
196MCAPI ::Block
const* _loadLayerBlock(
::Json::Value const& layer);
198MCAPI ::std::optional<::BlockPos> _locateBiome(
199 ::std::function<
bool(
::Biome const&)>
const& predicate,
206MCAPI ::std::optional<::std::vector<::BlockLayer>>
209MCAPI ::std::optional<::std::vector<::BlockLayer>>
212MCAPI ::std::optional<::std::vector<::BlockLayer>>
215MCAPI ::std::optional<::std::vector<::BlockLayer>>
218MCAPI ::std::unique_ptr<::ListTag> _saveBlockList(::std::vector<::BlockLegacy const*>
const& blockList);
227MCAPI
char const* blockSlotToString(::BlockSlot slot);
229MCAPI ::KeyOrNameResult
230buildActorDisplayName(::ActorType actorType, ::std::string
const& nameTag,
::Actor const* actor);
232MCAPI
void checkComponent(
235 ::CircuitComponentType typeId,
243MCAPI
bool checkTypeFilter(
257MCAPI ::Bedrock::NonOwnerPointer<::WorkerPool> createWorkerPool(
258 ::std::string_view name,
260 ::std::shared_ptr<::Bedrock::WorkerPoolHandleInterface>& destHandle
263MCAPI ::ActorCategory entityCategoriesFromString(::std::string
const& str);
265MCAPI ::ActorCategory entityCategoryFromString(::std::string
const& str);
267MCAPI ::srtp_err_status_t external_crypto_init();
269MCAPI ::srtp_err_status_t external_hmac_alloc(
::srtp_auth_t**,
int,
int);
271MCAPI ::srtp_err_status_t external_hmac_compute(
void*, uchar
const*,
int,
int, uchar*);
273MCAPI ::srtp_err_status_t external_hmac_dealloc(
::srtp_auth_t*);
275MCAPI ::srtp_err_status_t external_hmac_init(
void*, uchar
const*,
int);
277MCAPI ::srtp_err_status_t external_hmac_start(
void*);
279MCAPI ::srtp_err_status_t external_hmac_update(
void*, uchar
const*,
int);
283MCAPI ::std::optional<::FlatWorldPresetID> flatWorldPresetIDFromString(::std::string
const& str);
285MCAPI
void forEachEntityType(::std::function<
bool(::ActorType, ::std::string
const&)> callback);
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);
295MCAPI ::std::string
const getEdition();
299MCAPI ::FlatWorldPreset
const& getFlatWorldPresetWithID(::FlatWorldPresetID
id);
301MCAPI ::std::unordered_map<::FlatWorldPresetID, ::FlatWorldPreset>
const& getFlatWorldPresets();
303MCAPI ::I18n& getI18n();
305MCAPI ::std::string getJsonTypeString(::Json::ValueType
const& type);
307MCAPI ::std::unordered_map<int, ::std::string>
const& getPackParseErrorTypeEventMapAccess();
309MCAPI ::std::unordered_map<int, ::std::string>
const& getPackParseErrorTypeLOCMapAccess();
311MCAPI ::AllWorkerConfigurations getWorkerConfiguration(uint highPowerCores, uint totalCores);
313MCAPI ::std::string join(::std::string prefix, ::std::string_view chunkKey);
315MCAPI ::std::string join(::std::string_view prefix, ::LevelChunkTag tag);
317MCAPI ::std::string join(::std::string_view prefix, ::LevelChunkTag tag, uint i);
340MCAPI
bool operator==(
345MCAPI
bool operator==(
350MCAPI ::BlockProperty operator|(::BlockProperty lhs, ::BlockProperty b);
352MCAPI
void renderMapChunk(
360MCAPI ::DiscoveryEnvironment stringToDiscoveryEnvironment(::std::string
const& str);
364MCAPI ::leveldb::Status toLevelDbStatus(
::Core::Result const& result);
366MCAPI ::std::string toString(::AgentActionType type);
368MCAPI ::std::optional<::std::locale> tryGetLocaleFromName(::std::string
const& localeName);
370MCAPI ::http_wstring utf16_from_utf8(::http_string
const&);
372MCAPI ::http_wstring utf16_from_utf8(
char const*);
374MCAPI ::http_wstring utf16_from_utf8(
char const*, uint64);
376MCAPI ::http_string utf8_from_utf16(::http_wstring
const&);
378MCAPI ::http_string utf8_from_utf16(
wchar_t const*, uint64);
383MCAPI ::std::vector<::HudElement>
const& ALL_HUD_ELEMENTS();
385MCAPI ::std::unordered_map<
386 ::glTF::Accessor::Type,
389 ::std::equal_to<::glTF::Accessor::Type>>
const&
390AccessorTypeEnumMap();
392MCAPI ::HashedString
const& BLAST_FURNACE_TAG();
394MCAPI ::HashedString
const& CAMPFIRE_TAG();
396MCAPI ::std::unordered_map<::ContainerEnumName, ::std::string>& ContainerCollectionNameMap();
398MCAPI ::std::unordered_map<::ActorType, ::ActorMapping>& ENTITY_TYPE_MAP();
400MCAPI ::HashedString
const& FURNACE_TAG();
402MCAPI ::std::array<::std::pair<::HudElement, ::std::string>, 13>
const& HUD_ELEMENTS_TO_STRINGS();
404MCAPI ::GatheringServerInfo
const& INVALID_GATHERING_SERVER_INFO();
406MCAPI ::ThirdPartyInfo
const& INVALID_THIRD_PARTY_INFO();
408MCAPI
char const*& IPV4_LOOPBACK();
410MCAPI
char const*& IPV6_LOOPBACK();
412MCAPI ::std::unordered_map<
413 ::glTF::Image::ImageMimeType,
416 ::std::equal_to<::glTF::Image::ImageMimeType>>
const&
417ImageMimeTypeEnumMap();
419MCAPI ::MCRESULT
const& MCRESULT_AllTargetsWillFail();
421MCAPI ::MCRESULT
const& MCRESULT_ChatMuted();
423MCAPI ::MCRESULT
const& MCRESULT_CommandExecIncomplete();
425MCAPI ::MCRESULT
const& MCRESULT_CommandNotFound();
427MCAPI ::MCRESULT
const& MCRESULT_CommandRequestInitiated();
429MCAPI ::MCRESULT
const& MCRESULT_CommandStepDone();
431MCAPI ::MCRESULT
const& MCRESULT_CommandStepFail();
433MCAPI ::MCRESULT
const& MCRESULT_CommandVersionMismatch();
435MCAPI ::MCRESULT
const& MCRESULT_CommandsDisabled();
437MCAPI ::MCRESULT
const& MCRESULT_EncryptionRequired();
439MCAPI ::MCRESULT
const& MCRESULT_ExecutionFail();
441MCAPI ::MCRESULT
const& MCRESULT_ExpectedRequestMsg();
443MCAPI ::MCRESULT
const& MCRESULT_FailWithoutFailMsg();
445MCAPI ::MCRESULT
const& MCRESULT_FailedToParseCommand();
447MCAPI ::MCRESULT
const& MCRESULT_InvalidCommandCall();
449MCAPI ::MCRESULT
const& MCRESULT_InvalidCommandContext();
451MCAPI ::MCRESULT
const& MCRESULT_InvalidCommandOrigin();
453MCAPI ::MCRESULT
const& MCRESULT_InvalidOverloadSyntax();
455MCAPI ::MCRESULT
const& MCRESULT_MalformedRequest();
457MCAPI ::MCRESULT
const& MCRESULT_MustSpecifyVersion();
459MCAPI ::MCRESULT
const& MCRESULT_NewCommandVersionAvailable();
461MCAPI ::MCRESULT
const& MCRESULT_NoChatPermissions();
463MCAPI ::MCRESULT
const& MCRESULT_NoTargetsFound();
465MCAPI ::MCRESULT
const& MCRESULT_NotEnoughPermissions();
467MCAPI ::MCRESULT
const& MCRESULT_Success();
469MCAPI ::MCRESULT
const& MCRESULT_TooManyPendingRequests();
471MCAPI ::MCRESULT
const& MCRESULT_VersionMismatch();
473MCAPI ::SemVersionConstant
const& MIN_ENGINE_VERSION_MINIMUM_V2();
475MCAPI ::std::unordered_map<
476 ::glTF::Material::AlphaMode,
479 ::std::equal_to<::glTF::Material::AlphaMode>>
const&
480MaterialAlphaModeEnumMap();
482MCAPI ::std::bitset<38>
const& PLAYER_ACTION_MOVEMENT_BITSET();
484MCAPI ::std::bitset<38>
const& PLAYER_ACTION_MOVEMENT_FLYING_ATTRIBUTE_BITSET();
486MCAPI ::std::bitset<38>
const& PLAYER_ACTION_MOVEMENT_SPEED_ATTRIBUTE_BITSET();
488MCAPI ::HashedString
const& SMOKER_TAG();
490MCAPI ::HashedString
const& SOUL_CAMPFIRE_TAG();
496MCAPI ::std::unordered_map<
497 ::TextProcessingEventOrigin,
500 ::std::equal_to<::TextProcessingEventOrigin>>
const&
501TextProcessingEventOriginEnumMap();
503MCAPI ::std::array<::HashedString, 17>
const& VanillaStructureFeatureTypes();
505MCAPI ::std::unordered_map<::std::string, ::ActorFilterGroup::LegacyMapping>& _environmentSubfilters();
507MCAPI ::std::unordered_map<::std::string, ::ActorFilterGroup::LegacyMapping>& _legacyPredicates();
509MCAPI ::std::unordered_map<int, ::std::string>
const& discoveryEnvironmentLabels();
511MCAPI ::std::unordered_map<::std::string, ::DiscoveryEnvironment>
const& discoveryEnvironmentStrings();
513MCAPI ::std::unordered_map<::DiscoveryEnvironment, ::std::string>
const& discoveryEnvironments();
515MCAPI ::std::add_lvalue_reference_t<uint[]> englishCharacterFrequencies();
517MCAPI ::std::vector<::std::string>& gAreaFilters();
519MCAPI ::SubChunkDelayedDeleter<::SubChunkStorage<::Biome>>& gBiomeChunkGC();
521MCAPI ::SubChunkDelayedDeleter<::SubChunkStorage<::Block>>& gBlockStorageGC();
523MCAPI ::InternalTaskGroup& gInternalTaskGroup();
525MCAPI ::SubChunkDelayedDeleter<::SubChunkBrightnessStorage>& gLightStorageGC();
527MCAPI ::std::vector<::std::string>& gPriorityFilters();
529MCAPI ::std::add_lvalue_reference_t<
void* (*)(uint64, uint)> g_memAllocFunc();
531MCAPI ::std::add_lvalue_reference_t<void (*)(
void*, uint)> g_memFreeFunc();
533MCAPI ::HCTraceImplArea& g_traceHTTPCLIENT();
535MCAPI ::HCTraceImplArea& g_traceWEBSOCKET();
537MCAPI ::EducationServicesEnvironment& mCachedServicesEnvironment();
539MCAPI ::std::add_lvalue_reference_t<void (*)(
char const*, long)> notifyOutOfMemory();
541MCAPI ::std::add_lvalue_reference_t<void (*)(
void*,
char const*, uint)> rakFree_Ex();
543MCAPI ::std::add_lvalue_reference_t<
void* (*)(uint64,
char const*, uint)> rakMalloc_Ex();
545MCAPI ::std::add_lvalue_reference_t<
void* (*)(
void*, uint64,
char const*, uint)> rakRealloc_Ex();
547MCAPI ::std::add_lvalue_reference_t<::DynDnsResult[]> resultTable();
549MCAPI
bool& s_AsyncLibEnablePumpingWait();
551MCAPI ::std::atomic<uint>& s_AsyncLibGlobalStateCount();
553MCAPI ::std::add_lvalue_reference_t<::TypeMapping[]> typeMappings();
Definition ActorOwnerComponent.h:10
Definition BiomeArea.h:11
Definition BlockLegacy.h:88
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:27
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 RedstoneTorchCapacitor.h:19
Definition SemVersionBase.h:9
Definition SemVersionConstant.h:8
Definition SubChunkBrightnessStorage.h:5
Definition ThirdPartyInfo.h:5
Definition WorkerPool.h:19
Definition _HeaderOutputPredefine.h:189
Definition http_stl_allocator.h:6
Definition AccessorTypeEnumHasher.h:5
Definition ActorDefinitionIdentifier.h:15
Definition ActorFactoryData.h:5
Definition ActorMapping.h:8
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:41
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