Class PacketPlayOutSelectAdvancementTabWrapper
java.lang.Object
com.fren_gor.ultimateAdvancementAPI.nms.wrappers.packets.PacketPlayOutSelectAdvancementTabWrapper
- All Implemented Interfaces:
ISendable
Wrapper class for NMS
PacketPlayOutSelectAdvancementTab
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates a newPacketPlayOutSelectAdvancementTabWrapper
which selects the specified tab.Creates a newPacketPlayOutSelectAdvancementTabWrapper
which deselect any selected tab in the advancement GUI.
-
Constructor Details
-
PacketPlayOutSelectAdvancementTabWrapper
public PacketPlayOutSelectAdvancementTabWrapper()
-
-
Method Details
-
craftSelectNone
@NotNull public static @NotNull PacketPlayOutSelectAdvancementTabWrapper craftSelectNone() throws ReflectiveOperationExceptionCreates a newPacketPlayOutSelectAdvancementTabWrapper
which deselect any selected tab in the advancement GUI.- Returns:
- A new
PacketPlayOutSelectAdvancementTabWrapper
which deselect any selected tab in the advancement GUI. - Throws:
ReflectiveOperationException
- If reflections goes wrong.
-
craftSelect
@NotNull public static @NotNull PacketPlayOutSelectAdvancementTabWrapper craftSelect(@NotNull @NotNull MinecraftKeyWrapper key) throws ReflectiveOperationException Creates a newPacketPlayOutSelectAdvancementTabWrapper
which selects the specified tab.- Parameters:
key
- The key of the root advancement of the tab to select.- Returns:
- A new
PacketPlayOutSelectAdvancementTabWrapper
which selects the specified tab. - Throws:
ReflectiveOperationException
- If reflections goes wrong.
-