perf: 优化 Page 相关 API
优化 Page 相关 API
This commit is contained in:
@@ -17,16 +17,8 @@ public class FixedPageHandler extends PageHandler {
|
|||||||
super(player);
|
super(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
public FixedPageHandler(@NotNull HumanEntity player, @NotNull String title) {
|
public FixedPageHandler(@NotNull PageConfig config, @NotNull HumanEntity player) {
|
||||||
super(player, title);
|
super(config, player);
|
||||||
}
|
|
||||||
|
|
||||||
public FixedPageHandler(@NotNull PageConfig pageConfig, @NotNull HumanEntity player) {
|
|
||||||
super(pageConfig, player);
|
|
||||||
}
|
|
||||||
|
|
||||||
public FixedPageHandler(@NotNull PageConfig pageConfig, @NotNull String title, @NotNull HumanEntity player) {
|
|
||||||
super(pageConfig, title, player);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@@ -35,18 +35,8 @@ public abstract class PageableHandler<E extends PageElement> extends FixedPageHa
|
|||||||
this.page = page;
|
this.page = page;
|
||||||
}
|
}
|
||||||
|
|
||||||
public PageableHandler(@NotNull HumanEntity player, @NotNull String title, int page) {
|
public PageableHandler(@NotNull PageConfig config, @NotNull HumanEntity player, int page) {
|
||||||
super(player, title);
|
super(config, player);
|
||||||
this.page = page;
|
|
||||||
}
|
|
||||||
|
|
||||||
public PageableHandler(@NotNull PageConfig pageConfig, @NotNull HumanEntity player, int page) {
|
|
||||||
super(pageConfig, player);
|
|
||||||
this.page = page;
|
|
||||||
}
|
|
||||||
|
|
||||||
public PageableHandler(@NotNull PageConfig pageConfig, @NotNull String title, @NotNull HumanEntity player, int page) {
|
|
||||||
super(pageConfig, title, player);
|
|
||||||
this.page = page;
|
this.page = page;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user