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