Search
Preparing search index...
The search index is not available
mdkjs
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
mdkjs
Pack
Class Pack
Hierarchy
Pack
Index
Constructors
constructor
Properties
#options
#scope
is
Module
Accessors
mcmeta
packname
scope
Methods
add
create
create
Function
Tag
File
create
Mcmeta
load
cache
File
cache
Pack
exist
File
exist
Pack
get
Pack
Version
Constructors
constructor
new
Pack
(
props
:
PackOptions
)
:
Pack
Parameters
props:
PackOptions
Returns
Pack
Properties
Private
Readonly
#options
#options
:
PackOptions
Private
#scope
#scope
:
string
|
boolean
作用域
is
Module
is
Module
:
boolean
= false
Accessors
mcmeta
get
mcmeta
(
)
:
Mcmeta
Returns
Mcmeta
packname
get
packname
(
)
:
string
Returns
string
scope
get
scope
(
)
:
string
|
boolean
Returns
string
|
boolean
Methods
add
add
(
file
:
FileAbstract
<
any
>
)
:
void
Parameters
file:
FileAbstract
<
any
>
Returns
void
create
create
(
)
:
{}
Returns
{}
[
packname:
string
]:
FileInfo
[]
Private
create
Function
Tag
File
create
Function
Tag
File
(
tagList
:
File
<
{}
>
[]
)
:
void
Parameters
tagList:
File
<
{}
>
[]
Returns
void
Private
create
Mcmeta
create
Mcmeta
(
)
:
FileInfo
Returns
FileInfo
load
load
(
)
:
void
Returns
void
Static
cache
File
cache
File
(
file
:
FileAbstract
<
any
>
)
:
void
Parameters
file:
FileAbstract
<
any
>
Returns
void
Static
cache
Pack
cache
Pack
(
pack
:
Pack
)
:
void
Parameters
pack:
Pack
Returns
void
Static
exist
File
exist
File
(
file
:
FileAbstract
<
any
>
)
:
boolean
Parameters
file:
FileAbstract
<
any
>
Returns
boolean
Static
exist
Pack
exist
Pack
(
pack
:
Pack
)
:
boolean
Parameters
pack:
Pack
Returns
boolean
Static
get
Pack
Version
get
Pack
Version
(
gameVersion
?:
string
)
:
3
|
4
|
5
|
6
|
7
1.13-1.14 版本为 4
1.15 版本为 5
1.16.2-1.16.4 版本为 6
1.17 版本为 7
Parameters
gameVersion:
string
= ''
游戏版本,例如1.17.1
Returns
3
|
4
|
5
|
6
|
7
Exports
commands
dev
Pack
constructor
#options
#scope
is
Module
mcmeta
packname
scope
add
create
create
Function
Tag
File
create
Mcmeta
load
cache
File
cache
Pack
exist
File
exist
Pack
get
Pack
Version
Generated using
TypeDoc
作用域