本页为英文技术参考;字段、编号与支持状态直接来自同一契约源。中文学习路线见 开发文档。
Minecraft.Instances
Read the launcher’s instance inventory and request supported instance changes. An instance identity is a Host-owned reference, not a directory name or a plugin-selected filesystem path.
Contract: nexa.minecraft.instances/100. API index.
Typical sequence
List within the requested inventory scope, read details by returned identity, and prepare changes before committing the exact plan. Selection and launch are separate operations.
Behavior and limits
Several clone/delete routes remain unmapped in the recorded Host. Do not emulate them by deleting files through unrelated APIs. Read errors must remain distinct from an empty inventory.
The recorded Host maps 18 of 18 operations in this group. A mapping is subject to permission, phase, scope, platform and business preconditions. Host snapshot identifies the source revision; negotiate against the actual installed Host.
Operations
List · Read · Watch · Discover · ListRoots · AddRoot · RemoveRoot · PrepareCreate · CommitCreate · Select · Rename · PrepareClone · CommitClone · PrepareDelete · CommitDelete · ReadIdentity · ReadEffectiveSettings · OpenDirectory
List
InstanceListRequest → Page<InstanceSummary> (wrapper, item)
| Property | Contract |
|---|---|
| Local SDK method ID | 1 |
| Kind | Query |
| Permission | nexa.minecraft.instances.read |
| Legal phases | Initialize, PostInitialize, Checkup, Finalize, Active |
| Idempotency | ReadOnly |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Root | RootRef? | Structured RootRef value; follow its linked field contract. Nullable; omission is distinct from an empty value. No implicit default is promised by this type. |
Page | PageRequest | Structured PageRequest value; follow its linked field contract. |
Successful result
Read Items and continue with NextCursor while preserving the original query. An absent cursor ends the sequence; an invalid cursor is an error.
Failure and retry
Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. A read-only classification does not bypass budgets or guarantee a failed request can be retried indefinitely. Preserve structured errors; see recovery guidance.
C binding (call fragment; the caller supplies the encoded request and buffers):
nx_Minecraft_Instances_List(&reply, request, &options);The next resume receives the reply. Check nx_reply_success before nx_Minecraft_Instances_List_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.
Read
EntityRequest → InstanceDetails
| Property | Contract |
|---|---|
| Local SDK method ID | 2 |
| Kind | Query |
| Permission | nexa.minecraft.instances.read |
| Legal phases | Initialize, PostInitialize, Checkup, Finalize, Active |
| Idempotency | ReadOnly |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Id | EntityId | Identity in this model’s domain. Use the identity issued or declared for this object, not a display name or filesystem path. |
Successful result
Decode the exact output model after Success. Preserve its identities, revision and schema metadata for subsequent domain operations.
Failure and retry
Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. A read-only classification does not bypass budgets or guarantee a failed request can be retried indefinitely. Preserve structured errors; see recovery guidance.
C binding (call fragment; the caller supplies the encoded request and buffers):
nx_Minecraft_Instances_Read(&reply, request, &options);The next resume receives the reply. Check nx_reply_success before nx_Minecraft_Instances_Read_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.
Watch
WatchRequest → SubscriptionRef
| Property | Contract |
|---|---|
| Local SDK method ID | 3 |
| Kind | Subscription |
| Permission | nexa.minecraft.instances.read |
| Legal phases | Initialize, PostInitialize, Checkup, Finalize, Active |
| Idempotency | ReadOnly |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Target | EntityId | Identity or revision in this model’s domain; preserve ownership and exact spelling. |
Cursor | string? | Opaque continuation or observation cursor. Reuse only in the issuing query/scope; absence and invalidity are different. Nullable; omission is distinct from an empty value. No implicit default is promised by this type. |
Schema | SchemaRef | Exact schema identity, version and fingerprint used to validate Value. |
Successful result
Retain the subscription identity, consume bounded batches or callbacks as specified, handle gaps, and release it when no longer needed.
Failure and retry
Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. A read-only classification does not bypass budgets or guarantee a failed request can be retried indefinitely. Preserve structured errors; see recovery guidance.
C binding (call fragment; the caller supplies the encoded request and buffers):
nx_Minecraft_Instances_Watch(&reply, request, &options);The next resume receives the reply. Check nx_reply_success before nx_Minecraft_Instances_Watch_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.
Discover
| Property | Contract |
|---|---|
| Local SDK method ID | 4 |
| Kind | Operation |
| Permission | nexa.minecraft.instances.write |
| Legal phases | Active |
| Idempotency | RequiredKey |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Root | RootRef | Structured RootRef value; follow its linked field contract. |
Successful result
Work has been admitted. Read or watch the owned operation through Tasks to establish its terminal result; admission is not completion.
Failure and retry
Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Re-read after revision conflicts; cancellation does not prove rollback. Preserve structured errors; see recovery guidance.
C binding (call fragment; the caller supplies the encoded request and buffers):
nx_Minecraft_Instances_Discover(&reply, request, &options);The next resume receives the reply. Check nx_reply_success before nx_Minecraft_Instances_Discover_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.
ListRoots
PageRequest → Page<RootRegistration> (wrapper, item)
| Property | Contract |
|---|---|
| Local SDK method ID | 5 |
| Kind | Query |
| Permission | nexa.minecraft.instances.read |
| Legal phases | Initialize, PostInitialize, Checkup, Finalize, Active |
| Idempotency | ReadOnly |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Cursor | string? | Opaque continuation or observation cursor. Reuse only in the issuing query/scope; absence and invalidity are different. Nullable; omission is distinct from an empty value. No implicit default is promised by this type. |
Limit | long | Requested bound on returned items. The Host may impose a smaller domain-specific limit. |
Successful result
Read Items and continue with NextCursor while preserving the original query. An absent cursor ends the sequence; an invalid cursor is an error.
Failure and retry
Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. A read-only classification does not bypass budgets or guarantee a failed request can be retried indefinitely. Preserve structured errors; see recovery guidance.
C binding (call fragment; the caller supplies the encoded request and buffers):
nx_Minecraft_Instances_ListRoots(&reply, request, &options);The next resume receives the reply. Check nx_reply_success before nx_Minecraft_Instances_ListRoots_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.
AddRoot
RootRegistration → RootRegistration
| Property | Contract |
|---|---|
| Local SDK method ID | 6 |
| Kind | Mutation |
| Permission | nexa.minecraft.instances.write |
| Legal phases | Active |
| Idempotency | RequiredKey |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Root | RootRef | Structured RootRef value; follow its linked field contract. |
DisplayName | string | User-facing localized label; it is not an authority-bearing identity. |
Successful result
Decode the exact output model after Success. Preserve its identities, revision and schema metadata for subsequent domain operations.
Failure and retry
Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Re-read after revision conflicts; cancellation does not prove rollback. Preserve structured errors; see recovery guidance.
C binding (call fragment; the caller supplies the encoded request and buffers):
nx_Minecraft_Instances_AddRoot(&reply, request, &options);The next resume receives the reply. Check nx_reply_success before nx_Minecraft_Instances_AddRoot_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.
RemoveRoot
| Property | Contract |
|---|---|
| Local SDK method ID | 7 |
| Kind | Mutation |
| Permission | nexa.minecraft.instances.write |
| Legal phases | Active |
| Idempotency | RequiredKey |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Root | RootRef | Structured RootRef value; follow its linked field contract. |
Successful result
There is no result payload beyond the encoded Empty model. Check Success; an empty failure value is not successful completion.
Failure and retry
Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Re-read after revision conflicts; cancellation does not prove rollback. Preserve structured errors; see recovery guidance.
C binding (call fragment; the caller supplies the encoded request and buffers):
nx_Minecraft_Instances_RemoveRoot(&reply, request, &options);The next resume receives the reply. Check nx_reply_success before nx_Minecraft_Instances_RemoveRoot_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.
PrepareCreate
InstanceCreateRequest → MutationPlan
| Property | Contract |
|---|---|
| Local SDK method ID | 8 |
| Kind | Query |
| Permission | nexa.minecraft.instances.read |
| Legal phases | Initialize, PostInitialize, Checkup, Finalize, Active |
| Idempotency | ReadOnly |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Template | QualifiedId | Identity or revision in this model’s domain; preserve ownership and exact spelling. |
Name | string | Domain value named by this field; additional accepted values and bounds are determined by the operation and Host policy. |
Root | RootRef | Structured RootRef value; follow its linked field contract. |
GameVersion | string | Domain value named by this field; additional accepted values and bounds are determined by the operation and Host policy. |
Loader | QualifiedId? | Identity or revision in this model’s domain; preserve ownership and exact spelling. Nullable; omission is distinct from an empty value. No implicit default is promised by this type. |
Successful result
Retain the exact plan ID and revision, review its bound inputs and confirmation requirement, then use the corresponding commit operation.
Failure and retry
Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. A read-only classification does not bypass budgets or guarantee a failed request can be retried indefinitely. Preserve structured errors; see recovery guidance.
C binding (call fragment; the caller supplies the encoded request and buffers):
nx_Minecraft_Instances_PrepareCreate(&reply, request, &options);The next resume receives the reply. Check nx_reply_success before nx_Minecraft_Instances_PrepareCreate_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.
CommitCreate
| Property | Contract |
|---|---|
| Local SDK method ID | 9 |
| Kind | Operation |
| Permission | nexa.minecraft.instances.write |
| Legal phases | Active |
| Idempotency | RequiredKey |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Plan | EntityId | Identity or revision in this model’s domain; preserve ownership and exact spelling. |
ExpectedRevision | Revision | Revision observed before this change. Preserve it exactly; a mismatch requires re-reading and reconciling the target. |
ConfirmationToken | string? | Domain value named by this field; additional accepted values and bounds are determined by the operation and Host policy. Nullable; omission is distinct from an empty value. No implicit default is promised by this type. |
Successful result
Work has been admitted. Read or watch the owned operation through Tasks to establish its terminal result; admission is not completion.
Failure and retry
Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Re-read after revision conflicts; cancellation does not prove rollback. Preserve structured errors; see recovery guidance.
C binding (call fragment; the caller supplies the encoded request and buffers):
nx_Minecraft_Instances_CommitCreate(&reply, request, &options);The next resume receives the reply. Check nx_reply_success before nx_Minecraft_Instances_CommitCreate_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.
Select
EntityRequest → InstanceSummary
| Property | Contract |
|---|---|
| Local SDK method ID | 10 |
| Kind | Mutation |
| Permission | nexa.minecraft.instances.write |
| Legal phases | Active |
| Idempotency | RequiredKey |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Id | EntityId | Identity in this model’s domain. Use the identity issued or declared for this object, not a display name or filesystem path. |
Successful result
Decode the exact output model after Success. Preserve its identities, revision and schema metadata for subsequent domain operations.
Failure and retry
Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Re-read after revision conflicts; cancellation does not prove rollback. Preserve structured errors; see recovery guidance.
C binding (call fragment; the caller supplies the encoded request and buffers):
nx_Minecraft_Instances_Select(&reply, request, &options);The next resume receives the reply. Check nx_reply_success before nx_Minecraft_Instances_Select_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.
Rename
InstanceRenameRequest → InstanceSummary
| Property | Contract |
|---|---|
| Local SDK method ID | 11 |
| Kind | Mutation |
| Permission | nexa.minecraft.instances.write |
| Legal phases | Active |
| Idempotency | RequiredKey |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Instance | EntityId | Identity or revision in this model’s domain; preserve ownership and exact spelling. |
Name | string | Domain value named by this field; additional accepted values and bounds are determined by the operation and Host policy. |
ExpectedRevision | Revision | Revision observed before this change. Preserve it exactly; a mismatch requires re-reading and reconciling the target. |
Successful result
Decode the exact output model after Success. Preserve its identities, revision and schema metadata for subsequent domain operations.
Failure and retry
Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Re-read after revision conflicts; cancellation does not prove rollback. Preserve structured errors; see recovery guidance.
C binding (call fragment; the caller supplies the encoded request and buffers):
nx_Minecraft_Instances_Rename(&reply, request, &options);The next resume receives the reply. Check nx_reply_success before nx_Minecraft_Instances_Rename_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.
PrepareClone
InstanceCloneRequest → MutationPlan
| Property | Contract |
|---|---|
| Local SDK method ID | 12 |
| Kind | Query |
| Permission | nexa.minecraft.instances.read |
| Legal phases | Initialize, PostInitialize, Checkup, Finalize, Active |
| Idempotency | ReadOnly |
| Host status | Mapped in recorded snapshot |
Prepare a new isolated instance in a registered destination root. Source and destination handles belong to the caller; ExpectedRevision is the source library revision. Existing destinations, reserved names, links and running games are rejected. The owner copies version files, local game data and cross-root runtime dependencies without overwriting shared files. The copy budget is 100,000 entries, depth 64, 2 GiB per file and 8 GiB total. The manifest is renamed and published last. A failed cross-root clone can leave verified shared cache files; it does not replace the source.
Request fields
| Field | Type | Meaning |
|---|---|---|
Source | EntityId | Identity or revision in this model’s domain; preserve ownership and exact spelling. |
Name | string | Domain value named by this field; additional accepted values and bounds are determined by the operation and Host policy. |
Destination | RootRef | Structured RootRef value; follow its linked field contract. |
ExpectedRevision | Revision | Revision observed before this change. Preserve it exactly; a mismatch requires re-reading and reconciling the target. |
Successful result
Retain the exact plan ID and revision, review its bound inputs and confirmation requirement, then use the corresponding commit operation.
Failure and retry
Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. A read-only classification does not bypass budgets or guarantee a failed request can be retried indefinitely. Preserve structured errors; see recovery guidance.
C binding (call fragment; the caller supplies the encoded request and buffers):
nx_Minecraft_Instances_PrepareClone(&reply, request, &options);The next resume receives the reply. Check nx_reply_success before nx_Minecraft_Instances_PrepareClone_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.
CommitClone
| Property | Contract |
|---|---|
| Local SDK method ID | 13 |
| Kind | Operation |
| Permission | nexa.minecraft.instances.write |
| Legal phases | Active |
| Idempotency | RequiredKey |
| Host status | Mapped in recorded snapshot |
Consume a clone plan once. The Host asks for confirmation, rechecks the source revision and destination, acquires recovery leases in canonical root order, copies and publishes the new instance, then refreshes discovery. A completed operation returns Empty. A successful admission is not proof that the clone finished.
Request fields
| Field | Type | Meaning |
|---|---|---|
Plan | EntityId | Identity or revision in this model’s domain; preserve ownership and exact spelling. |
ExpectedRevision | Revision | Revision observed before this change. Preserve it exactly; a mismatch requires re-reading and reconciling the target. |
ConfirmationToken | string? | Domain value named by this field; additional accepted values and bounds are determined by the operation and Host policy. Nullable; omission is distinct from an empty value. No implicit default is promised by this type. |
Successful result
Work has been admitted. Read or watch the owned operation through Tasks to establish its terminal result; admission is not completion.
Failure and retry
Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Re-read after revision conflicts; cancellation does not prove rollback. Preserve structured errors; see recovery guidance.
C binding (call fragment; the caller supplies the encoded request and buffers):
nx_Minecraft_Instances_CommitClone(&reply, request, &options);The next resume receives the reply. Check nx_reply_success before nx_Minecraft_Instances_CommitClone_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.
PrepareDelete
InstanceDeleteRequest → MutationPlan
| Property | Contract |
|---|---|
| Local SDK method ID | 14 |
| Kind | Query |
| Permission | nexa.minecraft.instances.read |
| Legal phases | Initialize, PostInitialize, Checkup, Finalize, Active |
| Idempotency | ReadOnly |
| Host status | Mapped in recorded snapshot |
Prepare deletion of an admitted instance at ExpectedRevision. RetainUserData=true moves its version directory into the root’s .recycle directory. False permanently removes that directory after moving it out of the active library. Shared root data and runtime caches remain. The review text distinguishes these outcomes. Running sessions block deletion.
Request fields
| Field | Type | Meaning |
|---|---|---|
Instance | EntityId | Identity or revision in this model’s domain; preserve ownership and exact spelling. |
ExpectedRevision | Revision | Revision observed before this change. Preserve it exactly; a mismatch requires re-reading and reconciling the target. |
RetainUserData | bool | For instance deletion, true moves the version directory into .recycle; false permanently deletes that directory. Shared root files remain. |
Successful result
Retain the exact plan ID and revision, review its bound inputs and confirmation requirement, then use the corresponding commit operation.
Failure and retry
Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. A read-only classification does not bypass budgets or guarantee a failed request can be retried indefinitely. Preserve structured errors; see recovery guidance.
C binding (call fragment; the caller supplies the encoded request and buffers):
nx_Minecraft_Instances_PrepareDelete(&reply, request, &options);The next resume receives the reply. Check nx_reply_success before nx_Minecraft_Instances_PrepareDelete_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.
CommitDelete
| Property | Contract |
|---|---|
| Local SDK method ID | 15 |
| Kind | Operation |
| Permission | nexa.minecraft.instances.write |
| Legal phases | Active |
| Idempotency | RequiredKey |
| Host status | Mapped in recorded snapshot |
Consume a deletion plan after Host confirmation and an owner-side revision check. Deleting the version directory never follows child symbolic links into another directory. Empty is returned only after the owner finishes; stale or consumed plans require a new preview.
Request fields
| Field | Type | Meaning |
|---|---|---|
Plan | EntityId | Identity or revision in this model’s domain; preserve ownership and exact spelling. |
ExpectedRevision | Revision | Revision observed before this change. Preserve it exactly; a mismatch requires re-reading and reconciling the target. |
ConfirmationToken | string? | Domain value named by this field; additional accepted values and bounds are determined by the operation and Host policy. Nullable; omission is distinct from an empty value. No implicit default is promised by this type. |
Successful result
Work has been admitted. Read or watch the owned operation through Tasks to establish its terminal result; admission is not completion.
Failure and retry
Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Re-read after revision conflicts; cancellation does not prove rollback. Preserve structured errors; see recovery guidance.
C binding (call fragment; the caller supplies the encoded request and buffers):
nx_Minecraft_Instances_CommitDelete(&reply, request, &options);The next resume receives the reply. Check nx_reply_success before nx_Minecraft_Instances_CommitDelete_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.
ReadIdentity
EntityRequest → InstanceSummary
| Property | Contract |
|---|---|
| Local SDK method ID | 16 |
| Kind | Query |
| Permission | nexa.minecraft.instances.read |
| Legal phases | Initialize, PostInitialize, Checkup, Finalize, Active |
| Idempotency | ReadOnly |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Id | EntityId | Identity in this model’s domain. Use the identity issued or declared for this object, not a display name or filesystem path. |
Successful result
Decode the exact output model after Success. Preserve its identities, revision and schema metadata for subsequent domain operations.
Failure and retry
Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. A read-only classification does not bypass budgets or guarantee a failed request can be retried indefinitely. Preserve structured errors; see recovery guidance.
C binding (call fragment; the caller supplies the encoded request and buffers):
nx_Minecraft_Instances_ReadIdentity(&reply, request, &options);The next resume receives the reply. Check nx_reply_success before nx_Minecraft_Instances_ReadIdentity_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.
ReadEffectiveSettings
EntityRequest → Page<EffectiveSetting> (wrapper, item)
| Property | Contract |
|---|---|
| Local SDK method ID | 17 |
| Kind | Query |
| Permission | nexa.minecraft.instances.read |
| Legal phases | Initialize, PostInitialize, Checkup, Finalize, Active |
| Idempotency | ReadOnly |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Id | EntityId | Identity in this model’s domain. Use the identity issued or declared for this object, not a display name or filesystem path. |
Successful result
Read Items and continue with NextCursor while preserving the original query. An absent cursor ends the sequence; an invalid cursor is an error.
Failure and retry
Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. A read-only classification does not bypass budgets or guarantee a failed request can be retried indefinitely. Preserve structured errors; see recovery guidance.
C binding (call fragment; the caller supplies the encoded request and buffers):
nx_Minecraft_Instances_ReadEffectiveSettings(&reply, request, &options);The next resume receives the reply. Check nx_reply_success before nx_Minecraft_Instances_ReadEffectiveSettings_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.
OpenDirectory
| Property | Contract |
|---|---|
| Local SDK method ID | 18 |
| Kind | Mutation |
| Permission | nexa.minecraft.instances.write |
| Legal phases | Active |
| Idempotency | RequiredKey |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Id | EntityId | Identity in this model’s domain. Use the identity issued or declared for this object, not a display name or filesystem path. |
Successful result
There is no result payload beyond the encoded Empty model. Check Success; an empty failure value is not successful completion.
Failure and retry
Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Re-read after revision conflicts; cancellation does not prove rollback. Preserve structured errors; see recovery guidance.
C binding (call fragment; the caller supplies the encoded request and buffers):
nx_Minecraft_Instances_OpenDirectory(&reply, request, &options);The next resume receives the reply. Check nx_reply_success before nx_Minecraft_Instances_OpenDirectory_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.
来源: NexaCL-Plugin-SDK · Apache-2.0.