mirror of
https://github.com/darksaid98/draggable_lists.git
synced 2026-12-02 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
|
||||
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;
|
||||
return super.mouseScrolled(mouseX, mouseY, amount);
|
||||
return super.mouseScrolled(mouseX, mouseY, horizontalAmount, verticalAmount);
|
||||
}
|
||||
|
||||
boolean updateDragEvent(double mouseX, double mouseY) {
|
||||
|
||||
+12
-12
@@ -38,28 +38,28 @@ public abstract class MixinTransferableSelectionList_PackEntry extends ObjectSel
|
||||
ci.cancel();
|
||||
}
|
||||
|
||||
@Redirect(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiGraphics;blit(Lnet/minecraft/resources/ResourceLocation;IIFFIIII)V", ordinal = 5))
|
||||
public void removeOnUpArrowButtons(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, float f, float g, int k, int l, int m, int n) {
|
||||
@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, int k, int l) {
|
||||
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))
|
||||
public void removeOffUpArrowButtons(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, float f, float g, int k, int l, int m, int n) {
|
||||
@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, int k, int l) {
|
||||
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))
|
||||
public void removeOnDownArrowButtons(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, float f, float g, int k, int l, int m, int n) {
|
||||
@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, int k, int l) {
|
||||
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))
|
||||
public void removeOffDownArrowButtons(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, float f, float g, int k, int l, int m, int n) {
|
||||
@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, int k, int l) {
|
||||
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)
|
||||
|
||||
+12
-12
@@ -72,28 +72,28 @@ public abstract class MixinOnlineServerEntry extends ObjectSelectionList.Entry<S
|
||||
isBeingDragged = v;
|
||||
}
|
||||
|
||||
@Redirect(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiGraphics;blit(Lnet/minecraft/resources/ResourceLocation;IIFFIIII)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) {
|
||||
@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, int k, int l) {
|
||||
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))
|
||||
public void removeUpButton(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, float f, float g, int k, int l, int m, int n) {
|
||||
@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, int k, int l) {
|
||||
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))
|
||||
public void removeDownOnButton(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, float f, float g, int k, int l, int m, int n) {
|
||||
@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, int k, int l) {
|
||||
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))
|
||||
public void removeDownButton(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, float f, float g, int k, int l, int m, int n) {
|
||||
@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, int k, int l) {
|
||||
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)
|
||||
|
||||
+2
-2
@@ -100,9 +100,9 @@ public abstract class MixinServerSelectionList extends ObjectSelectionList<Serve
|
||||
}
|
||||
|
||||
@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;
|
||||
return super.mouseScrolled(mouseX, mouseY, amount);
|
||||
return super.mouseScrolled(mouseX, mouseY, horizontalAmount, verticalAmount);
|
||||
}
|
||||
|
||||
boolean updateDragEvent(double mouseX, double mouseY) {
|
||||
|
||||
Reference in new issue
Block a user