-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
939c48b
commit b88ff2c
Showing
39 changed files
with
284 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# ModelRenderer | ||
# BetterModel | ||
This plugin is still on developing! | ||
|
||
### TODO | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,59 @@ | ||
import com.vanniktech.maven.publish.JavaLibrary | ||
import com.vanniktech.maven.publish.JavadocJar | ||
import com.vanniktech.maven.publish.SonatypeHost | ||
|
||
plugins { | ||
id("com.vanniktech.maven.publish") version "0.30.0" | ||
signing | ||
} | ||
|
||
java { | ||
withSourcesJar() | ||
withJavadocJar() | ||
} | ||
|
||
signing { | ||
useGpgCmd() | ||
} | ||
|
||
dependencies { | ||
compileOnly("org.projectlombok:lombok:1.18.34") | ||
annotationProcessor("org.projectlombok:lombok:1.18.34") | ||
compileOnly("org.projectlombok:lombok:1.18.36") | ||
annotationProcessor("org.projectlombok:lombok:1.18.36") | ||
|
||
testCompileOnly("org.projectlombok:lombok:1.18.36") | ||
testAnnotationProcessor("org.projectlombok:lombok:1.18.36") | ||
} | ||
|
||
testCompileOnly("org.projectlombok:lombok:1.18.34") | ||
testAnnotationProcessor("org.projectlombok:lombok:1.18.34") | ||
mavenPublishing { | ||
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL) | ||
signAllPublications() | ||
coordinates("io.github.toxicity188", rootProject.name, project.version as String) | ||
configure(JavaLibrary( | ||
javadocJar = JavadocJar.None(), | ||
sourcesJar = true, | ||
)) | ||
pom { | ||
name = rootProject.name | ||
description = "cross-platform command library implementing brigadier, adventure." | ||
inceptionYear = "2024" | ||
url = "https://github.com/toxicity188/BetterModel/" | ||
licenses { | ||
license { | ||
name = "MIT License" | ||
url = "https://mit-license.org/" | ||
} | ||
} | ||
developers { | ||
developer { | ||
id = "toxicity188" | ||
name = "toxicity188" | ||
url = "https://github.com/toxicity188/" | ||
} | ||
} | ||
scm { | ||
url = "https://github.com/toxicity188/BetterModel/" | ||
connection = "scm:git:git://github.com/toxicity188/BetterModel.git" | ||
developerConnection = "scm:git:ssh://git@github.com/toxicity188/BetterModel.git" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
api/src/main/java/kr/toxicity/model/api/manager/ConfigManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package kr.toxicity.model.api.manager; | ||
|
||
import org.bukkit.Material; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public interface ConfigManager { | ||
boolean metrics(); | ||
boolean sightTrace(); | ||
@NotNull Material item(); | ||
double maxSight(); | ||
double minSight(); | ||
} |
10 changes: 10 additions & 0 deletions
10
api/src/main/java/kr/toxicity/model/api/manager/ModelManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,27 @@ | ||
package kr.toxicity.model.api.manager; | ||
|
||
import kr.toxicity.model.api.data.renderer.BlueprintRenderer; | ||
import kr.toxicity.model.api.tracker.EntityTracker; | ||
import org.bukkit.entity.Entity; | ||
import org.jetbrains.annotations.NotNull; | ||
import org.jetbrains.annotations.Nullable; | ||
import org.jetbrains.annotations.Unmodifiable; | ||
|
||
import java.util.List; | ||
import java.util.Set; | ||
import java.util.UUID; | ||
|
||
public interface ModelManager extends GlobalManager { | ||
@Nullable BlueprintRenderer renderer(@NotNull String name); | ||
@NotNull @Unmodifiable | ||
List<BlueprintRenderer> renderers(); | ||
@NotNull @Unmodifiable | ||
Set<String> keys(); | ||
|
||
default @Nullable EntityTracker tracker(@NotNull Entity entity) { | ||
return EntityTracker.tracker(entity); | ||
} | ||
default @Nullable EntityTracker tracker(@NotNull UUID uuid) { | ||
return EntityTracker.tracker(uuid); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.