34class BlockDefinitionGroup {
46 ::ll::TypedStorage<8, 24, ::SemVersion> mFormatVersion;
47 ::ll::TypedStorage<8, 32, ::MinEngineVersion> mMinEngineVersion;
48 ::ll::TypedStorage<8, 24, ::SemVersion> mOriginalJsonVersion;
49 ::ll::TypedStorage<8, 240, ::BlockDescription> mDescription;
50 ::ll::TypedStorage<8, 32, ::std::string> mResourcePackLocation;
51 ::ll::TypedStorage<8, 32, ::std::string> mResourceFileLocation;
52 ::ll::TypedStorage<8, 16, ::Json::Value> mRoot;
59 ::ll::TypedStorage<8, 64, ::std::unordered_map<::std::string, ::DefinitionEvent>> mEventHandlers;
60 ::ll::TypedStorage<8, 64, ::std::unordered_map<::std::string, ::std::unique_ptr<::BlockDefinition>>>
65 ::std::shared_ptr<::JsonUtil::JsonSchemaObjectNode<::JsonUtil::EmptyClass, ::BlockDescription>>>
67 ::ll::TypedStorage<8, 128, ::BlockTraitFactory> mTraitFactory;
68 ::ll::TypedStorage<4, 4, int> mLastBlockId;
69 ::ll::TypedStorage<8, 24, ::std::vector<::std::string>> mBlockResourceGroupNames;
70 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::cereal::ReflectionCtx const>> mCtx;
71 ::ll::TypedStorage<8, 8, ::IMinecraftEventing&> mEventing;
76 BlockDefinitionGroup& operator=(BlockDefinitionGroup
const&);
77 BlockDefinitionGroup(BlockDefinitionGroup
const&);
78 BlockDefinitionGroup();
85 MCAPI
void _buildBlockDescriptionSchema(
89 MCAPI
bool _parseComponents(
92 ::std::string
const& blockIdentifier,
98 MCAPI
void digestServerBlockProperties(::std::vector<::ServerBlockProperty>
const& blocks);
100 MCAPI ::std::unique_ptr<::BlockDefinition>
103 MCAPI ::std::vector<::ServerBlockProperty> generateServerBlockProperties()
const;
105 MCAPI ::std::vector<::BlockDefinition const*> getBlockDefinitions()
const;
109 MCAPI ::std::unique_ptr<::BlockDefinition> loadResource(
110 ::std::string upgradedJsonData,
112 ::std::string
const& resourcePacklocation,
116 MCAPI
void loadResources(
122 MCAPI
void registerBlockFromDefinition(
::BlockDefinition const& definition,
bool assertIfAlreadyExists);
124 MCAPI ::BlockDefinition
const* tryGetBlockDefinition(::std::string
const& name)
const;
126 MCAPI ~BlockDefinitionGroup();
132 MCAPI static ::SharedTypes::v1_21_110::ItemCategory::CreativeItemCategory
133 _stringToCreativeItemCategory(::std::string
const& category, ::std::string
const& blockIdentifier);
135 MCAPI
static bool _validatePrereleaseRequirements(
137 ::std::string
const& jsonType,
138 ::std::string
const& jsonIdentifier,
139 ::std::optional<::SemVersion>
const& releaseVersion,
140 ::std::vector<::PackLoadRequirement>
const& requirements,
Definition PackLoadContext.h:20