perf: 优化代码

This commit is contained in:
2023-01-18 16:12:22 +08:00
parent 9758be5354
commit 309d7c2f15
6 changed files with 9 additions and 75 deletions

View File

@@ -1,5 +0,0 @@
package cn.hamster3.mc.plugin.core.bukkit.page;
@SuppressWarnings("unused")
public interface PageElement {
}

View File

@@ -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";

View File

@@ -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) {