public class CommonPagedGUI extends PagedGUI
限定符和类型 | 字段和说明 |
---|---|
protected int[] |
range |
cancelOnOuter, cancelOnSelf, cancelOnTarget, emptyItem, flags, inv, items, listener, title, type
构造器和说明 |
---|
CommonPagedGUI(@NotNull GUIType type,
@NotNull java.lang.String title,
int[] range) |
CommonPagedGUI(@NotNull GUIType type,
@NotNull java.lang.String title,
int a,
int b) |
限定符和类型 | 方法和说明 |
---|---|
protected void |
fillEmptySlots(@NotNull org.bukkit.inventory.Inventory inventory) |
int |
getFirstPageNumber()
得到第一页的页码
|
int |
getLastPageNumber()
得到最后一页的页码
|
void |
goFirstPage()
前往第一页
|
void |
goLastPage()
前往最后一页
|
boolean |
hasNextPage() |
boolean |
hasPreviousPage() |
void |
openGUI(org.bukkit.entity.Player player) |
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 CommonPagedGUI(@NotNull @NotNull GUIType type, @NotNull @NotNull java.lang.String title, int a, int b)
public CommonPagedGUI(@NotNull @NotNull GUIType type, @NotNull @NotNull java.lang.String title, int[] range)
protected void fillEmptySlots(@NotNull @NotNull org.bukkit.inventory.Inventory inventory)
fillEmptySlots
在类中 GUI
public boolean hasPreviousPage()
hasPreviousPage
在类中 PagedGUI
public boolean hasNextPage()
hasNextPage
在类中 PagedGUI
public void goFirstPage()
public void goLastPage()
public int getLastPageNumber()
getLastPageNumber
在类中 PagedGUI
public int getFirstPageNumber()
Copyright © 2024. All rights reserved.