add missing copyright attribution for MouseUtils.java

This commit is contained in:
Robin Bärtschi 2024-06-27 14:52:45 +02:00
parent ba7a6bc7b6
commit f78e208a95
3 changed files with 11 additions and 2 deletions

View File

@ -10,4 +10,6 @@ Other Licenses:
- environmenttech - environmenttech
- client - client
- renderer - renderer
- EnvStorageRenderer = Blu's License of Common Sense - EnvStorageRenderer.java = Blu's License of Common Sense
- utils
- MouseUtils.java = MIT

View File

@ -62,7 +62,8 @@ spotless {
java { java {
// Originally, this was from Kaupenjoe's repo, and was licensed by BluSunrize as the original code was from her, so we exclude it to not add our License Header // Originally, this was from Kaupenjoe's repo, and was licensed by BluSunrize as the original code was from her, so we exclude it to not add our License Header
targetExclude("src/main/java/robaertschi/environmenttech/client/renderer/EnvStorageRenderer.java") targetExclude("src/main/java/robaertschi/environmenttech/client/renderer/EnvStorageRenderer.java",
"src/main/java/robaertschi/environmenttech/utils/MouseUtils.java")
importOrder("lombok", "java|javax", "", "net.minecraft", "com.mojang", "robaertschi", "\\#") importOrder("lombok", "java|javax", "", "net.minecraft", "com.mojang", "robaertschi", "\\#")
removeUnusedImports() removeUnusedImports()
licenseHeaderFile("HEADER.java") licenseHeaderFile("HEADER.java")

View File

@ -1,5 +1,11 @@
package robaertschi.environmenttech.utils; package robaertschi.environmenttech.utils;
/**
* This file is from <a href="https://github.com/Tutorials-By-Kaupenjoe/Forge-Tutorial-1.19/">here</a>.
* So all credits go to Kaupenjoe. The code is under the following license: <a href="https://github.com/Tutorials-By-Kaupenjoe/Forge-Tutorial-1.19/blob/main/LICENSE">here</a>
* @author Kaupenjoe
*/
public class MouseUtils { public class MouseUtils {
@SuppressWarnings("unused") @SuppressWarnings("unused")
public static boolean isMouseOver(double mouseX, double mouseY, int x, int y) { public static boolean isMouseOver(double mouseX, double mouseY, int x, int y) {