MinecraftWorld - DauntlessStudio/Bedrock-Developments GitHub Wiki
• new MinecraftWorld(filePath): MinecraftWorld
| Name | Type |
|---|---|
filePath |
string |
• filePath: string
• get BehaviorPacks(): IBehaviorPack[]
• get LevelDat(): NbtFile
NbtFile
• get Name(): string
string
• get ResourcePacks(): IResourcePack[]
▸ addManifest(): Promise<void>
Promise<void>
▸ addPack(pack): void
| Name | Type |
|---|---|
pack |
IBehaviorPack | IResourcePack
|
void
▸ exportWorld(include_packs, type): Promise<void>
| Name | Type |
|---|---|
include_packs |
boolean |
type |
"template" | "world"
|
Promise<void>
▸ getPacks<T>(type): T[]
| Name | Type |
|---|---|
T |
extends IMinecraftPack
|
| Name | Type |
|---|---|
type |
"behavior" | "resource"
|
T[]
▸ setLevelDat(v): void
| Name | Type |
|---|---|
v |
Uint8Array |
void
▸ create(worldName, options): Promise<MinecraftWorld>
| Name | Type |
|---|---|
worldName |
string |
options |
INewWorldOptions |
Promise<MinecraftWorld>
▸ getAllWorlds(): MinecraftWorld[]
▸ getPackFromManifest(filepath): IBehaviorPack | IResourcePack
| Name | Type |
|---|---|
filepath |
string |