perf: 优化代码
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
package cn.hamster3.mc.plugin.core.bukkit.page;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public interface PageElement {
|
||||
}
|
@@ -2,7 +2,6 @@ package cn.hamster3.mc.plugin.core.bukkit.page.handler;
|
||||
|
||||
import cn.hamster3.mc.plugin.core.bukkit.page.ButtonGroup;
|
||||
import cn.hamster3.mc.plugin.core.bukkit.page.PageConfig;
|
||||
import cn.hamster3.mc.plugin.core.bukkit.page.PageElement;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.entity.HumanEntity;
|
||||
import org.bukkit.event.inventory.ClickType;
|
||||
@@ -24,7 +23,7 @@ import java.util.Map;
|
||||
* @param <E> 页面元素
|
||||
*/
|
||||
@SuppressWarnings("unused")
|
||||
public abstract class PageableHandler<E extends PageElement> extends FixedPageHandler {
|
||||
public abstract class PageableHandler<E> extends FixedPageHandler {
|
||||
private static final ItemStack EMPTY_STACK = new ItemStack(Material.AIR);
|
||||
|
||||
private String previewButtonName = "preview";
|
||||
|
@@ -8,8 +8,8 @@ import org.bukkit.entity.HumanEntity;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public final class CallbackUtils {
|
||||
private CallbackUtils() {
|
||||
public final class BukkitCallbackUtils {
|
||||
private BukkitCallbackUtils() {
|
||||
}
|
||||
|
||||
public static CompletableFuture<String> getPlayerChat(HumanEntity player) {
|
Reference in New Issue
Block a user