9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2026-01-03 14:22:14 +00:00
This commit is contained in:
XiaoMoMi
2024-04-13 17:06:21 +08:00
parent 6d5a379ceb
commit c7c6004300
9 changed files with 125 additions and 6 deletions

42
gui-plugin/.gitignore vendored Normal file
View File

@@ -0,0 +1,42 @@
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/
### IntelliJ IDEA ###
.idea/modules.xml
.idea/jarRepositories.xml
.idea/compiler.xml
.idea/libraries/
*.iws
*.iml
*.ipr
out/
!**/src/main/**/out/
!**/src/test/**/out/
### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
### VS Code ###
.vscode/
### Mac OS ###
.DS_Store

View File

@@ -0,0 +1,13 @@
dependencies {
compileOnly("io.papermc.paper:paper-api:1.20.4-R0.1-SNAPSHOT")
compileOnly(project(":api"))
implementation("xyz.xenondevs.invui:invui:1.27") {
exclude("org.jetbrains")
}
}
tasks {
shadowJar {
relocate ("xyz.xenondevs", "net.momirealms.customcrops.libraries")
}
}

View File

@@ -0,0 +1,21 @@
package net.momirealms.customcrops.gui;
import org.bukkit.plugin.java.JavaPlugin;
public class CustomCropsGUI extends JavaPlugin {
private static CustomCropsGUI instance;
@Override
public void onEnable() {
instance = this;
}
@Override
public void onDisable() {
}
public static CustomCropsGUI getInstance() {
return instance;
}
}

View File

@@ -0,0 +1,16 @@
package net.momirealms.customcrops.gui;
import net.momirealms.customcrops.api.event.PotInteractEvent;
import org.bukkit.Material;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
public class GUIManager implements Listener {
@EventHandler (ignoreCancelled = true)
public void onInteractPot(PotInteractEvent event) {
if (event.getItemInHand().getType() != Material.AIR)
return;
}
}

View File

View File

@@ -0,0 +1,9 @@
name: CustomCrops
version: '${version}'
main: net.momirealms.customcrops.gui.CustomCropsGUI
api-version: 1.17
load: POSTWORLD
authors: [ XiaoMoMi ]
folia-supported: true
depend:
- CustomCrops