Skip to content

Class PostProcessingTask

Post process the post processors from InstallProfile.

🏭 Constructors

constructor

ts
new PostProcessingTask(processors: PostProcessor[], minecraft: MinecraftFolder, java: SpawnJavaOptions): PostProcessingTask

Parameters

  • processors: PostProcessor[]
  • minecraft: MinecraftFolder
  • java: SpawnJavaOptions

Return Type

  • PostProcessingTask

Defined in: packages/installer/profile.ts:249

🏷️ Properties

_from protected

ts
_from: undefined | string

Inherited from: AbortableTask._from

Defined in: packages/task/index.ts:80

_id protected

ts
_id: number = 0

Inherited from: AbortableTask._id

Defined in: packages/task/index.ts:85

_path protected

ts
_path: string = ''

Inherited from: AbortableTask._path

Defined in: packages/task/index.ts:84

_pausing protected

ts
_pausing: Promise<void> = ...

Inherited from: AbortableTask._pausing

Defined in: packages/task/index.ts:224

_progress protected

ts
_progress: number = 0

Inherited from: AbortableTask._progress

Defined in: packages/task/index.ts:82

_promise protected

ts
_promise: Promise<void>

Inherited from: AbortableTask._promise

Defined in: packages/task/index.ts:75

_state protected

ts
_state: TaskState = TaskState.Idle

Inherited from: AbortableTask._state

Defined in: packages/task/index.ts:74

_to protected

ts
_to: undefined | string

Inherited from: AbortableTask._to

Defined in: packages/task/index.ts:81

_total protected

ts
_total: number = -1

Inherited from: AbortableTask._total

Defined in: packages/task/index.ts:83

context

ts
context: TaskContext = {}

Inherited from: AbortableTask.context

Defined in: packages/task/index.ts:88

java private

ts
java: SpawnJavaOptions

Defined in: packages/installer/profile.ts:249

minecraft private

ts
minecraft: MinecraftFolder

Defined in: packages/installer/profile.ts:249

name readonly

ts
name: string = 'postProcessing'

Defined in: packages/installer/profile.ts:243

param

ts
param: object = {}

Inherited from: AbortableTask.param

Defined in: packages/task/index.ts:91

parent

ts
parent: undefined | Task<any>

Inherited from: AbortableTask.parent

Defined in: packages/task/index.ts:87

pointer private

ts
pointer: number = 0

Defined in: packages/installer/profile.ts:245

processors private

ts
processors: PostProcessor[]

Defined in: packages/installer/profile.ts:249

reject protected

ts
reject: Function

Inherited from: AbortableTask.reject

Defined in: packages/task/index.ts:78

resolve protected

ts
resolve: Function

Inherited from: AbortableTask.resolve

Defined in: packages/task/index.ts:77

resultOrError protected

ts
resultOrError: any

Inherited from: AbortableTask.resultOrError

Defined in: packages/task/index.ts:93

🔑 Accessors

from

Inherited from: AbortableTask.from

Defined in: packages/task/index.ts:121

id

Inherited from: AbortableTask.id

Defined in: packages/task/index.ts:116

isCancelled

Inherited from: AbortableTask.isCancelled

Defined in: packages/task/index.ts:124

isDone

Inherited from: AbortableTask.isDone

Defined in: packages/task/index.ts:126

isPaused

Inherited from: AbortableTask.isPaused

Defined in: packages/task/index.ts:125

isRunning

Inherited from: AbortableTask.isRunning

Defined in: packages/task/index.ts:127

path

Inherited from: AbortableTask.path

Defined in: packages/task/index.ts:117

progress

Inherited from: AbortableTask.progress

Defined in: packages/task/index.ts:118

state

Inherited from: AbortableTask.state

Defined in: packages/task/index.ts:122

to

Inherited from: AbortableTask.to

Defined in: packages/task/index.ts:120

total

Inherited from: AbortableTask.total

Defined in: packages/task/index.ts:119

🔧 Methods

_abort private

ts
_abort(): void

Return Type

  • void

Defined in: packages/installer/profile.ts:247

_onAborted protected

ts
_onAborted(): void

Return Type

  • void

Inherited from: AbortableTask._onAborted

Defined in: packages/task/index.ts:226

_onResume protected

ts
_onResume(): void

Return Type

  • void

Inherited from: AbortableTask._onResume

Defined in: packages/task/index.ts:227

_unpause protected

ts
_unpause(): void

Return Type

  • void

Inherited from: AbortableTask._unpause

Defined in: packages/task/index.ts:225

abort protected

ts
abort(isCancelled: boolean): Promise<void>

Parameters

  • isCancelled: boolean

Return Type

  • Promise<void>

Defined in: packages/installer/profile.ts:345

cancel

ts
cancel(timeout: number): Promise<void>

Parameters

  • timeout: number

Return Type

  • Promise<void>

Inherited from: AbortableTask.cancel

Defined in: packages/task/index.ts:145

cancelTask protected

ts
cancelTask(): Promise<void>

Return Type

  • Promise<void>

Inherited from: AbortableTask.cancelTask

Defined in: packages/task/index.ts:233

findMainClass protected

ts
findMainClass(lib: string): Promise<string>

Parameters

  • lib: string

Return Type

  • Promise<string>

Defined in: packages/installer/profile.ts:255

get

ts
get(): void

Return Type

  • void

Inherited from: AbortableTask.get

Defined in: packages/task/index.ts:108

isAbortedError protected

ts
isAbortedError(e: any): boolean

Parameters

  • e: any

Return Type

  • boolean

Defined in: packages/installer/profile.ts:350

isInvalid protected

ts
isInvalid(outputs: Object): Promise<boolean>

Parameters

  • outputs: Object

Return Type

  • Promise<boolean>

Defined in: packages/installer/profile.ts:280

map

ts
map(transform: Transform<PostProcessingTask, N>): Task<N extends Promise<R> ? R : N>

Parameters

  • transform: Transform<PostProcessingTask, N>

Return Type

  • Task<N extends Promise<R> ? R : N>

Inherited from: AbortableTask.map

Defined in: packages/task/index.ts:212

onChildUpdate

ts
onChildUpdate(chunkSize: number): void

Parameters

  • chunkSize: number

Return Type

  • void

Inherited from: AbortableTask.onChildUpdate

Defined in: packages/task/index.ts:205

pause

ts
pause(): Promise<void>

Return Type

  • Promise<void>

Inherited from: AbortableTask.pause

Defined in: packages/task/index.ts:129

pauseTask protected

ts
pauseTask(): Promise<void>

Return Type

  • Promise<void>

Inherited from: AbortableTask.pauseTask

Defined in: packages/task/index.ts:240

postProcess protected

ts
postProcess(mc: MinecraftFolder, proc: PostProcessor, javaOptions: SpawnJavaOptions): Promise<void>

Parameters

  • mc: MinecraftFolder
  • proc: PostProcessor
  • javaOptions: SpawnJavaOptions

Return Type

  • Promise<void>

Defined in: packages/installer/profile.ts:296

process protected

ts
process(): Promise<void>

Return Type

  • Promise<void>

Defined in: packages/installer/profile.ts:322

resume

ts
resume(): Promise<void>

Return Type

  • Promise<void>

Inherited from: AbortableTask.resume

Defined in: packages/task/index.ts:137

resumeTask protected

ts
resumeTask(): Promise<void>

Return Type

  • Promise<void>

Inherited from: AbortableTask.resumeTask

Defined in: packages/task/index.ts:250

runTask protected

ts
runTask(): Promise<void>

Return Type

  • Promise<void>

Inherited from: AbortableTask.runTask

Defined in: packages/task/index.ts:257

setName

ts
setName(name: string, param: object): PostProcessingTask

Parameters

  • name: string
  • param: object

Return Type

  • PostProcessingTask

Inherited from: AbortableTask.setName

Defined in: packages/task/index.ts:102

start

ts
start(context: TaskContext, parent: Task<any>): void

Parameters

  • context: TaskContext
  • parent: Task<any>

Return Type

  • void

Inherited from: AbortableTask.start

Defined in: packages/task/index.ts:164

startAndWait

ts
startAndWait(context: TaskContext, parent: Task<any>): Promise<void>

Parameters

  • context: TaskContext
  • parent: Task<any>

Return Type

  • Promise<void>

Inherited from: AbortableTask.startAndWait

Defined in: packages/task/index.ts:195

update protected

ts
update(chunkSize: number): void

Parameters

  • chunkSize: number

Return Type

  • void

Inherited from: AbortableTask.update

Defined in: packages/task/index.ts:200

wait

ts
wait(): Promise<void>

Return Type

  • Promise<void>

Inherited from: AbortableTask.wait

Defined in: packages/task/index.ts:160