-
Notifications
You must be signed in to change notification settings - Fork 98
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
6445c90
commit 1214a70
Showing
15 changed files
with
359 additions
and
256 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
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,7 @@ | ||
import lambdynamiclights.Constants | ||
|
||
plugins { | ||
id("lambdynamiclights") | ||
} | ||
|
||
base.archivesName.set(Constants.NAME + "-api") |
24 changes: 24 additions & 0 deletions
24
api/src/main/java/dev/lambdaurora/lambdynlights/api/DynamicLightsInitializer.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,24 @@ | ||
/* | ||
* Copyright © 2020 LambdAurora <[email protected]> | ||
* | ||
* This file is part of LambDynamicLights. | ||
* | ||
* Licensed under the Lambda License. For more information, | ||
* see the LICENSE file. | ||
*/ | ||
|
||
package dev.lambdaurora.lambdynlights.api; | ||
|
||
/** | ||
* Represents the entrypoint for LambDynamicLights API. | ||
* | ||
* @author LambdAurora | ||
* @version 3.0.0 | ||
* @since 1.3.2 | ||
*/ | ||
public interface DynamicLightsInitializer { | ||
/** | ||
* Called when LambDynamicLights is initialized to register custom dynamic light handlers and item light sources. | ||
*/ | ||
void onInitializeDynamicLights(); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget | ||
|
||
plugins { | ||
`java-gradle-plugin` | ||
`kotlin-dsl` | ||
} | ||
|
||
val javaVersion = 21 | ||
|
||
repositories { | ||
gradlePluginPortal() | ||
maven { | ||
name = "Fabric" | ||
url = uri("https://maven.fabricmc.net/") | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation(libs.gradle.licenser) | ||
implementation(libs.gradle.loom) | ||
implementation(libs.mappingio) | ||
|
||
// A bit of a hack you definitely should not worry about. | ||
// https://github.com/gradle/gradle/issues/15383#issuecomment-779893192 | ||
implementation(files(libs.javaClass.superclass.protectionDomain.codeSource.location)) | ||
} | ||
|
||
java { | ||
sourceCompatibility = JavaVersion.toVersion(javaVersion) | ||
targetCompatibility = JavaVersion.toVersion(javaVersion) | ||
} | ||
|
||
kotlin { | ||
compilerOptions { | ||
jvmTarget = JvmTarget.fromTarget(javaVersion.toString()) | ||
} | ||
} |
Oops, something went wrong.