Options
All
  • Public
  • Public/Protected
  • All
Menu

Class File<D>

File类 用于生成.mcfunction文件

Type parameters

Hierarchy

Index

Constructors

constructor

Properties

Private #data

#data: D = null

Private Readonly #list

#list: LineInfo<unknown>[] = []

Private Readonly #options

#options: FileAbstractOptions<D>

Private #tag

#tag: string = ''

Private #tagNamespace

#tagNamespace: string = ''

context

context: Pack = null

Accessors

Protected data

  • get data(): D

description

  • get description(): string

filename

  • get filename(): string

fullname

  • get fullname(): string

list

namespace

  • get namespace(): string

tag

  • get tag(): string

tagNamespace

  • get tagNamespace(): string

type

Methods

add

addComment

  • addComment(value: string | string[]): void

create

getData

  • getData(cached?: boolean): D

load

  • load(cached?: boolean): boolean

toJson

toString

  • toString(): string

Generated using TypeDoc