TransactionManager
¶
文档版本:1.21.60.21
TransactionManager
类。script_api.minecraft/server-editor-bindings.transactionmanager.description
方法¶
addEntityOperation
script_api.minecraft/server-editor-bindings.transactionmanager.addentityoperation.description
entity
:Entity
- script_api.minecraft/server-editor-bindings.transactionmanager.addentityoperation.entity.description
type
:EntityOperationType
- script_api.minecraft/server-editor-bindings.transactionmanager.addentityoperation.type.description
- 返回值:
boolean
- script_api.minecraft/server-editor-bindings.transactionmanager.addentityoperation.return
addUserDefinedOperation
script_api.minecraft/server-editor-bindings.transactionmanager.adduserdefinedoperation.description
addUserDefinedOperation(transactionHandlerId: UserDefinedTransactionHandlerId, operationData: string, operationName?: string): void
transactionHandlerId
:UserDefinedTransactionHandlerId
- script_api.minecraft/server-editor-bindings.transactionmanager.adduserdefinedoperation.transactionhandlerid.description
operationData
:string
- script_api.minecraft/server-editor-bindings.transactionmanager.adduserdefinedoperation.operationdata.description
operationName
?:string
=null
- script_api.minecraft/server-editor-bindings.transactionmanager.adduserdefinedoperation.operationname.description
commitOpenTransaction
script_api.minecraft/server-editor-bindings.transactionmanager.commitopentransaction.description
- 返回值:
boolean
- script_api.minecraft/server-editor-bindings.transactionmanager.commitopentransaction.return
commitTrackedChanges
script_api.minecraft/server-editor-bindings.transactionmanager.committrackedchanges.description
- 返回值:
int32
- script_api.minecraft/server-editor-bindings.transactionmanager.committrackedchanges.return
createUserDefinedTransactionHandler
script_api.minecraft/server-editor-bindings.transactionmanager.createuserdefinedtransactionhandler.description
createUserDefinedTransactionHandler(undoClosure: (arg: string) => void, redoClosure: (arg: string) => void): UserDefinedTransactionHandlerId
undoClosure
:(string) => void
- script_api.minecraft/server-editor-bindings.transactionmanager.createuserdefinedtransactionhandler.undoclosure.description
redoClosure
:(string) => void
- script_api.minecraft/server-editor-bindings.transactionmanager.createuserdefinedtransactionhandler.redoclosure.description
discardOpenTransaction
script_api.minecraft/server-editor-bindings.transactionmanager.discardopentransaction.description
- 返回值:
boolean
- script_api.minecraft/server-editor-bindings.transactionmanager.discardopentransaction.return
discardTrackedChanges
script_api.minecraft/server-editor-bindings.transactionmanager.discardtrackedchanges.description
- 返回值:
int32
- script_api.minecraft/server-editor-bindings.transactionmanager.discardtrackedchanges.return
openTransaction
script_api.minecraft/server-editor-bindings.transactionmanager.opentransaction.description
name
:string
- script_api.minecraft/server-editor-bindings.transactionmanager.opentransaction.name.description
- 返回值:
boolean
- script_api.minecraft/server-editor-bindings.transactionmanager.opentransaction.return
redo
script_api.minecraft/server-editor-bindings.transactionmanager.redo.description
- 返回值:
void
- script_api.minecraft/server-editor-bindings.transactionmanager.redo.return
redoSize
script_api.minecraft/server-editor-bindings.transactionmanager.redosize.description
- 返回值:
int32
- script_api.minecraft/server-editor-bindings.transactionmanager.redosize.return
trackBlockChangeArea
script_api.minecraft/server-editor-bindings.transactionmanager.trackblockchangearea.description
from
:Vector3
- script_api.minecraft/server-editor-bindings.transactionmanager.trackblockchangearea.from.description
to
:Vector3
- script_api.minecraft/server-editor-bindings.transactionmanager.trackblockchangearea.to.description
- 返回值:
boolean
- script_api.minecraft/server-editor-bindings.transactionmanager.trackblockchangearea.return
trackBlockChangeCompoundBlockVolume
script_api.minecraft/server-editor-bindings.transactionmanager.trackblockchangecompoundblockvolume.description
compoundBlockVolume
:CompoundBlockVolume
- script_api.minecraft/server-editor-bindings.transactionmanager.trackblockchangecompoundblockvolume.compoundblockvolume.description
trackBlockChangeList
script_api.minecraft/server-editor-bindings.transactionmanager.trackblockchangelist.description
locations
:Vector3[]
- script_api.minecraft/server-editor-bindings.transactionmanager.trackblockchangelist.locations.description
- 返回值:
boolean
- script_api.minecraft/server-editor-bindings.transactionmanager.trackblockchangelist.return
trackBlockChangeSelection
script_api.minecraft/server-editor-bindings.transactionmanager.trackblockchangeselection.description
selection
:Selection
- script_api.minecraft/server-editor-bindings.transactionmanager.trackblockchangeselection.selection.description
- 返回值:
boolean
- script_api.minecraft/server-editor-bindings.transactionmanager.trackblockchangeselection.return
undo
script_api.minecraft/server-editor-bindings.transactionmanager.undo.description
- 返回值:
void
- script_api.minecraft/server-editor-bindings.transactionmanager.undo.return
undoSize
script_api.minecraft/server-editor-bindings.transactionmanager.undosize.description
- 返回值:
int32
- script_api.minecraft/server-editor-bindings.transactionmanager.undosize.return