public class AnvilGUI extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AnvilGUI.Builder
A builder class for an
AnvilGUI object |
static class |
AnvilGUI.Response
Represents a response when the player clicks the output item in the anvil GUI
|
static class |
AnvilGUI.Slot
Class wrapping the magic constants of slot numbers in an anvil GUI
|
Constructor and Description |
---|
AnvilGUI(org.bukkit.plugin.Plugin plugin,
org.bukkit.entity.Player holder,
String insert,
java.util.function.BiFunction<org.bukkit.entity.Player,String,String> biFunction)
Deprecated.
As of version 1.2.3, use
AnvilGUI.Builder |
Modifier and Type | Method and Description |
---|---|
void |
closeInventory()
Closes the inventory if it's open.
|
org.bukkit.inventory.Inventory |
getInventory()
Returns the Bukkit inventory for this anvil gui
|
@Deprecated public AnvilGUI(org.bukkit.plugin.Plugin plugin, org.bukkit.entity.Player holder, String insert, java.util.function.BiFunction<org.bukkit.entity.Player,String,String> biFunction)
AnvilGUI.Builder
plugin
- A JavaPlugin
instanceholder
- The Player
to open the inventory forinsert
- What to have the text already set tobiFunction
- A BiFunction
that is called when the player clicks the AnvilGUI.Slot.OUTPUT
slotNullPointerException
- If the server version isn't supportedCopyright © 2020. All Rights Reserved.