Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
BlockDefinitionGroup Class Reference

Classes

struct  BlockResource

Public Member Functions

LLNDAPI::BlockType * registerDataDrivenBlock (::BlockDescription const &desc)
LLAPI void initBlockTypeFromDefinition (::BlockType &blockType, ::BlockDefinition const &definition)
LLAPI void initializeBlocks (::Level &level)
BlockDefinitionGroup & operator= (BlockDefinitionGroup const &)
 BlockDefinitionGroup (BlockDefinitionGroup const &)
MCAPI BlockDefinitionGroup (::cereal::ReflectionCtx const &ctx, ::IPuvLoadEventing &eventing)
MCAPI void _buildBlockDescriptionSchema (::std::shared_ptr<::JsonUtil::JsonSchemaObjectNode<::JsonUtil::EmptyClass, ::BlockDescription > > &description)
MCAPI bool _parseComponents (::Json::Value const &blockRoot, ::BlockComponentGroupDescription &componentGroupDescription, ::std::string const &blockIdentifier, ::SemVersion const &originalJsonVersion, ::PackLoadContext &packLoadContext, bool isVanillaBlock)
MCAPI void digestServerBlockProperties (::std::vector<::ServerBlockProperty > const &blocks)
MCAPI ::std::unique_ptr<::BlockDefinition > generateBlockDefinition (::BlockDefinitionGroup::BlockResource const &resource, ::PackLoadContext &packLoadContext)
MCAPI ::std::vector<::ServerBlockProperty > generateServerBlockProperties () const
MCAPI ::std::vector<::BlockDefinition const * > getBlockDefinitions () const
MCAPI void initializeBlockFromDefinition (::BlockDefinition const &definition, ::Level &level)
MCAPI ::std::unique_ptr<::BlockDefinition > loadResource (::std::string upgradedJsonData, ::Core::PathBuffer<::std::string > const &res, ::std::string const &resourcePacklocation, ::PackLoadContext &packLoadContext)
MCAPI void loadResources (::ResourcePackManager const &resourcePackManager, ::Experiments const &experiments, ::Bedrock::NonOwnerPointer<::LinkedAssetValidator > validator)
MCAPI void registerBlockFromDefinition (::BlockDefinition const &definition, bool assertIfAlreadyExists)
MCAPI::BlockDefinition const * tryGetBlockDefinition (::std::string const &name) const
MCAPI ~BlockDefinitionGroup ()
MCAPI void * $ctor (::cereal::ReflectionCtx const &ctx, ::IPuvLoadEventing &eventing)
MCAPI void $dtor ()

Static Public Member Functions

static MCAPI ::SharedTypes::v1_21_110::ItemCategory::CreativeItemCategory _stringToCreativeItemCategory (::std::string const &category, ::std::string const &blockIdentifier)
static MCAPI bool _validatePrereleaseRequirements (::LogArea logArea, ::std::string const &jsonType, ::std::string const &jsonIdentifier, ::std::optional<::SemVersion > const &releaseVersion, ::std::vector<::PackLoadRequirement > const &requirements, ::PackLoadContext const &packLoadContext)

Public Attributes

::ll::TypedStorage< 8, 64, ::std::unordered_map<::std::string, ::DefinitionEvent > > mEventHandlers
::ll::TypedStorage< 8, 64, ::std::unordered_map<::std::string, ::std::unique_ptr<::BlockDefinition > > > mBlockDefinitions
::ll::TypedStorage< 8, 16, ::std::shared_ptr<::JsonUtil::JsonSchemaObjectNode<::JsonUtil::EmptyClass, ::BlockDescription > > > mDescriptionSchema
::ll::TypedStorage< 8, 128, ::BlockTraitFactory > mTraitFactory
::ll::TypedStorage< 4, 4, int > mLastBlockId
::ll::TypedStorage< 8, 24, ::std::vector<::std::string > > mBlockResourceGroupNames
::ll::TypedStorage< 8, 24, ::Bedrock::NotNullNonOwnerPtr<::cereal::ReflectionCtx const > > mCtx
::ll::TypedStorage< 8, 8, ::IPuvLoadEventing & > mEventing

Constructor & Destructor Documentation

◆ BlockDefinitionGroup()

MCAPI BlockDefinitionGroup::BlockDefinitionGroup ( ::cereal::ReflectionCtx const & ctx,
::IPuvLoadEventing & eventing )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ ~BlockDefinitionGroup()

MCAPI BlockDefinitionGroup::~BlockDefinitionGroup ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

Member Function Documentation

◆ _buildBlockDescriptionSchema()

MCAPI void BlockDefinitionGroup::_buildBlockDescriptionSchema ( ::std::shared_ptr<::JsonUtil::JsonSchemaObjectNode<::JsonUtil::EmptyClass, ::BlockDescription > > & description)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _parseComponents()

MCAPI bool BlockDefinitionGroup::_parseComponents ( ::Json::Value const & blockRoot,
::BlockComponentGroupDescription & componentGroupDescription,
::std::string const & blockIdentifier,
::SemVersion const & originalJsonVersion,
::PackLoadContext & packLoadContext,
bool isVanillaBlock )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ generateBlockDefinition()

MCAPI ::std::unique_ptr<::BlockDefinition > BlockDefinitionGroup::generateBlockDefinition ( ::BlockDefinitionGroup::BlockResource const & resource,
::PackLoadContext & packLoadContext )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ generateServerBlockProperties()

MCAPI ::std::vector<::ServerBlockProperty > BlockDefinitionGroup::generateServerBlockProperties ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ getBlockDefinitions()

MCAPI ::std::vector<::BlockDefinition const * > BlockDefinitionGroup::getBlockDefinitions ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _stringToCreativeItemCategory()

MCAPI ::SharedTypes::v1_21_110::ItemCategory::CreativeItemCategory BlockDefinitionGroup::_stringToCreativeItemCategory ( ::std::string const & category,
::std::string const & blockIdentifier )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _validatePrereleaseRequirements()

MCAPI bool BlockDefinitionGroup::_validatePrereleaseRequirements ( ::LogArea logArea,
::std::string const & jsonType,
::std::string const & jsonIdentifier,
::std::optional<::SemVersion > const & releaseVersion,
::std::vector<::PackLoadRequirement > const & requirements,
::PackLoadContext const & packLoadContext )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $ctor()

MCAPI void * BlockDefinitionGroup::$ctor ( ::cereal::ReflectionCtx const & ctx,
::IPuvLoadEventing & eventing )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $dtor()

MCAPI void BlockDefinitionGroup::$dtor ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

The documentation for this class was generated from the following file: