public class AutoPagedGUI extends CommonPagedGUI
限定符和类型 | 字段和说明 |
---|---|
static java.util.function.Function<org.bukkit.entity.Player,org.bukkit.inventory.ItemStack> |
defaultNextPage |
static java.util.function.Function<org.bukkit.entity.Player,org.bukkit.inventory.ItemStack> |
defaultPreviousPage |
protected int |
nextPageSlot |
protected org.bukkit.inventory.ItemStack |
nextPageUI |
protected org.bukkit.inventory.ItemStack |
noNextPageUI |
protected org.bukkit.inventory.ItemStack |
noPreviousPageUI |
protected int |
previousPageSlot |
protected org.bukkit.inventory.ItemStack |
previousPageUI |
range
cancelOnOuter, cancelOnSelf, cancelOnTarget, emptyItem, flags, inv, items, listener, title, type
构造器和说明 |
---|
AutoPagedGUI(@NotNull GUIType type,
@NotNull java.lang.String title,
int[] range) |
AutoPagedGUI(@NotNull GUIType type,
@NotNull java.lang.String title,
int a,
int b) |
限定符和类型 | 方法和说明 |
---|---|
protected void |
fillEmptySlots(@NotNull org.bukkit.inventory.Inventory inventory) |
void |
openGUI(org.bukkit.entity.Player user) |
void |
setNextPageSlot(int slot) |
void |
setNextPageUI(@Nullable org.bukkit.inventory.ItemStack nextPageUI) |
void |
setNoNextPageUI(@Nullable org.bukkit.inventory.ItemStack noNextPageUI) |
void |
setNoPreviousPageUI(@Nullable org.bukkit.inventory.ItemStack noPreviousPageUI) |
void |
setPreviousPageSlot(int slot) |
void |
setPreviousPageUI(@Nullable org.bukkit.inventory.ItemStack lastPageUI) |
getFirstPageNumber, getLastPageNumber, goFirstPage, goLastPage, hasNextPage, hasPreviousPage
addItem, addItem, addItemStack, getCurrentPage, getLastPageNumber, getPagedContainer, goNextPage, goPreviousPage, onPageChange, removeItem, removeItem, setCurrentPage
applyToInventory, closeAll, getFlag, getGUIName, getGUIType, getItem, getItems, getOpenedGUI, getOpenedGUIs, getPlugin, hasOpenedGUI, initialize, onClose, onDrag, onUpdate, rawClickListener, removeFlag, removeOpenedGUI, setCancelOnOuter, setCancelOnSelf, setCancelOnTarget, setEmptyItem, setFlag, setItem, setItem, setItem, setItemStack, setItemStack, setOpenedGUI, updateTitle, updateView
public static java.util.function.Function<org.bukkit.entity.Player,org.bukkit.inventory.ItemStack> defaultPreviousPage
public static java.util.function.Function<org.bukkit.entity.Player,org.bukkit.inventory.ItemStack> defaultNextPage
protected org.bukkit.inventory.ItemStack previousPageUI
protected org.bukkit.inventory.ItemStack nextPageUI
protected org.bukkit.inventory.ItemStack noPreviousPageUI
protected org.bukkit.inventory.ItemStack noNextPageUI
protected int previousPageSlot
protected int nextPageSlot
public AutoPagedGUI(@NotNull @NotNull GUIType type, @NotNull @NotNull java.lang.String title, int[] range)
public AutoPagedGUI(@NotNull @NotNull GUIType type, @NotNull @NotNull java.lang.String title, int a, int b)
public void setPreviousPageUI(@Nullable @Nullable org.bukkit.inventory.ItemStack lastPageUI)
public void setNoPreviousPageUI(@Nullable @Nullable org.bukkit.inventory.ItemStack noPreviousPageUI)
public void setNextPageUI(@Nullable @Nullable org.bukkit.inventory.ItemStack nextPageUI)
public void setNoNextPageUI(@Nullable @Nullable org.bukkit.inventory.ItemStack noNextPageUI)
public void setPreviousPageSlot(int slot)
public void setNextPageSlot(int slot)
protected void fillEmptySlots(@NotNull @NotNull org.bukkit.inventory.Inventory inventory)
fillEmptySlots
在类中 CommonPagedGUI
public void openGUI(org.bukkit.entity.Player user)
openGUI
在类中 CommonPagedGUI
Copyright © 2024. All rights reserved.