Skip to content

Previous: READMEใ€€ยทใ€€Next: Installation

๐Ÿ“– Overview โ€‹

๐Ÿงญ One-Sentence Positioning โ€‹

QinhCoreLib (QCL for short) is the core foundation / platform library of the "Qinhuai Ecosystem". It does not implement any specific gameplay itself; instead, it provides a complete set of unified capabilities to upper-layer gameplay plugins and third-party plugins: item sources, economy, scripts, databases, PDC (persistent data), placeholders, GUIs, action contracts, bridge status, and diagnostics.

Main class: com.qinhuai.corelib.QinhCoreLibใ€€ยทใ€€Version: 1.2.0

๐Ÿ’ก One-sentence understanding: QCL is the "utilities (water/electricity/gas)", while QI/QS/QF/QSt are the "houses" built on top of it. Installing QCL alone adds no gameplay, but without it, not a single Qinhuai gameplay plugin can run.


๐Ÿ—๏ธ Its Place in the Ecosystem โ€‹

QCL sits at the very bottom of the ecosystem. All Qinhuai gameplay plugins hard-depend on it, while third-party plugins are "pulled in" and used uniformly through the bridges it provides.

        โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
        โ”‚   QI Items โ”‚  QS Skills โ”‚  QF Forge โ”‚  QSt Strengthen โ”‚  QCR   โ”‚   โ† Gameplay layer (hard-depends on QCL)
        โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                              โ”‚  hard dependency
                              โ–ผ
        โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
        โ”‚              QinhCoreLib (QCL)               โ”‚   โ† Foundation layer
        โ”‚  item source ยท economy ยท script ยท database ยท PDC ยท placeholder  โ”‚
        โ”‚       GUI ยท action contract ยท bridge status ยท diagnostics        โ”‚
        โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                              โ”‚  soft dependency (reflection bridge, auto-skipped if not installed)
                              โ–ผ
        โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
        โ”‚  Vault ยท PlaceholderAPI ยท ModelEngine ยท ...   โ”‚   โ† Third-party layer
        โ”‚  MMOItems ยท NeigeItems ยท ItemsAdder ยท Nexo... โ”‚
        โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ”— Relationship with Modules / Third Parties โ€‹

Relationship TypeTargetDescription
Hard dependency (QCL required)QinhItems(QI), QinhSkills(QS), QinhForge(QF), QinhStrengthen(QSt), QCRThese gameplay plugins cannot load without QCL
Soft dependency (bridged only if installed)Vault, ExcellentEconomy, PlayerPoints, PlaceholderAPI, ModelEngine, CustomCrops, CustomFishing, MythicMobs, NeigeItems, MMOItems, CraftEngine, QinhItems, MagicGem, ItemsAdder, NexoAll reflection bridges; auto-skipped if not installed, no errors
Collaboration contractQI โ†” QSQI's item actions hand skill casting over to QS via QCL's QISkillUseEvent / QinhActionHandler (handlerId qinhskills:cast)

For each module's disk paths and division of responsibilities, see the ecosystem overview document. This series of docs only covers QCL itself.


โœ… What It Can Do (Typical Scenarios) โ€‹

CapabilityScenario ExampleSee
๐Ÿ—ก๏ธ Native attribute systemA full attribute & damage system without any attribute plugin (attack / crit / defense / dodge / elements), with custom attributes (yml + JS scripts)Attribute System
๐ŸŽฏ Unified item sourceUnifies items from 10 sources such as MythicMobs, MMOItems, ItemsAdder, Nexo, and QI into a single set of reference strings (e.g. mm-้พ™ๅ‰‘, mi-SWORD-็ƒˆ็„ฐๅ‰‘, qi:็ฅžๅ‰‘), which any sub-plugin can copy and use directlyItem Source Reference
๐Ÿ’ฐ Cross-plugin economyOne economy API simultaneously compatible with Vault / ExcellentEconomy / PlayerPoints, so sub-plugins don't each need their own adaptersEconomy Actions
๐Ÿ–ผ๏ธ Custom GUIDraw interfaces with YAML in the guis/ directory, configure actions and conditions, no code neededCustom GUI
๐Ÿ“œ Scripting capabilityBuilt-in GraalJS / Groovy script engines for writing diagnostics, actions, and external item modulesScripting Getting Started
๐Ÿฉบ Diagnostics & troubleshootingA single /qcl status reveals the entire ecosystem's health status, bridge situation, and health codesDiagnostics & Troubleshooting
๐Ÿงฑ Custom blocksA unified block abstraction, bridging ModelEngine / CraftEngine, etc.Custom Blocks

๐Ÿšซ What It Doesn't Do โ€‹

QCL is a platform library, deliberately leaving "gameplay" to upper-layer plugins. The following are things it does not do at all:

Doesn't DoWho Does It
โŒ Doesn't design specific gameplay numbers (how much each item grants, how skills deal damage)Decided by gameplay modules like QI / QS (QCL provides the attribute pipeline & native resolution; AttributePlus etc. are optional backends)
โŒ Doesn't define the item core (how an item's attributes, lore entries, and crafting are calculated)QinhItems(QI)
โŒ Doesn't implement skill logicQinhSkills(QS)
โŒ Doesn't implement forging / strengthening gameplayQinhForge(QF) / QinhStrengthen(QSt)

๐Ÿงฉ Design principle: QCL only provides "capability contracts" and "unified pipelines"; it doesn't make decisions for the gameplay. This ensures each gameplay plugin can evolve independently without being locked to the foundation.


๐Ÿ—บ๏ธ Which Chapter Should I Read? โ€‹

Who You Are / What You WantRecommended Reading
๐Ÿ†• Just got the jar, want to run it firstInstallation โ†’ Quick Start
๐Ÿง  Want to understand its overall designCore Concepts
๐Ÿ› ๏ธ Server owner: config / commands / item sources / GUIThe whole 02-Server Owner Guide chapter
๐Ÿ› Something broke, need to troubleshootDiagnostics & Troubleshooting, Diagnostic Codes
๐Ÿ”Œ Want to integrate external plugins03-External Plugin Integration
๐Ÿ‘จโ€๐Ÿ’ป Developer: call API / write scriptsThe whole 04-Developers chapter
โ“ Don't understand a term / common questionsGlossary, FAQ

๐Ÿ“š Continue Reading โ€‹

  • Next: Installation โ€” Environment requirements and installation steps
  • Core Concepts โ€” Modules, bridges, item sources, diagnostics, API boundaries
  • Quick Start โ€” The first thing to do after installation