Bu sayfa İngilizce gösteriliyor.
API reference
The exact WIT declarations of the script contract, one page per interface.
This reference is generated from the script contract strawberry:plugin, version 0.2.0, the contract the SDK is built on. WIT declares the names, types, resource handles, imports and exports. The guides explain how to use them.
A declaration does not promise that every function works on every client. Test client-specific features on that client.
Reading the declarations
WIT uses kebab-case names. Rust bindings use snake_case functions and PascalCase types: register-event-with-options is register_event_with_options, and handler-options is HandlerOptions. borrow<resource> lends a handle for the call. A plain resource parameter hands the handle over.
Where to start
- Script worlds, metadata and context: entry points.
- event, command, permission and scheduler: behaviour.
- player, gui, forms and java-dialogs: players and menus.
- world, display, inventory, item-stack, scoreboard and boss-bar: game objects.
- achievements, player-data, friends, sub-servers and values: platform features.
- connection-check, content, custom-blocks, merchant, modules and teleport: more game features.
- password: password hashing.
What the reference leaves out
Functions that Play Strawberry servers do not offer have no page here. Paper features without an equivalent in the script API are listed on Not in the script API.
Large catalogues
The sounds page shows the first values of the sound enum and the naming rule instead of all of them. The packet and event pages are long because they declare every packet and event.