Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Modding:Modder Guide/APIs/Content Packs
(view source)
Revision as of 02:17, 22 August 2019
2 bytes added
,
02:17, 22 August 2019
→Create a fake content pack
:
fix typo
Line 71:
Line 71:
<source lang="c#">
<source lang="c#">
// create with random manifest data
// create with random manifest data
−
IContentPack contentPack = this.Helper.
ContentPack
.CreateFake(
+
IContentPack contentPack = this.Helper.
ContentPacks
.CreateFake(
directoryPath: Path.Combine(this.Helper.DirectoryPath, "content-pack"),
directoryPath: Path.Combine(this.Helper.DirectoryPath, "content-pack"),
);
);
// create with given manifest fields
// create with given manifest fields
−
IContentPack contentPack = this.Helper.
ContentPack
.CreateFake(
+
IContentPack contentPack = this.Helper.
ContentPacks
.CreateFake(
directoryPath: Path.Combine(this.Helper.DirectoryPath, "content-pack"),
directoryPath: Path.Combine(this.Helper.DirectoryPath, "content-pack"),
id: Guid.NewGuid().ToString("N"),
id: Guid.NewGuid().ToString("N"),
Pathoschild
translators
8,444
edits
Navigation menu
Personal tools
Create account
Log in
Namespaces
Modding
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Admin noticeboard
Help Editing
Random page
Official Links
Official Site
Official Forums
Official Merchandise
Discord
Reddit
Tools
Upload file
Special pages
Printable version