Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.

Commit 87105d4

Browse files
Initial commit
0 parents  commit 87105d4

14 files changed

+512
-0
lines changed

.idea/.gitignore

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/artifacts/HanGuiAPI_jar.xml

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/compiler.xml

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/encodings.xml

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jarRepositories.xml

+30
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

+19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/uiDesigner.xml

+124
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

HanGuiAPI.iml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module version="4">
3+
<component name="FacetManager">
4+
<facet type="minecraft" name="Minecraft">
5+
<configuration>
6+
<autoDetectTypes>
7+
<platformType>SPIGOT</platformType>
8+
</autoDetectTypes>
9+
</configuration>
10+
</facet>
11+
</component>
12+
</module>

README.MD

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
What is this project?
2+
HanGuiBuilder is a Minecraft Spigot plugin API that is designed for developers. It simplifies the process of building GUIs and assigning commands to items within them, and is compatible with all versions of Minecraft.
3+
4+
Example:
5+
```
6+
new HanGuiBuilder(HanGuiBuilder.Size.THREE, "&b&lExample Gui", this).setAccessibleOnDragItems(false).addPlayer(event.getPlayer()).
7+
addItem(1, new GuiItem(new ItemStack(Material.GRASS), (p,g) -> {
8+
9+
p.sendMessage(ChatColor.GREEN+"You touched the grass!");
10+
g.getPlugin().getServer().broadcastMessage(""+p.getName()+" touched the grass!");
11+
12+
})).open();
13+
```

pom.xml

+87
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>tech.bingulhan</groupId>
8+
<artifactId>HanGuiAPI</artifactId>
9+
<version>1.0-SNAPSHOT</version>
10+
<packaging>jar</packaging>
11+
12+
<name>HanGuiAPI</name>
13+
14+
<description>Exp gui api</description>
15+
<properties>
16+
<java.version>1.8</java.version>
17+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
18+
</properties>
19+
20+
<build>
21+
<plugins>
22+
<plugin>
23+
<groupId>org.apache.maven.plugins</groupId>
24+
<artifactId>maven-compiler-plugin</artifactId>
25+
<version>3.8.1</version>
26+
<configuration>
27+
<source>${java.version}</source>
28+
<target>${java.version}</target>
29+
</configuration>
30+
</plugin>
31+
<plugin>
32+
<groupId>org.apache.maven.plugins</groupId>
33+
<artifactId>maven-shade-plugin</artifactId>
34+
<version>3.2.4</version>
35+
<executions>
36+
<execution>
37+
<phase>package</phase>
38+
<goals>
39+
<goal>shade</goal>
40+
</goals>
41+
<configuration>
42+
<createDependencyReducedPom>false</createDependencyReducedPom>
43+
</configuration>
44+
</execution>
45+
</executions>
46+
</plugin>
47+
</plugins>
48+
<resources>
49+
<resource>
50+
<directory>src/main/resources</directory>
51+
<filtering>true</filtering>
52+
</resource>
53+
</resources>
54+
</build>
55+
56+
<repositories>
57+
<repository>
58+
<id>spigotmc-repo</id>
59+
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
60+
</repository>
61+
<repository>
62+
<id>sonatype</id>
63+
<url>https://oss.sonatype.org/content/groups/public/</url>
64+
</repository>
65+
</repositories>
66+
67+
<dependencies>
68+
<dependency>
69+
<groupId>org.spigotmc</groupId>
70+
<artifactId>spigot-api</artifactId>
71+
<version>1.16.5-R0.1-SNAPSHOT</version>
72+
<scope>provided</scope>
73+
</dependency>
74+
<dependency>
75+
<groupId>org.projectlombok</groupId>
76+
<artifactId>lombok</artifactId>
77+
<version>1.18.26</version>
78+
<scope>compile</scope>
79+
</dependency>
80+
<dependency>
81+
<groupId>org.jetbrains</groupId>
82+
<artifactId>annotations</artifactId>
83+
<version>RELEASE</version>
84+
<scope>compile</scope>
85+
</dependency>
86+
</dependencies>
87+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package tech.bingulhan.hanguiapi.gui;
2+
3+
import org.bukkit.entity.Player;
4+
5+
/**
6+
* @author BingulHan
7+
*/
8+
public interface ClickAttraction {
9+
10+
void execute(Player player, HanGuiBuilder guiBuilder);
11+
12+
}

0 commit comments

Comments
 (0)