Modifier and Type | Field and Description |
---|---|
java.util.List<E> |
entries |
int |
page |
int |
pageSize |
Constructor and Description |
---|
Paginator(E... entries) |
Paginator(java.util.List<E> entries) |
Modifier and Type | Method and Description |
---|---|
void |
display(java.util.function.Function<E,net.minecraft.util.text.ITextComponent> transform) |
void |
display(java.util.function.Function<E,net.minecraft.util.text.ITextComponent> transform,
java.lang.String commandPrefix) |
int |
getMaxPage() |
static <T> void |
paginate(IArgConsumer consumer,
java.util.List<T> elems,
java.util.function.Function<T,net.minecraft.util.text.ITextComponent> transform) |
static <T> void |
paginate(IArgConsumer consumer,
java.util.List<T> elems,
java.util.function.Function<T,net.minecraft.util.text.ITextComponent> transform,
java.lang.String commandPrefix) |
static <T> void |
paginate(IArgConsumer consumer,
java.util.List<T> elems,
java.lang.Runnable pre,
java.util.function.Function<T,net.minecraft.util.text.ITextComponent> transform) |
static <T> void |
paginate(IArgConsumer consumer,
java.util.List<T> elems,
java.lang.Runnable pre,
java.util.function.Function<T,net.minecraft.util.text.ITextComponent> transform,
java.lang.String commandPrefix) |
static <T> void |
paginate(IArgConsumer consumer,
Paginator<T> pagi,
java.util.function.Function<T,net.minecraft.util.text.ITextComponent> transform) |
static <T> void |
paginate(IArgConsumer consumer,
Paginator<T> pagi,
java.util.function.Function<T,net.minecraft.util.text.ITextComponent> transform,
java.lang.String commandPrefix) |
static <T> void |
paginate(IArgConsumer consumer,
Paginator<T> pagi,
java.lang.Runnable pre,
java.util.function.Function<T,net.minecraft.util.text.ITextComponent> transform) |
static <T> void |
paginate(IArgConsumer consumer,
Paginator<T> pagi,
java.lang.Runnable pre,
java.util.function.Function<T,net.minecraft.util.text.ITextComponent> transform,
java.lang.String commandPrefix) |
static <T> void |
paginate(IArgConsumer consumer,
T[] elems,
java.util.function.Function<T,net.minecraft.util.text.ITextComponent> transform) |
static <T> void |
paginate(IArgConsumer consumer,
T[] elems,
java.util.function.Function<T,net.minecraft.util.text.ITextComponent> transform,
java.lang.String commandPrefix) |
static <T> void |
paginate(IArgConsumer consumer,
T[] elems,
java.lang.Runnable pre,
java.util.function.Function<T,net.minecraft.util.text.ITextComponent> transform) |
static <T> void |
paginate(IArgConsumer consumer,
T[] elems,
java.lang.Runnable pre,
java.util.function.Function<T,net.minecraft.util.text.ITextComponent> transform,
java.lang.String commandPrefix) |
Paginator<E> |
setPageSize(int pageSize) |
Paginator<E> |
skipPages(int pages) |
boolean |
validPage(int page) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPrefix, logDebug, logDirect, logDirect, logDirect, logDirect, logDirect, logDirect, logNotification, logNotification, logNotificationDirect, logNotificationDirect, logToast, logToast, logToast
public Paginator<E> setPageSize(int pageSize)
public int getMaxPage()
public boolean validPage(int page)
public void display(java.util.function.Function<E,net.minecraft.util.text.ITextComponent> transform, java.lang.String commandPrefix)
public void display(java.util.function.Function<E,net.minecraft.util.text.ITextComponent> transform)
public static <T> void paginate(IArgConsumer consumer, Paginator<T> pagi, java.lang.Runnable pre, java.util.function.Function<T,net.minecraft.util.text.ITextComponent> transform, java.lang.String commandPrefix) throws CommandException
CommandException
public static <T> void paginate(IArgConsumer consumer, java.util.List<T> elems, java.lang.Runnable pre, java.util.function.Function<T,net.minecraft.util.text.ITextComponent> transform, java.lang.String commandPrefix) throws CommandException
CommandException
public static <T> void paginate(IArgConsumer consumer, T[] elems, java.lang.Runnable pre, java.util.function.Function<T,net.minecraft.util.text.ITextComponent> transform, java.lang.String commandPrefix) throws CommandException
CommandException
public static <T> void paginate(IArgConsumer consumer, Paginator<T> pagi, java.util.function.Function<T,net.minecraft.util.text.ITextComponent> transform, java.lang.String commandPrefix) throws CommandException
CommandException
public static <T> void paginate(IArgConsumer consumer, java.util.List<T> elems, java.util.function.Function<T,net.minecraft.util.text.ITextComponent> transform, java.lang.String commandPrefix) throws CommandException
CommandException
public static <T> void paginate(IArgConsumer consumer, T[] elems, java.util.function.Function<T,net.minecraft.util.text.ITextComponent> transform, java.lang.String commandPrefix) throws CommandException
CommandException
public static <T> void paginate(IArgConsumer consumer, Paginator<T> pagi, java.lang.Runnable pre, java.util.function.Function<T,net.minecraft.util.text.ITextComponent> transform) throws CommandException
CommandException
public static <T> void paginate(IArgConsumer consumer, java.util.List<T> elems, java.lang.Runnable pre, java.util.function.Function<T,net.minecraft.util.text.ITextComponent> transform) throws CommandException
CommandException
public static <T> void paginate(IArgConsumer consumer, T[] elems, java.lang.Runnable pre, java.util.function.Function<T,net.minecraft.util.text.ITextComponent> transform) throws CommandException
CommandException
public static <T> void paginate(IArgConsumer consumer, Paginator<T> pagi, java.util.function.Function<T,net.minecraft.util.text.ITextComponent> transform) throws CommandException
CommandException
public static <T> void paginate(IArgConsumer consumer, java.util.List<T> elems, java.util.function.Function<T,net.minecraft.util.text.ITextComponent> transform) throws CommandException
CommandException
public static <T> void paginate(IArgConsumer consumer, T[] elems, java.util.function.Function<T,net.minecraft.util.text.ITextComponent> transform) throws CommandException
CommandException