Added ResourcePack related packets, along with sending and recieving them, and added PlayerResourcePackStatusEvent to simplify reading the incoming packets for plugins.

This commit is contained in:
GamerDuck123
2021-11-15 21:02:12 -05:00
parent d460ca735b
commit 92a4a85b50
11 changed files with 257 additions and 0 deletions
@@ -0,0 +1,22 @@
package com.loohp.limbo.events.player;
import com.loohp.limbo.player.Player;
import com.loohp.limbo.server.packets.PacketPlayInResourcePackStatus.EnumResourcePackStatus;
public class PlayerResourcePackStatusEvent extends PlayerEvent {
private Player player;
private EnumResourcePackStatus status;
public PlayerResourcePackStatusEvent(Player player, EnumResourcePackStatus status) {
super(player);
}
public Player getPlayer() {
return player;
}
public EnumResourcePackStatus getStatus() {
return status;
}
}