Class BasePaginationMessage<T>
java.lang.Object
de.z0rdak.yawp.util.text.messages.pagination.BasePaginationMessage<T>
- All Implemented Interfaces:
MultiLineMessage<List<T>>,PaginationMessage<T>
- Direct Known Subclasses:
ChildRegionPagination,GroupMemberPagination,GroupPagination,RegionFlagPagination,RegionsInDimensionPagination,ResponsibleFlagPagination,TeleportAnchorPagination
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final PaginationControlstatic intprotected List<net.minecraft.network.chat.Component> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBasePaginationMessage(List<T> entries, String cmd, int pageNumber, int pageSize) -
Method Summary
Modifier and TypeMethodDescriptionabstract List<net.minecraft.network.chat.Component>abstract net.minecraft.network.chat.ComponentList<net.minecraft.network.chat.Component>getLines()abstract net.minecraft.network.chat.Componentheader()abstract net.minecraft.network.chat.Componentprotected voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.z0rdak.yawp.util.text.messages.multiline.MultiLineMessage
to
-
Field Details
-
FIRST_PAGE_IDX
public static int FIRST_PAGE_IDX -
control
-
pageContent
-
paginationLines
-
-
Constructor Details
-
BasePaginationMessage
protected BasePaginationMessage(List<T> entries, String cmd, int pageNumber, int pageSize) throws InvalidPageNumberException - Throws:
InvalidPageNumberException
-
-
Method Details
-
padEmptyEntries
protected void padEmptyEntries() -
getContent
- Specified by:
getContentin interfaceMultiLineMessage<T>
-
getLines
- Specified by:
getLinesin interfaceMultiLineMessage<T>
-
buildEntries
-
noContentMsg
public abstract net.minecraft.network.chat.Component noContentMsg() -
header
public abstract net.minecraft.network.chat.Component header() -
emptyEntry
public abstract net.minecraft.network.chat.Component emptyEntry()
-