public class HubParkourAPI extends Object
| Constructor and Description |
|---|
HubParkourAPI() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeGUI(org.bukkit.entity.Player player)
Closes the GUI associated with the specified player, if any.
|
static GUI |
getGUI(org.bukkit.entity.Player player)
Retrieves the GUI instance associated with the provided player.
|
static org.bukkit.inventory.ItemStack |
getItem(int type)
Gets the ItemStack of a specific item type.
|
static IParkour |
getParkour(int id)
Get a specific parkour.
|
static IParkour |
getParkour(String name)
Get a specific parkour.
|
static IHubParkourPlayer |
getPlayer(org.bukkit.entity.Player player)
Get a player that is currently in parkour.
|
static org.bukkit.Material |
getPressurePlateType(int type)
Gets the material type of a specific pressure plate type.
|
static boolean |
isInParkour(org.bukkit.entity.Player player)
Use to check if a player is in a parkour.
|
static boolean |
isPost1_14()
Determines whether the server version is 1.14 or newer.
|
static boolean |
isPre1_13()
Determines whether the server version is before 1.13.
|
static void |
openGUI(org.bukkit.entity.Player player,
GUI gui)
Opens the specified GUI for the given player.
|
public static boolean isInParkour(org.bukkit.entity.Player player)
throws NullPointerException
player - the player to check.NullPointerException - if player is null.public static IHubParkourPlayer getPlayer(org.bukkit.entity.Player player) throws NullPointerException
player - The player to retrieve.NullPointerException - if player is null.public static IParkour getParkour(int id)
id - the id of the parkour.public static IParkour getParkour(String name) throws NullPointerException
name - the name of the parkourNullPointerException - if name is null.public static org.bukkit.Material getPressurePlateType(int type)
throws NullPointerException
type - the type of pressure plate.NullPointerExceptionpublic static org.bukkit.inventory.ItemStack getItem(int type)
throws NullPointerException
type - the type of item.NullPointerExceptionpublic static GUI getGUI(org.bukkit.entity.Player player)
player - the player for whom the GUI is being retrieved. Must not be null.NullPointerException - if the provided player is null.public static void closeGUI(org.bukkit.entity.Player player)
player - the player whose GUI should be closed. Must not be null.NullPointerException - if the provided player is null.public static void openGUI(org.bukkit.entity.Player player,
GUI gui)
player - the player for whom the GUI will be opened. Must not be null.gui - the GUI instance to open for the specified player. Must not be null.NullPointerException - if either the player or the GUI is null.public static boolean isPre1_13()
public static boolean isPost1_14()
Copyright © 2025. All rights reserved.