Skip to content

Commit ac49ae2

Browse files
committed
Update README.md with 0.5.0 changes
1 parent b0f3658 commit ac49ae2

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

README.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ You can then include the dependency in your project.
4646
<dependency>
4747
<groupId>net.hypixel</groupId>
4848
<artifactId>mod-api</artifactId>
49-
<version>0.4.0</version>
49+
<version>0.5.0</version>
5050
</dependency>
5151
```
5252

5353
```gradle
5454
dependencies {
55-
implementation 'net.hypixel:mod-api:0.4.0'
55+
implementation 'net.hypixel:mod-api:0.5.0'
5656
}
5757
```
5858

@@ -61,7 +61,7 @@ Depending on your chosen mod loader, you will need to also include the `hypixel-
6161
```json
6262
{
6363
"depends": {
64-
"hypixel-mod-api": ">=0.4.0"
64+
"hypixel-mod-api": ">=0.5.0"
6565
}
6666
}
6767
```
@@ -75,7 +75,7 @@ Once you have the API added to your project you can start using it. Below are ex
7575
```java
7676
public class Example {
7777
public void sendPacket() {
78-
HypixelModAPI.getInstance().sendPacket(new ServerboundLocationPacket());
78+
HypixelModAPI.getInstance().sendPacket(new ServerboundPartyInfoPacket());
7979
}
8080
}
8181
```
@@ -86,11 +86,8 @@ public class Example {
8686

8787
public class Example {
8888
public void registerPacketHandler() {
89-
HypixelModAPI.getInstance().registerHandler(new ClientboundPacketHandler() {
90-
@Override
91-
public void onLocationPacket(ClientboundLocationPacket packet) {
92-
packet.getServerName();
93-
}
89+
HypixelModAPI.getInstance().registerHandler(ClientboundLocationPacket.class, packet -> {
90+
packet.getServerName();
9491
});
9592
}
9693
}

0 commit comments

Comments
 (0)