mirror of
https://github.com/darksaid98/draggable_lists.git
synced 2026-12-03 14:38:46 +00:00
Update Fabric version to Minecraft 1.20.2
This commit is contained in:
6 files changed
+30
-30
No files matched your search
+2
-2
@@ -82,9 +82,9 @@ public abstract class MixinTransferableSelectionList extends ObjectSelectionList
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean mouseScrolled(double mouseX, double mouseY, double amount) {
|
public boolean mouseScrolled(double mouseX, double mouseY, double horizontalAmount, double verticalAmount) {
|
||||||
if (draggingObject != null) return true;
|
if (draggingObject != null) return true;
|
||||||
return super.mouseScrolled(mouseX, mouseY, amount);
|
return super.mouseScrolled(mouseX, mouseY, horizontalAmount, verticalAmount);
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean updateDragEvent(double mouseX, double mouseY) {
|
boolean updateDragEvent(double mouseX, double mouseY) {
|
||||||
|
|||||||
+12
-12
@@ -38,28 +38,28 @@ public abstract class MixinTransferableSelectionList_PackEntry extends ObjectSel
|
|||||||
ci.cancel();
|
ci.cancel();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Redirect(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiGraphics;blit(Lnet/minecraft/resources/ResourceLocation;IIFFIIII)V", ordinal = 5))
|
@Redirect(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiGraphics;blitSprite(Lnet/minecraft/resources/ResourceLocation;IIII)V", ordinal = 4))
|
||||||
public void removeOnUpArrowButtons(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, float f, float g, int k, int l, int m, int n) {
|
public void removeOnUpArrowButtons(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, int k, int l) {
|
||||||
if (DraggableLists.getConfig().disableResourcePackArrows) return;
|
if (DraggableLists.getConfig().disableResourcePackArrows) return;
|
||||||
instance.blit(resourceLocation, i, j, f, g, k, l, m, n);
|
instance.blitSprite(resourceLocation, i, j, k, l);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Redirect(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiGraphics;blit(Lnet/minecraft/resources/ResourceLocation;IIFFIIII)V", ordinal = 6))
|
@Redirect(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiGraphics;blitSprite(Lnet/minecraft/resources/ResourceLocation;IIII)V", ordinal = 5))
|
||||||
public void removeOffUpArrowButtons(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, float f, float g, int k, int l, int m, int n) {
|
public void removeOffUpArrowButtons(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, int k, int l) {
|
||||||
if (DraggableLists.getConfig().disableResourcePackArrows) return;
|
if (DraggableLists.getConfig().disableResourcePackArrows) return;
|
||||||
instance.blit(resourceLocation, i, j, f, g, k, l, m, n);
|
instance.blitSprite(resourceLocation, i, j, k, l);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Redirect(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiGraphics;blit(Lnet/minecraft/resources/ResourceLocation;IIFFIIII)V", ordinal = 7))
|
@Redirect(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiGraphics;blitSprite(Lnet/minecraft/resources/ResourceLocation;IIII)V", ordinal = 6))
|
||||||
public void removeOnDownArrowButtons(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, float f, float g, int k, int l, int m, int n) {
|
public void removeOnDownArrowButtons(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, int k, int l) {
|
||||||
if (DraggableLists.getConfig().disableResourcePackArrows) return;
|
if (DraggableLists.getConfig().disableResourcePackArrows) return;
|
||||||
instance.blit(resourceLocation, i, j, f, g, k, l, m, n);
|
instance.blitSprite(resourceLocation, i, j, k, l);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Redirect(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiGraphics;blit(Lnet/minecraft/resources/ResourceLocation;IIFFIIII)V", ordinal = 8))
|
@Redirect(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiGraphics;blitSprite(Lnet/minecraft/resources/ResourceLocation;IIII)V", ordinal = 7))
|
||||||
public void removeOffDownArrowButtons(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, float f, float g, int k, int l, int m, int n) {
|
public void removeOffDownArrowButtons(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, int k, int l) {
|
||||||
if (DraggableLists.getConfig().disableResourcePackArrows) return;
|
if (DraggableLists.getConfig().disableResourcePackArrows) return;
|
||||||
instance.blit(resourceLocation, i, j, f, g, k, l, m, n);
|
instance.blitSprite(resourceLocation, i, j, k, l);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Inject(method = "mouseClicked", at = @At("HEAD"), cancellable = true)
|
@Inject(method = "mouseClicked", at = @At("HEAD"), cancellable = true)
|
||||||
|
|||||||
+12
-12
@@ -72,28 +72,28 @@ public abstract class MixinOnlineServerEntry extends ObjectSelectionList.Entry<S
|
|||||||
isBeingDragged = v;
|
isBeingDragged = v;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Redirect(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiGraphics;blit(Lnet/minecraft/resources/ResourceLocation;IIFFIIII)V", ordinal = 3))
|
@Redirect(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiGraphics;blitSprite(Lnet/minecraft/resources/ResourceLocation;IIII)V", ordinal = 3))
|
||||||
public void removeUpOnButton(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, float f, float g, int k, int l, int m, int n) {
|
public void removeUpOnButton(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, int k, int l) {
|
||||||
if (DraggableLists.getConfig().disableServerArrows) return;
|
if (DraggableLists.getConfig().disableServerArrows) return;
|
||||||
instance.blit(resourceLocation, i, j, f, g, k, l, m, n);
|
instance.blitSprite(resourceLocation, i, j, k, l);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Redirect(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiGraphics;blit(Lnet/minecraft/resources/ResourceLocation;IIFFIIII)V", ordinal = 4))
|
@Redirect(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiGraphics;blitSprite(Lnet/minecraft/resources/ResourceLocation;IIII)V", ordinal = 4))
|
||||||
public void removeUpButton(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, float f, float g, int k, int l, int m, int n) {
|
public void removeUpButton(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, int k, int l) {
|
||||||
if (DraggableLists.getConfig().disableServerArrows) return;
|
if (DraggableLists.getConfig().disableServerArrows) return;
|
||||||
instance.blit(resourceLocation, i, j, f, g, k, l, m, n);
|
instance.blitSprite(resourceLocation, i, j, k, l);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Redirect(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiGraphics;blit(Lnet/minecraft/resources/ResourceLocation;IIFFIIII)V", ordinal = 5))
|
@Redirect(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiGraphics;blitSprite(Lnet/minecraft/resources/ResourceLocation;IIII)V", ordinal = 5))
|
||||||
public void removeDownOnButton(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, float f, float g, int k, int l, int m, int n) {
|
public void removeDownOnButton(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, int k, int l) {
|
||||||
if (DraggableLists.getConfig().disableServerArrows) return;
|
if (DraggableLists.getConfig().disableServerArrows) return;
|
||||||
instance.blit(resourceLocation, i, j, f, g, k, l, m, n);
|
instance.blitSprite(resourceLocation, i, j, k, l);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Redirect(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiGraphics;blit(Lnet/minecraft/resources/ResourceLocation;IIFFIIII)V", ordinal = 6))
|
@Redirect(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiGraphics;blitSprite(Lnet/minecraft/resources/ResourceLocation;IIII)V", ordinal = 6))
|
||||||
public void removeDownButton(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, float f, float g, int k, int l, int m, int n) {
|
public void removeDownButton(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, int k, int l) {
|
||||||
if (DraggableLists.getConfig().disableServerArrows) return;
|
if (DraggableLists.getConfig().disableServerArrows) return;
|
||||||
instance.blit(resourceLocation, i, j, f, g, k, l, m, n);
|
instance.blitSprite(resourceLocation, i, j, k, l);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Inject(method = "mouseClicked", at = @At("HEAD"), cancellable = true)
|
@Inject(method = "mouseClicked", at = @At("HEAD"), cancellable = true)
|
||||||
|
|||||||
+2
-2
@@ -100,9 +100,9 @@ public abstract class MixinServerSelectionList extends ObjectSelectionList<Serve
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean mouseScrolled(double mouseX, double mouseY, double amount) {
|
public boolean mouseScrolled(double mouseX, double mouseY, double horizontalAmount, double verticalAmount) {
|
||||||
if (draggingObject != null) return true;
|
if (draggingObject != null) return true;
|
||||||
return super.mouseScrolled(mouseX, mouseY, amount);
|
return super.mouseScrolled(mouseX, mouseY, horizontalAmount, verticalAmount);
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean updateDragEvent(double mouseX, double mouseY) {
|
boolean updateDragEvent(double mouseX, double mouseY) {
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
],
|
],
|
||||||
"depends": {
|
"depends": {
|
||||||
"fabric": "*",
|
"fabric": "*",
|
||||||
"minecraft": ">=1.20",
|
"minecraft": ">=1.20.2",
|
||||||
"architectury": ">=9.0.0"
|
"architectury": ">=9.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+1
-1
@@ -6,7 +6,7 @@ enabled_platforms=quilt,fabric,forge
|
|||||||
archives_base_name=draggable_lists
|
archives_base_name=draggable_lists
|
||||||
mod_id=draggable_lists
|
mod_id=draggable_lists
|
||||||
mod_name=Draggable Lists
|
mod_name=Draggable Lists
|
||||||
mod_version=1.0.1
|
mod_version=1.0.2
|
||||||
mod_description="Draggable resource packs, datapacks, servers and worlds"
|
mod_description="Draggable resource packs, datapacks, servers and worlds"
|
||||||
maven_group=com.mrmelon54.DraggableLists
|
maven_group=com.mrmelon54.DraggableLists
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user