You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can then include the dependency in your project.
44
44
45
45
```xml
46
+
46
47
<dependency>
47
48
<groupId>net.hypixel</groupId>
48
49
<artifactId>mod-api</artifactId>
@@ -56,7 +57,8 @@ dependencies {
56
57
}
57
58
```
58
59
59
-
Depending on your chosen mod loader, you will need to also include the `hypixel-mod-api` as a required dependency. For example in Fabric you would include the following in your `fabric.mod.json` file.
60
+
Depending on your chosen mod loader, you will need to also include the `hypixel-mod-api` as a required dependency. For
61
+
example in Fabric you would include the following in your `fabric.mod.json` file.
60
62
61
63
```json
62
64
{
@@ -68,7 +70,8 @@ Depending on your chosen mod loader, you will need to also include the `hypixel-
68
70
69
71
## Example Usage
70
72
71
-
Once you have the API added to your project you can start using it. Below are examples of sending server-bound packets, as well as receiving client-bound packets.
73
+
Once you have the API added to your project you can start using it. Below are examples of sending server-bound packets,
74
+
as well as receiving client-bound packets.
72
75
73
76
### Sending a Hypixel Packet
74
77
@@ -95,12 +98,19 @@ public class Example {
95
98
96
99
### Subscribing to a packet event
97
100
98
-
If you wish to receive a specific event packet, you will need to subscribe to the event. Once subscribed you can register a packet handler as normal (see example above).
101
+
If you wish to receive a specific event packet, you will need to subscribe to the event. Once subscribed you can
102
+
register a packet handler as normal (see example above).
0 commit comments