How betteraltaybedrock/betteraltay works
BetterAltay is a PHP server for Minecraft: Bedrock Edition, with community API3 plugin support. Its principal workflow is a Bedrock client connecting to the server, participating as a player in a simulated world, and receiving gameplay updates; server operators and plugins extend that runtime through commands and events. The tree shows distinct world generation, chunk/block, entity, inventory, and resource-pack capabilities. Only a few implementation excerpts were supplied, so the graph uses paths and subsystem boundaries evidenced by the tree and avoids asserting detailed call wiring that those excerpts cannot establish.
Main entry points: Server.php Server coordinator · level World management · Player.php Player session · CommandMap.php Command dispatch
Components 17
Server runtime
- Server coordinator
src/pocketmine/Server.php - Server entry
src/pocketmine/PocketMine.php - Player session
src/pocketmine/Player.php - Query protocol
src/pocketmine/network/query/QueryHandler.php
World simulation
- World management
src/pocketmine/level - World generation
src/pocketmine/level/generator/GeneratorManager.php - Chunk access
src/pocketmine/level/SimpleChunkManager.php - Block catalog
src/pocketmine/block/BlockFactory.php
Gameplay systems
- Entities and AI
src/pocketmine/entity/Entity.php - Inventory and crafting
src/pocketmine/inventory/CraftingManager.php - Map data
src/pocketmine/maps/MapManager.php
Extensions and operations
- Command dispatch
src/pocketmine/command/CommandMap.php - Event system
src/pocketmine/event/Event.php - Plugin lifecycle
src/pocketmine/plugin/PluginManager.php - Permissions
src/pocketmine/permission/PermissionManager.php - Resource packs
src/pocketmine/resourcepacks/ResourcePackManager.php
Other components
- Bedrock client
Connections 18
- Server entry → Server coordinator: starts
- Bedrock client → Player session: connects as
- Server coordinator → Player session: manages sessions
- Server coordinator → Query protocol: serves query
- Server coordinator → World management: manages worlds
- World management → World generation: selects generator
- World management → Chunk access: accesses chunks
- Chunk access → Block catalog: stores block state
- World management → Entities and AI: simulates entities
- Player session → Inventory and crafting: uses inventory
- Server coordinator → Map data: saves map data
- Player session → Command dispatch: issues commands
- Command dispatch → Event system: dispatches events
- Server coordinator → Plugin lifecycle: manages plugins
- Plugin lifecycle → Event system: registers handlers
- Plugin lifecycle → Command dispatch: registers commands
- Command dispatch → Permissions: checks access
- Server coordinator → Resource packs: loads packs