Skip to content

Sitemap

For Vibe Coding / AI reference: All page titles + summaries + absolute URLs for this site. Site root https://yexin.wiki/yeow/v1. Markdown source located in repository yeow-doc-website/docs/cn/; Local preview: Under yeow-doc-website run npm run dev.

Guide (Root)

PageURLSummary
Overviewhttps://yexin.wiki/yeow/v1/overviewProject overview: Write Paper plugins with TypeScript (QuickJS engine, independent thread per plugin). Role-based (beginner/developer/server admin/platform implementer) documentation entry guide + key concepts overview
AI-Assisted Startup Guidehttps://yexin.wiki/yeow/v1/ai-agentFor AI agents / Vibe Coding: Yeow project introduction, startup commands (--ts), next steps, documentation consultation strategy (sitemap/docs.zip/Harness usage)
Quick Starthttps://yexin.wiki/yeow/v1/getting-startedFrom scratch: npm create yeow create project → npm run dev develop (hot reload) → npm run build build → deployment methods. Includes plugin example (/back teleport), async/sync conventions
Environment Capabilitieshttps://yexin.wiki/yeow/v1/environmentRuntime environment overview: Global capabilities ($send/fetch/TextEncoder/TextDecoder/performance/timers), thread and async model, differences from browser/Node environments, performance recommendations
CLI Referencehttps://yexin.wiki/yeow/v1/clicreate-yeow scaffolding and dev-server command-line usage: Interactive/non-interactive creation, development server parameters (-y/--stop), build scripts, debug experience (source-map error location and async call chains)
Build & Distributionhttps://yexin.wiki/yeow/v1/distributionTwo artifacts: Standard Paper JAR (plugins/) and platform-independent .yeow.zip (plugins/Yeow/ auto-scan or /yeow install); Distribution recommendations and Modrinth publishing
Permissions & Native Service Trusthttps://yexin.wiki/yeow/v1/permissionsUnified-gate sensitive permission declaration (default deny table/wildcard rules/computedPermissions), mandatory native SHA-256 declaration (build/load/registration), untrusted warning switch
Runtime Operationshttps://yexin.wiki/yeow/v1/operationsServer admin perspective: /yeow management command complete set, runtime configuration (config.yml including Folia section), deployment form quick reference
Runtime Warninghttps://yexin.wiki/yeow/v1/runtime-warningEarly warning engine: heartbeat.timeout / event.slow / plugin.hung / budget.congested etc. alert trigger conditions, meanings and solutions; configuration thresholds; dynamic expansion mechanism
Advanced Knowledgehttps://yexin.wiki/yeow/v1/advancedAdvanced index: Architecture/scheduler/events/lifecycle/channels/service/Folia/about; Alerts and operations point to root-level documentation
Advanced · Architecture & Thread Modelhttps://yexin.wiki/yeow/v1/advanced/architecturePackage structure, startup flow, thread model, plugin entity abstraction, Worker (virtual plugin), timer resource management, platform independence, development mode error echo
Advanced · Scheduler & Taskshttps://yexin.wiki/yeow/v1/advanced/schedulerThree-level priority scheduler (time slice budget/automatic demotion/idle spin), task configuration (TaskOptions), async vs sync, manual chunking, scheduler design (queue/demotion algorithm/idle queue spin)
Advanced · Events & Callbackshttps://yexin.wiki/yeow/v1/advanced/eventsEvent bridge (EventBridge): Concurrent/serial, event data, handler operations and mode selection, event reentrant deadlock
Advanced · Lifecycle & Hot Reloadhttps://yexin.wiki/yeow/v1/advanced/lifecycleonInit/onLoad/onUnload, unified callback system, hot reload (force kill mechanism: native interrupt + entity rebuild), production /yeow reload/unload
Advanced · Environment Capabilities & Channelshttps://yexin.wiki/yeow/v1/advanced/channels$send encapsulation (underlying bridge $_send is internal implementation, closure-held not exposed), each message channel explanation (runtime configuration points to /operations)
Advanced · Binary Transporthttps://yexin.wiki/yeow/v1/advanced/binary-transportJS↔Java binary transport: 16 KiB resident buffer, tag state machine + start/end markers + varint layout, both-direction codec with JSON fallback, scheduler JSON removal, threading constraints and caveats
Advanced · Service Mechanismhttps://yexin.wiki/yeow/v1/advanced/servicePlugin Service (inter-plugin communication) and Native Service (native extension) mechanisms (API usage see /api/service)
About Yeowhttps://yexin.wiki/yeow/v1/advanced/aboutAbout Yeow
Writing Dependency Packageshttps://yexin.wiki/yeow/v1/package-authorEncapsulate shared logic and resources as npm dependency packages: assets namespace, dependency identification, build automation (multiple copy coexistence/permission merging/native manifest)
Encapsulating Service Packageshttps://yexin.wiki/yeow/v1/package-serviceThree types of Service encapsulation in dependency packages: SDK call encapsulation / JS service (global unique + degradation) / native service (child process), and "JS facade + native engine" combination pattern
Roadmaphttps://yexin.wiki/yeow/v1/todov1 directional planning: API/event coverage, debugging tools, Folia support; Worker API already implemented
Index (README)https://yexin.wiki/yeow/v1/Documentation homepage: Quick start commands, why use Yeow (engineering/thread separation/platform independence/native extension), comparison table, documentation and toolchain index
Changeloghttps://yexin.wiki/yeow/v1/changelogDate-based update records (from 2026-08-08)

API Reference (/v1/api/)

PageURLSummary
API Indexhttps://yexin.wiki/yeow/v1/api/Complete grouped index of all API modules
Playerhttps://yexin.wiki/yeow/v1/api/playerPlayer: Properties (health/hunger/experience/flying etc.), location, messages (Message object), Title/ActionBar, sounds, resource packs, teleport, permissions, performCommand, held items (ItemStack snapshot)
Serverhttps://yexin.wiki/yeow/v1/api/serverServer-level: Broadcast, MOTD (setMotd global default, ⚠ persists to server.properties), serverPing event writeback (per-ping override of motd/icon/player count, not persisted), version, TPS, max players
Envhttps://yexin.wiki/yeow/v1/api/envRuntime environment info (sync): CPU cores, memory, system architecture, Minecraft version, Yeow runtime info, epoch microsecond timestamp
Permissionhttps://yexin.wiki/yeow/v1/api/permissionPermissions: registerPermission (default: all/op/none), command permissions, check flow, permissionCheck Yeow ecosystem hook (priority/trigger scope/infinite loop reminder), Paper compatibility (permissions.yml/LuckPerms)
Worldhttps://yexin.wiki/yeow/v1/api/worldWorld: Time/weather/difficulty/rules, blocks (getBlock/setBlock, Block object), chunks, lighting, biomes, entity queries, drops/lightning/explosion/spawning
Chunkhttps://yexin.wiki/yeow/v1/api/chunkChunk snapshot (advanced performance tool): 3D complete snapshot and 2D top snapshot (short[] base64 zero-copy view + block index mapping)
Locationhttps://yexin.wiki/yeow/v1/api/locationCoordinates and orientation: x/y/z/yaw/pitch/world
Blockhttps://yexin.wiki/yeow/v1/api/blockUnified block concept: Data descriptor (type/state) + optional location; Static data semantics (snapshot); Material-level judgment delegated to Material; breakNaturally requires location
Materialhttps://yexin.wiki/yeow/v1/api/materialMaterial registry query (getMaterials/getBlocks/getItems) + Material-level static judgment object (isSolid/isAir, independent of coordinates/state)
Entityhttps://yexin.wiki/yeow/v1/api/entityEntity: Type/name/location, glowing/invulnerable/silent/gravity, passengers/vehicle, bounding box, health; LivingEntity
Potionhttps://yexin.wiki/yeow/v1/api/potionPotion effects: Add/remove/clear/query (type, duration, level)
Particlehttps://yexin.wiki/yeow/v1/api/particleParticle generation: Type, location, count, offset, color/block/item particles
Inventoryhttps://yexin.wiki/yeow/v1/api/inventoryUnified container: Player inventory / container blocks (Chest etc.) / custom Inventory (object-style API, click/close events carry inventoryId)
BossBarhttps://yexin.wiki/yeow/v1/api/bossbarBoss bar: Title/progress/color/style/visibility, player binding, Flag
Scoreboardhttps://yexin.wiki/yeow/v1/api/scoreboardScoreboard: Board, objectives (display slots/scores), teams (prefix/suffix/color/options/members)
Advancementhttps://yexin.wiki/yeow/v1/api/advancementAdvancements: Grant/revoke, advancement query, criteria grant/revoke
Recipehttps://yexin.wiki/yeow/v1/api/recipeRecipes: Shaped/shapeless crafting, furnace/blast smoker/campfire; Add/remove/query by product
Eventhttps://yexin.wiki/yeow/v1/api/eventEvent subscription: eventOn/eventOff, auto/manual mode (cancel, writeback), complete event field table, messages (Message object)
Commandhttps://yexin.wiki/yeow/v1/api/commandCommand registration + Tab completion (including yeow-command overload commands Command.create and patterned parameters)
ItemStackhttps://yexin.wiki/yeow/v1/api/itemItem pure data descriptor: type/amount/meta (display name/enchantment/durability/dye/potion/head/attribute modifiers); Construction tools (create/clone/equals); Value semantics (snapshot, not bound to real item)
Servicehttps://yexin.wiki/yeow/v1/api/serviceInter-plugin services (OOP Service object: registerService/getService/hasService/request/subscribe/publish/unregister) and native services (registerNativeService, spawn child process + TCP communication)
HTTPhttps://yexin.wiki/yeow/v1/api/httpUnderlying HTTP client: request (async, request/response body binary same semantics as fs, encoding/timeout optional), global fetch (text/json on-demand decoding + base64/bytes)
HTTP Serverhttps://yexin.wiki/yeow/v1/api/http-serverHigh-level createServer (yeow-server): Onion middleware, routing, mount/mountAssets static mounting, binary response (Uint8Array/encoding), return object auto JSON, resource pack download closed loop
Workerhttps://yexin.wiki/yeow/v1/api/workerVirtual plugins (independent thread): createWorker (register only, optional permissions.allow/deny)/load/unload/destroy/reload, bidirectional postMessage, Worker-side onMessage/postMessage; inherits main plugin permissions by default (allow cannot escalate), no nesting, /yeow doesn't cover
FShttps://yexin.wiki/yeow/v1/api/fsFile system: plugin/server/outer three levels (path safety), read/write/append/binary, directory operations, systemPaths, path tools
Assetshttps://yexin.wiki/yeow/v1/api/assetsPackaged resources: getAssetsPath (yeow-dev, build-time namespace injection) + read/extract (single file and directory)
PDChttps://yexin.wiki/yeow/v1/api/pdcPersistent data container: JSON auto serialization, full read, plugin namespace (cross-plugin no conflict), Player/Block instance methods
Utilhttps://yexin.wiki/yeow/v1/api/utilData tools: gzip compression/decompression, UTF-8 ↔ byte conversion (including chunked streaming Gzip)
Loghttps://yexin.wiki/yeow/v1/api/logLogging: log/Logger/console (auto plugin name prefix)
Texthttps://yexin.wiki/yeow/v1/api/textText and MiniMessage: Markup syntax, escape rules (real newline vs literal \n), Message object (translatable components {key,args,text})

Platform Specification (/v1/specifications/)

PageURLSummary
Specification Overviewhttps://yexin.wiki/yeow/v1/specifications/Protocol layer general: Package structure (yeow.json/.yeow/main.js/assets), loading flow, permission model, runtime architecture, task executor, event/command bridge, Native Service, qualified runtime checklist
Value Domain Appendixhttps://yexin.wiki/yeow/v1/specifications/valuesValue format rules (R1-R5) and checklist: Platform enums directly maintained (game mode/difficulty/BossBar/scoreboard/ClickType/ItemFlag/InventoryType etc.); Reference implementation (non-mandatory: DamageCause/teleport cause/health regen cause); Version change domain rules+links (blocks/items/entities/biomes/sounds/particles/enchantments/potions/attributes/damage types/game rules/translation keys/advancements/recipes)
Runtime Environment Standardhttps://yexin.wiki/yeow/v1/specifications/runtime/JS environment: Language standard (ES2025+SecU8), callback system (cb semantics), event loop, unload and forced termination (with an example flow), channel overview and permissions, global variables ($send/$dev/fetch/timers/performance)
Native Servicehttps://yexin.wiki/yeow/v1/specifications/native-service/Native child process protocol: platform selection (single file only), mandatory SHA-256 declaration, extraction, TCP framed protocol (header JSON + raw body, ready/request/response/publish)

Message Channels (/v1/specifications/message/)

PageURLSummary
Channel Overviewhttps://yexin.wiki/yeow/v1/specifications/message/Complete channel index (task/timer/fs/http/assets/lifecycle/log/env/debug/service/util/worker) + general channel explanation
Taskhttps://yexin.wiki/yeow/v1/specifications/message/tasktask channel: Game task request/response format, sync vs async (cb), error format
Timerhttps://yexin.wiki/yeow/v1/specifications/message/timerTimer channel: timeout/interval message format
FShttps://yexin.wiki/yeow/v1/specifications/message/fsfs channel: plugin/server/outer three levels, each operation (read/write/delete/list/base64/systemPaths) request format and path rules
HTTPhttps://yexin.wiki/yeow/v1/specifications/message/httphttp channel: listen/respond (body + encoding binary)/close/request/requestAsync message format
Assetshttps://yexin.wiki/yeow/v1/specifications/message/assetsassets channel: read/readBase64/extract/extractDir message format (namespace path)
Servicehttps://yexin.wiki/yeow/v1/specifications/message/serviceservice channel: Registration (plugin/native), query/unregister, request, subscribe/publish, native terminate callback
Loghttps://yexin.wiki/yeow/v1/specifications/message/loglog channel: Log message format
Lifecyclehttps://yexin.wiki/yeow/v1/specifications/message/lifecyclelifecycle channel: unloadDone confirmation, gc-collect resource reclamation
Debughttps://yexin.wiki/yeow/v1/specifications/message/debugdebug channel: reportError error reporting, ping-pong heartbeat
Utilhttps://yexin.wiki/yeow/v1/specifications/message/utilutil channel: gzip compression/decompression (one-time and streaming chunked), UTF-8 ↔ byte conversion (encode.utf8/decode.utf8)
Workerhttps://yexin.wiki/yeow/v1/specifications/message/workerworker channel: create (register only, optional permissions)/load/unload/destroy/post/reload/postToMain message format, lifecycle, origin error field, constraints (no nesting/shared data & resources/permissions can be tightened)

Task Types (/v1/specifications/task/)

PageURLSummary
Task Overviewhttps://yexin.wiki/yeow/v1/specifications/task/Complete task type index and request/return conventions
Playerhttps://yexin.wiki/yeow/v1/specifications/task/playerplayer.* tasks: Properties/location/messages (Message object format)/Title/sounds/resource packs/teleport/permissions/held items
Serverhttps://yexin.wiki/yeow/v1/specifications/task/serverserver.* tasks: Broadcast (Message), MOTD, version, TPS, max players; Material query
Worldhttps://yexin.wiki/yeow/v1/specifications/task/worldworld.* tasks: Time/weather/blocks (BlockData state)/chunks/lighting/biomes/entities/explosions/spawning; block.breakNaturally, material.* static judgment
Entityhttps://yexin.wiki/yeow/v1/specifications/task/entityentity.* tasks: Type/name/properties/location/bounding box/health/potion effects
Scoreboardhttps://yexin.wiki/yeow/v1/specifications/task/scoreboardscoreboard.* tasks: Board/Objective/Score/Team full operations
Recipehttps://yexin.wiki/yeow/v1/specifications/task/reciperecipe.* tasks: Recipe definition (shaped/shapeless/furnace series) and add/remove
PDChttps://yexin.wiki/yeow/v1/specifications/task/pdcpdc.* tasks: Entity/block persistent key-value data
Inventoryhttps://yexin.wiki/yeow/v1/specifications/task/inventory-guiinventory.* tasks (unified three addressing: player/container block/custom): Content operations, lifecycle, ItemStack complete format
Commandhttps://yexin.wiki/yeow/v1/specifications/task/commandcommand.* tasks: Registration/execution/completion (callback protocol)
Event Systemhttps://yexin.wiki/yeow/v1/specifications/task/event-systemevent.* tasks: subscribe/unsubscribe/complete (eventId matching); concurrent/serial mode
Advancementhttps://yexin.wiki/yeow/v1/specifications/task/advancementadvancement.* tasks: Grant/revoke/advancement query/criteria
BossBarhttps://yexin.wiki/yeow/v1/specifications/task/bossbarbossbar.* tasks: Create/destroy/title/progress/style/players

Events (/v1/specifications/event/)

PageURLSummary
Event Overviewhttps://yexin.wiki/yeow/v1/specifications/event/Complete event type index
Player Eventshttps://yexin.wiki/yeow/v1/specifications/event/player-eventsPlayer event fields: Join/quit/chat/move/interact/death (Message object)/respawn/drop/pickup/bucket/experience/level/game mode/advancement/sneak/fly/teleport/eat/resource pack
Entity Eventshttps://yexin.wiki/yeow/v1/specifications/event/entity-eventsEntity event fields: Damage/death/spawn/explosion/health regen/target/projectile
Block Eventshttps://yexin.wiki/yeow/v1/specifications/event/block-eventsBlock event fields: Break/place/fade/grow/spread/explosion
Inventory Eventshttps://yexin.wiki/yeow/v1/specifications/event/inventory-eventsInventory event fields: Open/close/click (slot/key/action)
Server Eventshttps://yexin.wiki/yeow/v1/specifications/event/server-eventsServer events: serverPing (writeback motd/icon/maxPlayers/numPlayers), serverCommand, resource pack status
Start: Overview · Quick Start · CLI Reference · Build & Distribution · Runtime Warning · Roadmap · Sitemap
Advanced (default collapsed): About Yeow · Advanced Index (architecture/scheduler/events/lifecycle/channels/service/operations & security)
Dependency Package Development: Writing Dependency Packages
API Reference: Index → Player & Server(Player/Server/Env) · World & Blocks(World/Chunk/Location/Block/Material) · Entity(Entity/Potion/Particle) · Interactive Interface(Inventory/BossBar/Scoreboard/Advancement/Recipe) · Events & Commands(Event/Command) · Items(ItemStack) · Services & Network(Service/HTTP/HTTP Server) · Multi-threading(Worker) · Files & Data(FS/Assets/PDC/Util) · Text(Text) · Logging(Log)
Platform Specification: Specification Overview → Message Channels · Task Types · Events · Runtime · Native Service