How obsidianmc/obsidian works
Main Components
a. Core Server Infrastructure:
• Server Core (Server.cs)
• Network Layer (Net directory)
• World Management System (WorldData directory)
• Plugin System (Plugins directory)
b. Client Handling:
• Client Connections
• Packet Processing
• State Management (Login, Play, Configuration states)
c. Game Systems:
• Entity Management
• World Generation
• Block Updates
• Inventory System
• Command System
┌─ External Interface Layer ─────────────────────┐
• Minecraft Client Connections │
• RCON Interface │
• Plugin API │
• Network Protocol Layer ──────────────────────┤
• Packet Handling │
• Encryption │
• State Management │
• Core Game Systems ───────────────────────────┤
• World Management │
• Entity System │
• Physics Engine │
• Command Processing │
• Data & Storage Layer ──────────────────────┤
• World Data │
• Player Data │
• Configuration │
• ┘
Connection Types
Different types of connections:
Key Components to Highlight
a. Server Core:
• Connection management
• Game loop
• Event dispatch system
b. Network Layer:
• Packet serialization/deserialization
• Protocol version handling
• State management (Login/Play/etc.)
c. World System:
• Chunk management
• World generation
• Physics simulation
d. Plugin Framework:
• Plugin loading/unloading
• Event system
• API interfaces
Implementation Details
Use symbols to indicate:
• Interfaces (diamond)
• Abstract classes (hexagon)
• Concrete implementations (rectangle)
• Services (circle)