mirror of
https://github.com/Xiao-MoMi/Custom-Nameplates.git
synced 2025-12-26 10:29:09 +00:00
75 lines
2.0 KiB
Markdown
75 lines
2.0 KiB
Markdown
# Custom-Nameplates
|
|
|
|

|
|
[](https://jitpack.io/#Xiao-MoMi/Custom-Nameplates)
|
|
<a href="https://mo-mi.gitbook.io/xiaomomi-plugins/plugin-wiki/customnameplates" alt="GitBook">
|
|
<img src="https://img.shields.io/badge/docs-gitbook-brightgreen" alt="Gitbook"/>
|
|
</a>
|
|
[](https://github.com/Xiao-MoMi/Custom-Nameplates/)
|
|

|
|

|
|

|
|

|
|
|
|
## How to build
|
|
|
|
#### Command Line
|
|
Install JDK 17 & 21. \
|
|
Start terminal and change directory to the project folder.\
|
|
Execute ".\gradlew build" and get the artifact under /target folder
|
|
|
|
#### IDE
|
|
Import the project and execute gradle build action. \
|
|
Get the artifact under /target folder
|
|
|
|
## Support the developer
|
|
|
|
Polymart: https://polymart.org/resource/customnameplates.2543 \
|
|
Afdian: https://afdian.com/@xiaomomi
|
|
|
|
## CustomNameplates API
|
|
|
|
### Maven
|
|
|
|
```html
|
|
<repositories>
|
|
<repository>
|
|
<id>jitpack</id>
|
|
<url>https://jitpack.io/</url>
|
|
</repository>
|
|
</repositories>
|
|
```
|
|
```html
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>com.github.Xiao-MoMi</groupId>
|
|
<artifactId>Custom-Nameplates</artifactId>
|
|
<version>{VERSION}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
```
|
|
### Gradle (Groovy)
|
|
|
|
```groovy
|
|
repositories {
|
|
maven { url 'https://jitpack.io' }
|
|
}
|
|
```
|
|
```groovy
|
|
dependencies {
|
|
compileOnly 'com.github.Xiao-MoMi:Custom-Nameplates:{VERSION}'
|
|
}
|
|
```
|
|
### Gradle (Kotlin)
|
|
|
|
```kotlin
|
|
repositories {
|
|
maven("https://jitpack.io/")
|
|
}
|
|
```
|
|
```kotlin
|
|
dependencies {
|
|
compileOnly("com.github.Xiao-MoMi:Custom-Nameplates:{VERSION}")
|
|
}
|
|
``` |