mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-28 06:45:39 +00:00
Add Sort Settings - Filter/Order/Type to Cloner GUI
This commit is contained in:
1 parent
36cd81e6e4
commit
5d738987b2
6 files changed
+188
-58
No files matched your search
@@ -239,9 +239,11 @@ public class GuiCustomScroll extends GuiScreen
|
||||
setSize(xSize,ySize);
|
||||
}
|
||||
|
||||
public void setList(List<String> list, boolean ascending){
|
||||
public void setList(List<String> list, boolean ascending, boolean caseOrder){
|
||||
isSorted = true;
|
||||
Collections.sort(list, String.CASE_INSENSITIVE_ORDER);
|
||||
if(caseOrder){
|
||||
Collections.sort(list, String.CASE_INSENSITIVE_ORDER);
|
||||
}
|
||||
if(!ascending){
|
||||
Collections.reverse(list);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user