RS Integration License

Copyright (c) 2026 Huanghuang. All rights reserved.

## 1. Main Project License

The source code, original assets, documentation, and other original portions
of RS Integration are proprietary works owned by the copyright holder.

Permission is granted to:

1. download, install, run, and use official, unmodified binary releases of
   RS Integration for gameplay on private or public Minecraft servers,
   provided that server access is not sold specifically as access to
   RS Integration;
2. include official, unmodified binary releases of RS Integration in public
   modpacks, including modpacks distributed through CurseForge, Modrinth, FTB,
   or similar platforms, provided that recipients are not required to pay
   specifically for access to RS Integration and the mod binary is not sold as
   a separate product;
3. record, stream, publish, and monetize gameplay content that features RS
   Integration, including through platform advertising, subscriptions, and
   donations, provided that the content is not primarily a redistribution of
   the mod binary or a standalone mirror of its assets.

Modpack authors and content creators may receive ordinary platform
monetization or donations under this section. These permissions do not imply
endorsement, do not permit modified builds, and do not permit removing
copyright, license, or attribution notices from official RS Integration files.

No permission is granted to copy, modify, publish, sublicense, sell, reverse
engineer, or redistribute the source code, original assets, modified binaries,
or standalone mirrors of this software without prior written permission from
the copyright holder.

## 2. Public API Interoperability License

This section applies only to the RS Integration Public API identified below.
It does not change the license of the RS Integration mod as a whole, its
implementation, original assets, or any third-party component. Those remain
subject to Section 1 and the applicable third-party licenses.

### 2.1 Licensed API

"Licensed API" means the following public Java API packages distributed with
RS Integration:

```text
com.huanghuang.rsintegration.api
com.huanghuang.rsintegration.api.recipe
com.huanghuang.rsintegration.api.machine
com.huanghuang.rsintegration.api.execution
com.huanghuang.rsintegration.api.resonance
com.huanghuang.rsintegration.api.consumer
com.huanghuang.rsintegration.api.diagnostic
```

This section does not apply to any type marked
`org.jetbrains.annotations.ApiStatus.Internal`, any implementation class, any
network packet, or any package not listed above.

### 2.2 Grant

Subject to this license, you are granted a non-exclusive, worldwide,
royalty-free permission to:

1. compile your own mod, tool, or integration against an official, unmodified
   RS Integration release;
2. call the Licensed API at runtime;
3. publish and distribute your own mod or integration that uses the Licensed
   API;
4. reproduce the minimal API names and signatures necessary for your own
   source code or compiled binaries to use the Licensed API.

You may state that your project is compatible with RS Integration, provided
that the statement is accurate and does not imply endorsement by the
RS Integration author.

### 2.3 Conditions

You must not:

1. copy, publish, sublicense, or redistribute RS Integration source code or
   non-public implementation code;
2. redistribute modified RS Integration binaries or a standalone mirror of
   RS Integration;
3. copy or redistribute RS Integration assets except as unavoidable and
   non-substantial references required by normal API interoperability;
4. remove copyright, license, or attribution notices from official RS
   Integration files;
5. represent your project as an official RS Integration release without
   written permission.

Your own mod or integration remains your own work and may be distributed under
your own license. This section does not grant rights to RS Integration beyond
those expressly stated in Section 2.2.

### 2.4 Termination

This permission terminates automatically if you materially violate this
license and do not cure the violation within 30 days after receiving written
notice. After termination, you must stop using and distributing the Licensed
API. End users may continue using already obtained official RS Integration
releases under Section 1.

### 2.5 API Compatibility

The version and compatibility rules published in the RSI API documentation
describe the current compatibility policy. They are not a warranty of
indefinite support, a promise to backport fixes, or an obligation to maintain
every prior API version.

RSI may introduce incompatible API changes in a new major version as described
by that policy. Consumers of the Licensed API are responsible for checking the
available API version at runtime and adapting their integrations when they
choose to upgrade RS Integration. Nothing in this section revokes rights
already granted for an official release that a consumer continues to use.

## 3. Third-Party Components

This license does not apply to third-party components bundled with or referenced
by RS Integration. Those components remain subject to their respective licenses,
which are included in binary releases under META-INF/licenses/.

This project license does not relicense any third-party component and does not
guarantee that every optional dependency is compatible with every distribution
model. Anyone distributing RS Integration, a modpack containing it, or an
integration for it is responsible for complying with the applicable
third-party licenses.

## 4. Contributions

Code, documentation, assets, and other material intentionally submitted for
inclusion in RS Integration are accepted only under the contributor terms in
`CONTRIBUTING.md`, including the Contributor License Agreement.

Do not submit third-party code unless its origin and license are clearly
identified and compatible with the project's distribution model.

## 5. Disclaimer

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY ARISING
FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE, THE LICENSED API, OR THEIR
USE.
