Minecraft.Content
Inspect and change instance content with dependency-aware plans and transaction records. A content item belongs to a specific instance and content domain.
Contract: nexa.minecraft.content/100. API index.
Typical sequence
Build the relevant install/enable/disable/remove/update plan, inspect the preview and execute its exact identity/revision. Read the operation and transaction records before offering rollback.
Behavior and limits
Rollback is a reviewed domain operation, not arbitrary file reversal. Import/export supports an explicit format allowlist. Trash clearing and custom format providers remain unavailable where marked.
The recorded Host maps 23 of 23 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 · Inspect · Watch · ReadDependencyGraph · PlanInstall · PlanEnable · PlanDisable · PlanRemove · PlanUpdate · Preview · Execute · ListTransactions · Rollback · ReadIntegrity · Verify · ListTrash · RestoreTrash · ClearTrash · Import · Export · RegisterFormatProvider · PreviewClearTrash · InspectWithProvider
List
ContentQuery → Page<ContentItem> (wrapper, item)
| Property | Contract |
|---|---|
| Local SDK method ID | 1 |
| Kind | Query |
| Permission | nexa.minecraft.content.read |
| Legal phases | Initialize, PostInitialize, Checkup, Finalize, Active |
| Idempotency | ReadOnly |
| 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. |
Kind | 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. |
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_Content_List(&reply, request, &options);The next resume receives the reply. Check nx_reply_success before nx_Minecraft_Content_List_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.
Inspect
| Property | Contract |
|---|---|
| Local SDK method ID | 2 |
| Kind | Query |
| Permission | nexa.minecraft.content.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_Content_Inspect(&reply, request, &options);The next resume receives the reply. Check nx_reply_success before nx_Minecraft_Content_Inspect_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.content.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_Content_Watch(&reply, request, &options);The next resume receives the reply. Check nx_reply_success before nx_Minecraft_Content_Watch_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.
ReadDependencyGraph
EntityRequest → ContentDependencyGraph
| Property | Contract |
|---|---|
| Local SDK method ID | 4 |
| Kind | Query |
| Permission | nexa.minecraft.content.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_Content_ReadDependencyGraph(&reply, request, &options);The next resume receives the reply. Check nx_reply_success before nx_Minecraft_Content_ReadDependencyGraph_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.
PlanInstall
ContentChangeRequest → ContentPlan
| Property | Contract |
|---|---|
| Local SDK method ID | 5 |
| Kind | Query |
| Permission | nexa.minecraft.content.read |
| Legal phases | Initialize, PostInitialize, Checkup, Finalize, Active |
| Idempotency | ReadOnly |
| 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. |
Items | EntityId[] | Identity or revision in this model’s domain; preserve ownership and exact spelling. A bounded collection; do not assume an unbounded result or unspecified ordering. |
Versions | ResourceVersionRef[] | Structured ResourceVersionRef value; follow its linked field contract. A bounded collection; do not assume an unbounded result or unspecified ordering. |
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. 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_Content_PlanInstall(&reply, request, &options);The next resume receives the reply. Check nx_reply_success before nx_Minecraft_Content_PlanInstall_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.
PlanEnable
ContentChangeRequest → ContentPlan
| Property | Contract |
|---|---|
| Local SDK method ID | 6 |
| Kind | Query |
| Permission | nexa.minecraft.content.read |
| Legal phases | Initialize, PostInitialize, Checkup, Finalize, Active |
| Idempotency | ReadOnly |
| 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. |
Items | EntityId[] | Identity or revision in this model’s domain; preserve ownership and exact spelling. A bounded collection; do not assume an unbounded result or unspecified ordering. |
Versions | ResourceVersionRef[] | Structured ResourceVersionRef value; follow its linked field contract. A bounded collection; do not assume an unbounded result or unspecified ordering. |
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. 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_Content_PlanEnable(&reply, request, &options);The next resume receives the reply. Check nx_reply_success before nx_Minecraft_Content_PlanEnable_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.
PlanDisable
ContentChangeRequest → ContentPlan
| Property | Contract |
|---|---|
| Local SDK method ID | 7 |
| Kind | Query |
| Permission | nexa.minecraft.content.read |
| Legal phases | Initialize, PostInitialize, Checkup, Finalize, Active |
| Idempotency | ReadOnly |
| 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. |
Items | EntityId[] | Identity or revision in this model’s domain; preserve ownership and exact spelling. A bounded collection; do not assume an unbounded result or unspecified ordering. |
Versions | ResourceVersionRef[] | Structured ResourceVersionRef value; follow its linked field contract. A bounded collection; do not assume an unbounded result or unspecified ordering. |
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. 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_Content_PlanDisable(&reply, request, &options);The next resume receives the reply. Check nx_reply_success before nx_Minecraft_Content_PlanDisable_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.
PlanRemove
ContentChangeRequest → ContentPlan
| Property | Contract |
|---|---|
| Local SDK method ID | 8 |
| Kind | Query |
| Permission | nexa.minecraft.content.read |
| Legal phases | Initialize, PostInitialize, Checkup, Finalize, Active |
| Idempotency | ReadOnly |
| 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. |
Items | EntityId[] | Identity or revision in this model’s domain; preserve ownership and exact spelling. A bounded collection; do not assume an unbounded result or unspecified ordering. |
Versions | ResourceVersionRef[] | Structured ResourceVersionRef value; follow its linked field contract. A bounded collection; do not assume an unbounded result or unspecified ordering. |
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. 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_Content_PlanRemove(&reply, request, &options);The next resume receives the reply. Check nx_reply_success before nx_Minecraft_Content_PlanRemove_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.
PlanUpdate
ContentChangeRequest → ContentPlan
| Property | Contract |
|---|---|
| Local SDK method ID | 9 |
| Kind | Query |
| Permission | nexa.minecraft.content.read |
| Legal phases | Initialize, PostInitialize, Checkup, Finalize, Active |
| Idempotency | ReadOnly |
| 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. |
Items | EntityId[] | Identity or revision in this model’s domain; preserve ownership and exact spelling. A bounded collection; do not assume an unbounded result or unspecified ordering. |
Versions | ResourceVersionRef[] | Structured ResourceVersionRef value; follow its linked field contract. A bounded collection; do not assume an unbounded result or unspecified ordering. |
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. 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_Content_PlanUpdate(&reply, request, &options);The next resume receives the reply. Check nx_reply_success before nx_Minecraft_Content_PlanUpdate_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.
Preview
| Property | Contract |
|---|---|
| Local SDK method ID | 10 |
| Kind | Query |
| Permission | nexa.minecraft.content.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_Content_Preview(&reply, request, &options);The next resume receives the reply. Check nx_reply_success before nx_Minecraft_Content_Preview_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.
Execute
| Property | Contract |
|---|---|
| Local SDK method ID | 11 |
| Kind | Operation |
| Permission | nexa.minecraft.content.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_Content_Execute(&reply, request, &options);The next resume receives the reply. Check nx_reply_success before nx_Minecraft_Content_Execute_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.
ListTransactions
EntityRequest → Page<ContentTransaction> (wrapper, item)
| Property | Contract |
|---|---|
| Local SDK method ID | 12 |
| Kind | Query |
| Permission | nexa.minecraft.content.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_Content_ListTransactions(&reply, request, &options);The next resume receives the reply. Check nx_reply_success before nx_Minecraft_Content_ListTransactions_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.
Rollback
| Property | Contract |
|---|---|
| Local SDK method ID | 13 |
| Kind | Operation |
| Permission | nexa.minecraft.content.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_Content_Rollback(&reply, request, &options);The next resume receives the reply. Check nx_reply_success before nx_Minecraft_Content_Rollback_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.
ReadIntegrity
EntityRequest → IntegrityReport
| Property | Contract |
|---|---|
| Local SDK method ID | 14 |
| Kind | Query |
| Permission | nexa.minecraft.content.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_Content_ReadIntegrity(&reply, request, &options);The next resume receives the reply. Check nx_reply_success before nx_Minecraft_Content_ReadIntegrity_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.
Verify
| Property | Contract |
|---|---|
| Local SDK method ID | 15 |
| Kind | Operation |
| Permission | nexa.minecraft.content.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
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_Content_Verify(&reply, request, &options);The next resume receives the reply. Check nx_reply_success before nx_Minecraft_Content_Verify_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.
ListTrash
EntityRequest → Page<ContentItem> (wrapper, item)
| Property | Contract |
|---|---|
| Local SDK method ID | 16 |
| Kind | Query |
| Permission | nexa.minecraft.content.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_Content_ListTrash(&reply, request, &options);The next resume receives the reply. Check nx_reply_success before nx_Minecraft_Content_ListTrash_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.
RestoreTrash
ContentChangeRequest → OperationRef
| Property | Contract |
|---|---|
| Local SDK method ID | 17 |
| Kind | Operation |
| Permission | nexa.minecraft.content.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. |
Items | EntityId[] | Identity or revision in this model’s domain; preserve ownership and exact spelling. A bounded collection; do not assume an unbounded result or unspecified ordering. |
Versions | ResourceVersionRef[] | Structured ResourceVersionRef value; follow its linked field contract. A bounded collection; do not assume an unbounded result or unspecified ordering. |
ExpectedRevision | Revision | Revision observed before this change. Preserve it exactly; a mismatch requires re-reading and reconciling the target. |
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_Content_RestoreTrash(&reply, request, &options);The next resume receives the reply. Check nx_reply_success before nx_Minecraft_Content_RestoreTrash_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.
ClearTrash
| Property | Contract |
|---|---|
| Local SDK method ID | 18 |
| Kind | Operation |
| Permission | nexa.minecraft.content.write |
| Legal phases | Active |
| Idempotency | RequiredKey |
| Host status | Mapped in recorded snapshot |
Consume the plan returned by PreviewClearTrash after Host confirmation. This permanently removes the recognized trash entries included in the plan. It does not accept an instance ID in place of a plan, and it cannot clear newly added trash without another 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_Content_ClearTrash(&reply, request, &options);The next resume receives the reply. Check nx_reply_success before nx_Minecraft_Content_ClearTrash_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.
Import
ContentTransfer → OperationRef
| Property | Contract |
|---|---|
| Local SDK method ID | 19 |
| Kind | Operation |
| Permission | nexa.minecraft.content.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. |
File | FileRef | Structured FileRef value; follow its linked field contract. |
Format | QualifiedId | Identity or revision in this model’s domain; preserve ownership and exact spelling. |
Selection | EntityId[] | Identity or revision in this model’s domain; preserve ownership and exact spelling. A bounded collection; do not assume an unbounded result or unspecified ordering. |
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_Content_Import(&reply, request, &options);The next resume receives the reply. Check nx_reply_success before nx_Minecraft_Content_Import_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.
Export
ContentTransfer → OperationRef
| Property | Contract |
|---|---|
| Local SDK method ID | 20 |
| Kind | Operation |
| Permission | nexa.minecraft.content.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. |
File | FileRef | Structured FileRef value; follow its linked field contract. |
Format | QualifiedId | Identity or revision in this model’s domain; preserve ownership and exact spelling. |
Selection | EntityId[] | Identity or revision in this model’s domain; preserve ownership and exact spelling. A bounded collection; do not assume an unbounded result or unspecified ordering. |
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_Content_Export(&reply, request, &options);The next resume receives the reply. Check nx_reply_success before nx_Minecraft_Content_Export_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.
RegisterFormatProvider
ProviderDescriptor → RegistrationRef
| Property | Contract |
|---|---|
| Local SDK method ID | 21 |
| Kind | Registration |
| Permission | nexa.minecraft.content.write |
| Legal phases | Initialize |
| Idempotency | RequiredKey |
| Host status | Mapped in recorded snapshot |
Register kind nexa:content/format with Inspect: ContentInspectionInput → ContentInspection. InspectWithProvider reads an explicitly granted file and passes only its name and at most 64 KiB of bytes. The callback receives no filesystem path. Its properties and issues are bounded and schema-checked; this API does not restore the removed built-in NBT viewer.
Request fields
| Field | Type | Meaning |
|---|---|---|
Id | QualifiedId | Identity in this model’s domain. Use the identity issued or declared for this object, not a display name or filesystem path. |
Kind | QualifiedId | Host-supported provider family. Registration succeeds only for a mapped family. |
ContractVersion | ulong | Provider contract version; current catalog read-provider callbacks use 100. |
SchemaHash | string | Digest of the provider callback envelope schema; current catalog read providers use BusinessProviderCall. |
DisplayName | LocalizedText | User-facing localized label; it is not an authority-bearing identity. |
Capabilities | string[] | Exact capabilities advertised or required by this descriptor, subject to the Host’s accepted table. A bounded collection; do not assume an unbounded result or unspecified ordering. |
SupportedScopes | string[] | Scopes the provider declares it can handle; declaration does not authorize every target. A bounded collection; do not assume an unbounded result or unspecified ordering. |
Selection | SelectionPolicy | Selection rule; the current catalog callback boundary supports ExplicitRequest. |
Concurrency | ConcurrencyPolicy | Declared execution policy. A provider family may reject enum members whose semantics it does not implement. |
DeadlineMilliseconds | long | Requested deadline in milliseconds; queue time consumes this budget and caller deadlines can shorten it. |
FailurePolicy | ProviderFailurePolicy | How this provider family reports callback failures; it does not automatically make retries safe. |
Configuration | SchemaRef | Schema for provider configuration, not arbitrary executable Host configuration. |
Handler | ulong | Callback identifier registered by this plugin. A handler alone is not a public action or provider registration. |
Successful result
Retain the registration identity for the permitted update/release operation. Staged registrations become visible only at group activation.
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. Preserve structured errors; see recovery guidance.
C binding (call fragment; the caller supplies the encoded request and buffers):
nx_Minecraft_Content_RegisterFormatProvider(&reply, request, &options);The next resume receives the reply. Check nx_reply_success before nx_Minecraft_Content_RegisterFormatProvider_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.
PreviewClearTrash
| Property | Contract |
|---|---|
| Local SDK method ID | 22 |
| Kind | Query |
| Permission | nexa.minecraft.content.read |
| Legal phases | Initialize, PostInitialize, Checkup, Finalize, Active |
| Idempotency | ReadOnly |
| Host status | Mapped in recorded snapshot |
Prepare a plan bound to the admitted instance and exact recognized trash IDs. The owner rejects a changed set, a running game, linked entries, more than 1,000 trash directories, more than 32,768 tree entries or depth above 64 before deleting any selected record.
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
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_Content_PreviewClearTrash(&reply, request, &options);The next resume receives the reply. Check nx_reply_success before nx_Minecraft_Content_PreviewClearTrash_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.
InspectWithProvider
ContentInspectionRequest → ContentInspection
| Property | Contract |
|---|---|
| Local SDK method ID | 23 |
| Kind | Query |
| Permission | nexa.minecraft.content.read |
| Legal phases | Initialize, PostInitialize, Checkup, Finalize, Active |
| Idempotency | ReadOnly |
| Host status | Mapped in recorded snapshot |
Use a published format provider to inspect a caller-owned user-file grant. Directories and files over 64 KiB are rejected. The Host compares file revisions before and after the callback, permits at most 256 distinct named properties and 128 issues, and returns the typed result. Package-file access uses the separate verified-package API.
Request fields
| Field | Type | Meaning |
|---|---|---|
Provider | QualifiedId | Identity or revision in this model’s domain; preserve ownership and exact spelling. |
File | FileRef | Structured FileRef value; follow its linked field contract. |
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_Content_InspectWithProvider(&reply, request, &options);The next resume receives the reply. Check nx_reply_success before nx_Minecraft_Content_InspectWithProvider_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.
Source: NexaCL-Plugin-SDK · Apache-2.0.