-
Notifications
You must be signed in to change notification settings - Fork 1
ClientAttachableArmorLeggings
-
ClientAttachableArmor
↳
ClientAttachableArmorLeggings
- addAnimateScript
- addAnimation
- addGeometry
- addInitializeVariable
- addMaterials
- addOwnerFilter
- addPreAnimationVariable
- addRenderController
- replacer
- serialize
- toFile
- createFilePath
- createFromTemplate
- deserialize
- fromFile
- fromPathOrTemplate
• new ClientAttachableArmorLeggings(filepath
, template
): ClientAttachableArmorLeggings
Name | Type |
---|---|
filepath |
string |
template |
IClientAttachable |
ClientAttachableArmor.constructor
ts/app/types/client/attachable.ts:30
• filePath: string
ClientAttachableArmor.filePath
• format_version: `${number}.${number}.${number}`
ClientAttachableArmor.format_version
ts/app/types/client/attachable.ts:21
• minecraft:attachable: Object
Name | Type |
---|---|
description |
IClientAttachableDescription |
ClientAttachableArmor.minecraft:attachable
ts/app/types/client/attachable.ts:22
▪ Static
Protected
Readonly
armorType: string
= "leggings"
ClientAttachableArmor.armorType
ts/app/types/client/attachable.ts:190
• get
DirectoryPath(): string
string
ClientAttachableArmor.DirectoryPath
ts/app/types/client/attachable.ts:133
▸ addAnimateScript(...animations
): void
Name | Type |
---|---|
...animations |
(string | { [key: string] : string ; })[] |
void
ClientAttachableArmor.addAnimateScript
ts/app/types/client/attachable.ts:119
▸ addAnimation(...animations
): void
Name | Type |
---|---|
...animations |
{ name : string ; reference : string }[] |
void
ClientAttachableArmor.addAnimation
ts/app/types/client/attachable.ts:112
▸ addGeometry(...geometry
): void
Name | Type |
---|---|
...geometry |
{ name : string ; reference : `geometry.${string}` }[] |
void
ClientAttachableArmor.addGeometry
ts/app/types/client/attachable.ts:95
▸ addInitializeVariable(...variables
): void
Name | Type |
---|---|
...variables |
string [] |
void
ClientAttachableArmor.addInitializeVariable
ts/app/types/client/attachable.ts:66
▸ addMaterials(...materials
): void
Name | Type |
---|---|
...materials |
{ name : string ; reference : string }[] |
void
ClientAttachableArmor.addMaterials
ts/app/types/client/attachable.ts:88
▸ addOwnerFilter(shortname
, owner
): void
Name | Type |
---|---|
shortname |
string |
owner |
`${string}:${string}` |
void
ClientAttachableArmor.addOwnerFilter
ts/app/types/client/attachable.ts:172
▸ addPreAnimationVariable(...variables
): void
Name | Type |
---|---|
...variables |
string [] |
void
ClientAttachableArmor.addPreAnimationVariable
ts/app/types/client/attachable.ts:77
▸ addRenderController(...render_controllers
): void
Name | Type |
---|---|
...render_controllers |
MolangOption [] |
void
ClientAttachableArmor.addRenderController
ts/app/types/client/attachable.ts:102
▸ replacer(key
, value
): any
Name | Type |
---|---|
key |
string |
value |
any |
any
ClientAttachableArmor.replacer
▸ serialize(): string
string
A string representation of this object.
Remarks
Serializes this object to a string.
ClientAttachableArmor.serialize
▸ toFile(handleExisting?
): File
Name | Type | Description |
---|---|---|
handleExisting? |
"overwrite" | "overwrite_silent"
|
How to handle existing files. Undefined will not overwrite, 'overwite' replaces the file with this object, 'overwrite_silent' does the same with no terminal log. |
A File object with this MinecraftDataType's filepath, and this object serialized as the file contents.
Remarks
Creates a File object from this MinecraftDataType.
ClientAttachableArmor.toFile
▸ createFilePath(nameData
): string
Name | Type | Description |
---|---|---|
nameData |
NameData |
The namedata to use when creating the filepath. |
string
The filepath as a string.
Remarks
Creates a filepath for this object type from a NameData.
ClientAttachableArmor.createFilePath
▸ createFromTemplate(nameData
): ClientAttachable
Name | Type |
---|---|
nameData |
NameData |
ClientAttachableArmor.createFromTemplate
ts/app/types/client/attachable.ts:137
▸ deserialize<T
>(create
, filepath
, json
): T
Name |
---|
T |
Name | Type | Description |
---|---|---|
create |
(filePath : string , template : any ) => T
|
The child of MinecraftDataType to create. |
filepath |
string |
The filepath the MinecraftDataType can be written to with toFile. |
json |
string |
The source string this should be deserialized from. |
T
An instance of the MinecraftDataType child provided.
Remarks
Creates an instace of a MinecraftDataType child from a source string, used in fromFile.
ClientAttachableArmor.deserialize
▸ fromFile<T
>(create
, file
): T
Name |
---|
T |
Name | Type | Description |
---|---|---|
create |
(filePath : string , template : any ) => T
|
The child of MinecraftDataType to create. |
file |
File |
The File object used to deserialize into this object. |
T
An instance of the MinecraftDataType child provided.
Remarks
Crates an instance of a MinecraftDataTypeChild from a File.
ClientAttachableArmor.fromFile
▸ fromPathOrTemplate<T
>(create
, path
): T
Name |
---|
T |
Name | Type | Description |
---|---|---|
create |
(filePath : string , template : any ) => T
|
The child of MinecraftDataType to create. |
path |
string |
The filepath to create the object from. |
T
The deserialized file as a child of MinecraftDataType, or this object's createFromTemplate default if the file doesn't exist.
Remarks
Creates a MinecraftDataType object from a filepath, or a template if that filepath doesn't exist.
ClientAttachableArmor.fromPathOrTemplate