mirror of
https://github.com/darksaid98/draggable_lists.git
synced 2026-12-01 14:38:47 +00:00
Rename moveServerEntry to moveEntry
This commit is contained in:
4 files changed
+4
-4
No files matched your search
@@ -30,7 +30,7 @@ public interface DragList<T, E extends ObjectSelectionList.Entry<?>> {
|
||||
|
||||
void draggable_lists$setScrollAmount(double v);
|
||||
|
||||
void draggable_lists$moveServerEntry(DragItem<T, E> item, int n);
|
||||
void draggable_lists$moveEntry(DragItem<T, E> item, int n);
|
||||
|
||||
int draggable_lists$getItemCount();
|
||||
|
||||
|
||||
@@ -172,7 +172,7 @@ public class DragManager<T, E extends ObjectSelectionList.Entry<?>> {
|
||||
|
||||
private boolean dragServerItem(DragItem<T, E> item, double mouseY) {
|
||||
int n = getIndexFromMouseY(mouseY);
|
||||
dragList.draggable_lists$moveServerEntry(item, n);
|
||||
dragList.draggable_lists$moveEntry(item, n);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -133,7 +133,7 @@ public abstract class TransferableSelectionListMixin extends ObjectSelectionList
|
||||
}
|
||||
|
||||
@Override
|
||||
public void draggable_lists$moveServerEntry(DragItem<PackSelectionModel.Entry, TransferableSelectionList.PackEntry> item, int n) {
|
||||
public void draggable_lists$moveEntry(DragItem<PackSelectionModel.Entry, TransferableSelectionList.PackEntry> item, int n) {
|
||||
TransferableSelectionList.PackEntry pack = item.draggable_lists$getUnderlyingEntry();
|
||||
if (pack instanceof AbstractPackDuckProvider duckProvider) {
|
||||
duckProvider.draggable_lists$moveTo(n);
|
||||
|
||||
+1
-1
@@ -136,7 +136,7 @@ public abstract class ServerSelectionListMixin extends ObjectSelectionList<Serve
|
||||
setScrollAmount(v);
|
||||
}
|
||||
|
||||
public void draggable_lists$moveServerEntry(DragItem<ServerData, ServerSelectionList.OnlineServerEntry> item, int n) {
|
||||
public void draggable_lists$moveEntry(DragItem<ServerData, ServerSelectionList.OnlineServerEntry> item, int n) {
|
||||
ServerList servers = screen.getServers();
|
||||
if (servers instanceof ServerListDuckProvider duckProvider) {
|
||||
duckProvider.draggable_lists$moveItem(item, n);
|
||||
|
||||
Reference in new issue
Block a user