This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public abstract class AbstractPacket { | |
| // The packet we will be modifying | |
| protected PacketContainer handle; | |
| /** | |
| * Constructs a new strongly typed wrapper for the given packet. | |
| * | |
| * @param handle - handle to the raw packet data. | |
| * @param type - the packet type. | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Main extends JavaPlugin { | |
| @Override | |
| public void onEnable() { | |
| new TabSwitchListener(this).register(); | |
| setupClose(); | |
| } | |
| private void setupClose() { | |
| var api = UltimateAdvancementAPI.getInstance(this); | |