mirror of
https://github.com/darksaid98/draggable_lists.git
synced 2026-12-03 06:28:46 +00:00
So I renamed everything
This commit is contained in:
42 files changed
+131
-133
No files matched your search
@@ -22,4 +22,4 @@ jobs:
|
|||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
run: 'curl -X POST -H "Authorization: Bearer ${{ secrets.DEPLOY }}" -F "[email protected]" https://b.mrmelon54.xyz/u/mc-mod/draggable'
|
run: 'curl -X POST -H "Authorization: Bearer ${{ secrets.DEPLOY }}" -F "[email protected]" https://b.mrmelon54.xyz/u/mc-mod/draggable-lists'
|
||||||
+1
-1
@@ -58,7 +58,7 @@ allprojects {
|
|||||||
}
|
}
|
||||||
|
|
||||||
forgix {
|
forgix {
|
||||||
group = "com.mrmelon54.Draggable"
|
group = "com.mrmelon54.DraggableLists"
|
||||||
mergedJarName = "${project.archivesBaseName}-mc${project.minecraft_version}-${project.mod_version}-${getVersionMetadata()}.jar"
|
mergedJarName = "${project.archivesBaseName}-mc${project.minecraft_version}-${project.mod_version}-${getVersionMetadata()}.jar"
|
||||||
outputDir = "build/libs/merged"
|
outputDir = "build/libs/merged"
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ architectury {
|
|||||||
}
|
}
|
||||||
|
|
||||||
loom {
|
loom {
|
||||||
accessWidenerPath = file("src/main/resources/draggable.accesswidener")
|
accessWidenerPath = file("src/main/resources/draggable_lists.accesswidener")
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
package com.mrmelon54.Draggable;
|
package com.mrmelon54.DraggableLists;
|
||||||
|
|
||||||
import com.mrmelon54.Draggable.config.ConfigStructure;
|
import com.mrmelon54.DraggableLists.config.ConfigStructure;
|
||||||
import me.shedaniel.autoconfig.AutoConfig;
|
import me.shedaniel.autoconfig.AutoConfig;
|
||||||
import me.shedaniel.autoconfig.serializer.JanksonConfigSerializer;
|
import me.shedaniel.autoconfig.serializer.JanksonConfigSerializer;
|
||||||
import net.minecraft.client.gui.screens.Screen;
|
import net.minecraft.client.gui.screens.Screen;
|
||||||
@@ -9,7 +9,7 @@ import net.minecraft.server.packs.repository.Pack;
|
|||||||
|
|
||||||
import java.util.function.Supplier;
|
import java.util.function.Supplier;
|
||||||
|
|
||||||
public class Draggable {
|
public class DraggableLists {
|
||||||
public static final String MOD_ID = "draggable";
|
public static final String MOD_ID = "draggable";
|
||||||
private static ConfigStructure config;
|
private static ConfigStructure config;
|
||||||
|
|
||||||
+2
-2
@@ -1,9 +1,9 @@
|
|||||||
package com.mrmelon54.Draggable.config;
|
package com.mrmelon54.DraggableLists.config;
|
||||||
|
|
||||||
import me.shedaniel.autoconfig.ConfigData;
|
import me.shedaniel.autoconfig.ConfigData;
|
||||||
import me.shedaniel.autoconfig.annotation.Config;
|
import me.shedaniel.autoconfig.annotation.Config;
|
||||||
|
|
||||||
@Config(name = "draggable")
|
@Config(name = "draggable_lists")
|
||||||
@Config.Gui.Background("minecraft:textures/block/brain_coral_block.png")
|
@Config.Gui.Background("minecraft:textures/block/brain_coral_block.png")
|
||||||
public class ConfigStructure implements ConfigData {
|
public class ConfigStructure implements ConfigData {
|
||||||
public boolean disableResourcePackArrows = true;
|
public boolean disableResourcePackArrows = true;
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
package com.mrmelon54.Draggable.duck;
|
package com.mrmelon54.DraggableLists.duck;
|
||||||
|
|
||||||
public interface AbstractPackDuckProvider {
|
public interface AbstractPackDuckProvider {
|
||||||
void moveTo(int j);
|
void moveTo(int j);
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
package com.mrmelon54.Draggable.duck;
|
package com.mrmelon54.DraggableLists.duck;
|
||||||
|
|
||||||
import net.minecraft.client.multiplayer.ServerData;
|
import net.minecraft.client.multiplayer.ServerData;
|
||||||
|
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
package com.mrmelon54.Draggable.duck;
|
package com.mrmelon54.DraggableLists.duck;
|
||||||
|
|
||||||
import net.minecraft.client.gui.GuiGraphics;
|
import net.minecraft.client.gui.GuiGraphics;
|
||||||
import net.minecraft.client.gui.screens.packs.PackSelectionModel;
|
import net.minecraft.client.gui.screens.packs.PackSelectionModel;
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
package com.mrmelon54.Draggable.duck;
|
package com.mrmelon54.DraggableLists.duck;
|
||||||
|
|
||||||
public interface ResourcePackOrganizerDuckProvider {
|
public interface ResourcePackOrganizerDuckProvider {
|
||||||
void updateSelectedList();
|
void updateSelectedList();
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
package com.mrmelon54.Draggable.duck;
|
package com.mrmelon54.DraggableLists.duck;
|
||||||
|
|
||||||
import net.minecraft.client.gui.GuiGraphics;
|
import net.minecraft.client.gui.GuiGraphics;
|
||||||
import net.minecraft.client.multiplayer.ServerData;
|
import net.minecraft.client.multiplayer.ServerData;
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
package com.mrmelon54.Draggable.duck;
|
package com.mrmelon54.DraggableLists.duck;
|
||||||
|
|
||||||
import net.minecraft.client.multiplayer.ServerData;
|
import net.minecraft.client.multiplayer.ServerData;
|
||||||
|
|
||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
package com.mrmelon54.Draggable.mixin.packs;
|
package com.mrmelon54.DraggableLists.mixin.packs;
|
||||||
|
|
||||||
import com.mrmelon54.Draggable.duck.ResourcePackOrganizerDuckProvider;
|
import com.mrmelon54.DraggableLists.duck.ResourcePackOrganizerDuckProvider;
|
||||||
import net.minecraft.client.gui.screens.packs.PackSelectionModel;
|
import net.minecraft.client.gui.screens.packs.PackSelectionModel;
|
||||||
import org.spongepowered.asm.mixin.Final;
|
import org.spongepowered.asm.mixin.Final;
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
+6
-6
@@ -1,8 +1,8 @@
|
|||||||
package com.mrmelon54.Draggable.mixin.packs;
|
package com.mrmelon54.DraggableLists.mixin.packs;
|
||||||
|
|
||||||
import com.mrmelon54.Draggable.Draggable;
|
import com.mrmelon54.DraggableLists.DraggableLists;
|
||||||
import com.mrmelon54.Draggable.duck.AbstractPackDuckProvider;
|
import com.mrmelon54.DraggableLists.duck.AbstractPackDuckProvider;
|
||||||
import com.mrmelon54.Draggable.duck.ResourcePackOrganizerDuckProvider;
|
import com.mrmelon54.DraggableLists.duck.ResourcePackOrganizerDuckProvider;
|
||||||
import net.minecraft.client.gui.screens.packs.PackSelectionModel;
|
import net.minecraft.client.gui.screens.packs.PackSelectionModel;
|
||||||
import net.minecraft.server.packs.repository.Pack;
|
import net.minecraft.server.packs.repository.Pack;
|
||||||
import org.spongepowered.asm.mixin.Dynamic;
|
import org.spongepowered.asm.mixin.Dynamic;
|
||||||
@@ -29,14 +29,14 @@ public abstract class MixinPackSelectionModel_EntryBase implements AbstractPackD
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void moveTo(int j) {
|
public void moveTo(int j) {
|
||||||
if (Draggable.shouldNotTouch(pack)) return;
|
if (DraggableLists.shouldNotTouch(pack)) return;
|
||||||
|
|
||||||
List<Pack> list = getSelfList();
|
List<Pack> list = getSelfList();
|
||||||
list.remove(pack);
|
list.remove(pack);
|
||||||
list.add(j, pack);
|
list.add(j, pack);
|
||||||
|
|
||||||
// get all fixed position resource packs, remove them and add them all at the end
|
// get all fixed position resource packs, remove them and add them all at the end
|
||||||
Stream<Pack> packStream = list.stream().filter(Draggable::shouldNotTouch);
|
Stream<Pack> packStream = list.stream().filter(DraggableLists::shouldNotTouch);
|
||||||
List<Pack> list1 = packStream.toList();
|
List<Pack> list1 = packStream.toList();
|
||||||
list.removeAll(list1);
|
list.removeAll(list1);
|
||||||
list.addAll(list1);
|
list.addAll(list1);
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
package com.mrmelon54.Draggable.mixin.packs;
|
package com.mrmelon54.DraggableLists.mixin.packs;
|
||||||
|
|
||||||
import net.minecraft.client.gui.screens.Screen;
|
import net.minecraft.client.gui.screens.Screen;
|
||||||
import net.minecraft.client.gui.screens.packs.PackSelectionScreen;
|
import net.minecraft.client.gui.screens.packs.PackSelectionScreen;
|
||||||
+5
-5
@@ -1,8 +1,8 @@
|
|||||||
package com.mrmelon54.Draggable.mixin.packs;
|
package com.mrmelon54.DraggableLists.mixin.packs;
|
||||||
|
|
||||||
import com.mrmelon54.Draggable.Draggable;
|
import com.mrmelon54.DraggableLists.DraggableLists;
|
||||||
import com.mrmelon54.Draggable.duck.AbstractPackDuckProvider;
|
import com.mrmelon54.DraggableLists.duck.AbstractPackDuckProvider;
|
||||||
import com.mrmelon54.Draggable.duck.ResourcePackEntryDuckProvider;
|
import com.mrmelon54.DraggableLists.duck.ResourcePackEntryDuckProvider;
|
||||||
import net.fabricmc.api.EnvType;
|
import net.fabricmc.api.EnvType;
|
||||||
import net.fabricmc.api.Environment;
|
import net.fabricmc.api.Environment;
|
||||||
import net.minecraft.Util;
|
import net.minecraft.Util;
|
||||||
@@ -174,6 +174,6 @@ public abstract class MixinTransferableSelectionList extends ObjectSelectionList
|
|||||||
}
|
}
|
||||||
|
|
||||||
boolean isValidForDragging(ResourcePackEntryDuckProvider resourcePackEntryDuckProvider) {
|
boolean isValidForDragging(ResourcePackEntryDuckProvider resourcePackEntryDuckProvider) {
|
||||||
return !Draggable.shouldNotTouch(resourcePackEntryDuckProvider.getUnderlyingPack()) && resourcePackEntryDuckProvider.getUnderlyingPack().isSelected();
|
return !DraggableLists.shouldNotTouch(resourcePackEntryDuckProvider.getUnderlyingPack()) && resourcePackEntryDuckProvider.getUnderlyingPack().isSelected();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+8
-8
@@ -1,8 +1,8 @@
|
|||||||
package com.mrmelon54.Draggable.mixin.packs;
|
package com.mrmelon54.DraggableLists.mixin.packs;
|
||||||
|
|
||||||
import com.mojang.blaze3d.systems.RenderSystem;
|
import com.mojang.blaze3d.systems.RenderSystem;
|
||||||
import com.mrmelon54.Draggable.Draggable;
|
import com.mrmelon54.DraggableLists.DraggableLists;
|
||||||
import com.mrmelon54.Draggable.duck.ResourcePackEntryDuckProvider;
|
import com.mrmelon54.DraggableLists.duck.ResourcePackEntryDuckProvider;
|
||||||
import net.minecraft.client.gui.GuiGraphics;
|
import net.minecraft.client.gui.GuiGraphics;
|
||||||
import net.minecraft.client.gui.components.ObjectSelectionList;
|
import net.minecraft.client.gui.components.ObjectSelectionList;
|
||||||
import net.minecraft.client.gui.screens.packs.PackSelectionModel;
|
import net.minecraft.client.gui.screens.packs.PackSelectionModel;
|
||||||
@@ -40,31 +40,31 @@ public abstract class MixinTransferableSelectionList_PackEntry extends ObjectSel
|
|||||||
|
|
||||||
@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;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) {
|
public void removeOnUpArrowButtons(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, float f, float g, int k, int l, int m, int n) {
|
||||||
if (Draggable.getConfig().disableResourcePackArrows) return;
|
if (DraggableLists.getConfig().disableResourcePackArrows) return;
|
||||||
instance.blit(resourceLocation, i, j, f, g, k, l, m, n);
|
instance.blit(resourceLocation, i, j, f, g, k, l, m, n);
|
||||||
}
|
}
|
||||||
|
|
||||||
@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;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) {
|
public void removeOffUpArrowButtons(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, float f, float g, int k, int l, int m, int n) {
|
||||||
if (Draggable.getConfig().disableResourcePackArrows) return;
|
if (DraggableLists.getConfig().disableResourcePackArrows) return;
|
||||||
instance.blit(resourceLocation, i, j, f, g, k, l, m, n);
|
instance.blit(resourceLocation, i, j, f, g, k, l, m, n);
|
||||||
}
|
}
|
||||||
|
|
||||||
@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;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) {
|
public void removeOnDownArrowButtons(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, float f, float g, int k, int l, int m, int n) {
|
||||||
if (Draggable.getConfig().disableResourcePackArrows) return;
|
if (DraggableLists.getConfig().disableResourcePackArrows) return;
|
||||||
instance.blit(resourceLocation, i, j, f, g, k, l, m, n);
|
instance.blit(resourceLocation, i, j, f, g, k, l, m, n);
|
||||||
}
|
}
|
||||||
|
|
||||||
@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;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) {
|
public void removeOffDownArrowButtons(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, float f, float g, int k, int l, int m, int n) {
|
||||||
if (Draggable.getConfig().disableResourcePackArrows) return;
|
if (DraggableLists.getConfig().disableResourcePackArrows) return;
|
||||||
instance.blit(resourceLocation, i, j, f, g, k, l, m, n);
|
instance.blit(resourceLocation, i, j, f, g, k, l, m, n);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Inject(method = "mouseClicked", at = @At("HEAD"), cancellable = true)
|
@Inject(method = "mouseClicked", at = @At("HEAD"), cancellable = true)
|
||||||
public void removeMoveTowardEnd(double d, double e, int i, CallbackInfoReturnable<Boolean> cir) {
|
public void removeMoveTowardEnd(double d, double e, int i, CallbackInfoReturnable<Boolean> cir) {
|
||||||
if (!Draggable.getConfig().disableResourcePackArrows) return;
|
if (!DraggableLists.getConfig().disableResourcePackArrows) return;
|
||||||
if (d > getRectangle().width() / 2f) return;
|
if (d > getRectangle().width() / 2f) return;
|
||||||
|
|
||||||
double f = d - (double) parent.getRowLeft();
|
double f = d - (double) parent.getRowLeft();
|
||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
package com.mrmelon54.Draggable.mixin.server;
|
package com.mrmelon54.DraggableLists.mixin.server;
|
||||||
|
|
||||||
import com.mrmelon54.Draggable.duck.MultiplayerScreenDuckProvider;
|
import com.mrmelon54.DraggableLists.duck.MultiplayerScreenDuckProvider;
|
||||||
import net.minecraft.client.gui.screens.Screen;
|
import net.minecraft.client.gui.screens.Screen;
|
||||||
import net.minecraft.client.gui.screens.multiplayer.JoinMultiplayerScreen;
|
import net.minecraft.client.gui.screens.multiplayer.JoinMultiplayerScreen;
|
||||||
import net.minecraft.client.gui.screens.multiplayer.ServerSelectionList;
|
import net.minecraft.client.gui.screens.multiplayer.ServerSelectionList;
|
||||||
+7
-7
@@ -1,8 +1,8 @@
|
|||||||
package com.mrmelon54.Draggable.mixin.server;
|
package com.mrmelon54.DraggableLists.mixin.server;
|
||||||
|
|
||||||
import com.mojang.blaze3d.systems.RenderSystem;
|
import com.mojang.blaze3d.systems.RenderSystem;
|
||||||
import com.mrmelon54.Draggable.Draggable;
|
import com.mrmelon54.DraggableLists.DraggableLists;
|
||||||
import com.mrmelon54.Draggable.duck.ServerEntryDuckProvider;
|
import com.mrmelon54.DraggableLists.duck.ServerEntryDuckProvider;
|
||||||
import net.minecraft.client.gui.GuiGraphics;
|
import net.minecraft.client.gui.GuiGraphics;
|
||||||
import net.minecraft.client.gui.components.ObjectSelectionList;
|
import net.minecraft.client.gui.components.ObjectSelectionList;
|
||||||
import net.minecraft.client.gui.screens.multiplayer.JoinMultiplayerScreen;
|
import net.minecraft.client.gui.screens.multiplayer.JoinMultiplayerScreen;
|
||||||
@@ -74,25 +74,25 @@ public abstract class MixinOnlineServerEntry extends ObjectSelectionList.Entry<S
|
|||||||
|
|
||||||
@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;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) {
|
public void removeUpOnButton(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, float f, float g, int k, int l, int m, int n) {
|
||||||
if (Draggable.getConfig().disableServerArrows) return;
|
if (DraggableLists.getConfig().disableServerArrows) return;
|
||||||
instance.blit(resourceLocation, i, j, f, g, k, l, m, n);
|
instance.blit(resourceLocation, i, j, f, g, k, l, m, n);
|
||||||
}
|
}
|
||||||
|
|
||||||
@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;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) {
|
public void removeUpButton(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, float f, float g, int k, int l, int m, int n) {
|
||||||
if (Draggable.getConfig().disableServerArrows) return;
|
if (DraggableLists.getConfig().disableServerArrows) return;
|
||||||
instance.blit(resourceLocation, i, j, f, g, k, l, m, n);
|
instance.blit(resourceLocation, i, j, f, g, k, l, m, n);
|
||||||
}
|
}
|
||||||
|
|
||||||
@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;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) {
|
public void removeDownOnButton(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, float f, float g, int k, int l, int m, int n) {
|
||||||
if (Draggable.getConfig().disableServerArrows) return;
|
if (DraggableLists.getConfig().disableServerArrows) return;
|
||||||
instance.blit(resourceLocation, i, j, f, g, k, l, m, n);
|
instance.blit(resourceLocation, i, j, f, g, k, l, m, n);
|
||||||
}
|
}
|
||||||
|
|
||||||
@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;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) {
|
public void removeDownButton(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, float f, float g, int k, int l, int m, int n) {
|
||||||
if (Draggable.getConfig().disableServerArrows) return;
|
if (DraggableLists.getConfig().disableServerArrows) return;
|
||||||
instance.blit(resourceLocation, i, j, f, g, k, l, m, n);
|
instance.blit(resourceLocation, i, j, f, g, k, l, m, n);
|
||||||
}
|
}
|
||||||
|
|
||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
package com.mrmelon54.Draggable.mixin.server;
|
package com.mrmelon54.DraggableLists.mixin.server;
|
||||||
|
|
||||||
import com.mrmelon54.Draggable.duck.ServerListDuckProvider;
|
import com.mrmelon54.DraggableLists.duck.ServerListDuckProvider;
|
||||||
import net.minecraft.client.multiplayer.ServerData;
|
import net.minecraft.client.multiplayer.ServerData;
|
||||||
import net.minecraft.client.multiplayer.ServerList;
|
import net.minecraft.client.multiplayer.ServerList;
|
||||||
import org.spongepowered.asm.mixin.Final;
|
import org.spongepowered.asm.mixin.Final;
|
||||||
+4
-4
@@ -1,8 +1,8 @@
|
|||||||
package com.mrmelon54.Draggable.mixin.server;
|
package com.mrmelon54.DraggableLists.mixin.server;
|
||||||
|
|
||||||
import com.mrmelon54.Draggable.duck.MultiplayerScreenDuckProvider;
|
import com.mrmelon54.DraggableLists.duck.MultiplayerScreenDuckProvider;
|
||||||
import com.mrmelon54.Draggable.duck.ServerEntryDuckProvider;
|
import com.mrmelon54.DraggableLists.duck.ServerEntryDuckProvider;
|
||||||
import com.mrmelon54.Draggable.duck.ServerListDuckProvider;
|
import com.mrmelon54.DraggableLists.duck.ServerListDuckProvider;
|
||||||
import net.minecraft.Util;
|
import net.minecraft.Util;
|
||||||
import net.minecraft.client.Minecraft;
|
import net.minecraft.client.Minecraft;
|
||||||
import net.minecraft.client.gui.GuiGraphics;
|
import net.minecraft.client.gui.GuiGraphics;
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"accessWidener": "draggable.accesswidener"
|
"accessWidener": "draggable_lists.accesswidener"
|
||||||
}
|
}
|
||||||
File renamed without changes.
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"required": true,
|
"required": true,
|
||||||
"package": "com.mrmelon54.Draggable.mixin",
|
"package": "com.mrmelon54.DraggableLists.mixin",
|
||||||
"compatibilityLevel": "JAVA_17",
|
"compatibilityLevel": "JAVA_17",
|
||||||
"minVersion": "0.8",
|
"minVersion": "0.8",
|
||||||
"client": [
|
"client": [
|
||||||
File renamed without changes.
@@ -1,9 +0,0 @@
|
|||||||
package com.mrmelon54.Draggable.fabriclike;
|
|
||||||
|
|
||||||
import com.mrmelon54.Draggable.Draggable;
|
|
||||||
|
|
||||||
public class DraggableFabricLike {
|
|
||||||
public static void init() {
|
|
||||||
Draggable.init();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
+9
@@ -0,0 +1,9 @@
|
|||||||
|
package com.mrmelon54.DraggableLists.fabriclike;
|
||||||
|
|
||||||
|
import com.mrmelon54.DraggableLists.DraggableLists;
|
||||||
|
|
||||||
|
public class DraggableListsFabricLike {
|
||||||
|
public static void init() {
|
||||||
|
DraggableLists.init();
|
||||||
|
}
|
||||||
|
}
|
||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
package com.mrmelon54.Draggable.fabriclike;
|
package com.mrmelon54.DraggableLists.fabriclike;
|
||||||
|
|
||||||
import com.mrmelon54.Draggable.config.ConfigStructure;
|
import com.mrmelon54.DraggableLists.config.ConfigStructure;
|
||||||
import com.terraformersmc.modmenu.api.ConfigScreenFactory;
|
import com.terraformersmc.modmenu.api.ConfigScreenFactory;
|
||||||
import com.terraformersmc.modmenu.api.ModMenuApi;
|
import com.terraformersmc.modmenu.api.ModMenuApi;
|
||||||
import me.shedaniel.autoconfig.AutoConfig;
|
import me.shedaniel.autoconfig.AutoConfig;
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
package com.mrmelon54.Draggable.fabric;
|
|
||||||
|
|
||||||
import com.mrmelon54.Draggable.fabriclike.DraggableFabricLike;
|
|
||||||
import net.fabricmc.api.ModInitializer;
|
|
||||||
|
|
||||||
public class DraggableFabric implements ModInitializer {
|
|
||||||
@Override
|
|
||||||
public void onInitialize() {
|
|
||||||
DraggableFabricLike.init();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
package com.mrmelon54.DraggableLists.fabric;
|
||||||
|
|
||||||
|
import com.mrmelon54.DraggableLists.fabriclike.DraggableListsFabricLike;
|
||||||
|
import net.fabricmc.api.ModInitializer;
|
||||||
|
|
||||||
|
public class DraggableListsFabric implements ModInitializer {
|
||||||
|
@Override
|
||||||
|
public void onInitialize() {
|
||||||
|
DraggableListsFabricLike.init();
|
||||||
|
}
|
||||||
|
}
|
||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
{
|
]{
|
||||||
"required": true,
|
"required": true,
|
||||||
"package": "com.mrmelon54.Draggable.mixin.fabric",
|
"package": "com.mrmelon54.DraggableLists.mixin.fabric",
|
||||||
"compatibilityLevel": "JAVA_17",
|
"compatibilityLevel": "JAVA_17",
|
||||||
"minVersion": "0.8",
|
"minVersion": "0.8",
|
||||||
"client": [
|
"client": [
|
||||||
@@ -1,31 +1,31 @@
|
|||||||
{
|
{
|
||||||
"schemaVersion": 1,
|
"schemaVersion": 1,
|
||||||
"id": "draggable",
|
"id": "draggable_lists",
|
||||||
"version": "${version}",
|
"version": "${version}",
|
||||||
"name": "Draggable",
|
"name": "Draggable Lists",
|
||||||
"description": "Draggable resource packs, datapacks, servers and worlds",
|
"description": "Draggable resource packs, datapacks, servers and worlds",
|
||||||
"authors": [
|
"authors": [
|
||||||
"MrMelon54"
|
"MrMelon54"
|
||||||
],
|
],
|
||||||
"contact": {
|
"contact": {
|
||||||
"homepage": "https://mrmelon54.com/minecraft/draggable",
|
"homepage": "https://mrmelon54.com/minecraft/draggable-lists",
|
||||||
"sources": "https://github.com/MrMelon54/draggable",
|
"sources": "https://github.com/MrMelon54/draggable_lists",
|
||||||
"issues": "https://github.com/MrMelon54/draggable/issues"
|
"issues": "https://github.com/MrMelon54/draggable_lists/issues"
|
||||||
},
|
},
|
||||||
"license": "GPL-3.0-only",
|
"license": "GPL-3.0-only",
|
||||||
"icon": "icon.png",
|
"icon": "icon.png",
|
||||||
"environment": "*",
|
"environment": "*",
|
||||||
"entrypoints": {
|
"entrypoints": {
|
||||||
"main": [
|
"main": [
|
||||||
"com.mrmelon54.Draggable.fabric.DraggableFabric"
|
"com.mrmelon54.DraggableLists.fabric.DraggableListsFabric"
|
||||||
],
|
],
|
||||||
"modmenu": [
|
"modmenu": [
|
||||||
"com.mrmelon54.Draggable.fabriclike.ModMenuIntegration"
|
"com.mrmelon54.DraggableLists.fabriclike.ModMenuIntegration"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"mixins": [
|
"mixins": [
|
||||||
"draggable.mixins.json",
|
"draggable_lists.mixins.json",
|
||||||
"draggable-common.mixins.json"
|
"draggable_lists-common.mixins.json"
|
||||||
],
|
],
|
||||||
"depends": {
|
"depends": {
|
||||||
"fabric": "*",
|
"fabric": "*",
|
||||||
|
|||||||
+2
-2
@@ -14,8 +14,8 @@ loom {
|
|||||||
convertAccessWideners = true
|
convertAccessWideners = true
|
||||||
extraAccessWideners.add loom.accessWidenerPath.get().asFile.name
|
extraAccessWideners.add loom.accessWidenerPath.get().asFile.name
|
||||||
|
|
||||||
mixinConfig "draggable-common.mixins.json"
|
mixinConfig "draggable_lists-common.mixins.json"
|
||||||
mixinConfig "draggable.mixins.json"
|
mixinConfig "draggable_lists.mixins.json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+8
-10
@@ -1,20 +1,18 @@
|
|||||||
package com.mrmelon54.Draggable.forge;
|
package com.mrmelon54.DraggableLists.forge;
|
||||||
|
|
||||||
|
import com.mrmelon54.DraggableLists.DraggableLists;
|
||||||
import dev.architectury.platform.forge.EventBuses;
|
import dev.architectury.platform.forge.EventBuses;
|
||||||
import com.mrmelon54.Draggable.Draggable;
|
|
||||||
import net.minecraftforge.client.ConfigScreenHandler;
|
|
||||||
import net.minecraftforge.client.ConfigScreenHandler.ConfigScreenFactory;
|
import net.minecraftforge.client.ConfigScreenHandler.ConfigScreenFactory;
|
||||||
import net.minecraftforge.fml.ModLoadingContext;
|
import net.minecraftforge.fml.ModLoadingContext;
|
||||||
import net.minecraftforge.fml.common.Mod;
|
import net.minecraftforge.fml.common.Mod;
|
||||||
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
|
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
|
||||||
|
|
||||||
@Mod(Draggable.MOD_ID)
|
@Mod(DraggableLists.MOD_ID)
|
||||||
public class DraggableForge {
|
public class DraggableListsForge {
|
||||||
public DraggableForge() {
|
public DraggableListsForge() {
|
||||||
// Submit our event bus to let architectury register our content on the right time
|
// Submit our event bus to let architectury register our content on the right time
|
||||||
EventBuses.registerModEventBus(Draggable.MOD_ID, FMLJavaModLoadingContext.get().getModEventBus());
|
EventBuses.registerModEventBus(DraggableLists.MOD_ID, FMLJavaModLoadingContext.get().getModEventBus());
|
||||||
ModLoadingContext.get().registerExtensionPoint(ConfigScreenFactory.class, () -> new ConfigScreenFactory((mc, screen) -> Draggable.createConfigScreen(screen).get()));
|
ModLoadingContext.get().registerExtensionPoint(ConfigScreenFactory.class, () -> new ConfigScreenFactory((mc, screen) -> DraggableLists.createConfigScreen(screen).get()));
|
||||||
|
DraggableLists.init();
|
||||||
Draggable.init();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,31 +1,31 @@
|
|||||||
modLoader = "javafml"
|
modLoader = "javafml"
|
||||||
loaderVersion = "[46,)"
|
loaderVersion = "[46,)"
|
||||||
issueTrackerURL = "https://github.com/MrMelon54/draggable/issues"
|
issueTrackerURL = "https://github.com/MrMelon54/draggable_lists/issues"
|
||||||
license = "GPL-3.0-only"
|
license = "GPL-3.0-only"
|
||||||
|
|
||||||
[[mods]]
|
[[mods]]
|
||||||
modId = "draggable"
|
modId = "draggable_lists"
|
||||||
version = "${version}"
|
version = "${version}"
|
||||||
displayName = "Draggable"
|
displayName = "Draggable Lists"
|
||||||
authors = "MrMelon54"
|
authors = "MrMelon54"
|
||||||
description = "Draggable resource packs, datapacks, servers and worlds"
|
description = "Draggable resource packs, datapacks, servers and worlds"
|
||||||
logoFile = "/icon.png"
|
logoFile = "/icon.png"
|
||||||
|
|
||||||
[[dependencies.draggable]]
|
[[dependencies.draggable_lists]]
|
||||||
modId = "forge"
|
modId = "forge"
|
||||||
mandatory = true
|
mandatory = true
|
||||||
versionRange = "[46,)"
|
versionRange = "[46,)"
|
||||||
ordering = "NONE"
|
ordering = "NONE"
|
||||||
side = "BOTH"
|
side = "BOTH"
|
||||||
|
|
||||||
[[dependencies.draggable]]
|
[[dependencies.draggable_lists]]
|
||||||
modId = "minecraft"
|
modId = "minecraft"
|
||||||
mandatory = true
|
mandatory = true
|
||||||
versionRange = "[1.20,)"
|
versionRange = "[1.20,)"
|
||||||
ordering = "NONE"
|
ordering = "NONE"
|
||||||
side = "BOTH"
|
side = "BOTH"
|
||||||
|
|
||||||
[[dependencies.draggable]]
|
[[dependencies.draggable_lists]]
|
||||||
modId = "architectury"
|
modId = "architectury"
|
||||||
mandatory = true
|
mandatory = true
|
||||||
versionRange = "[9.0.0,)"
|
versionRange = "[9.0.0,)"
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"required": true,
|
"required": true,
|
||||||
"package": "com.mrmelon54.Draggable.mixin.forge",
|
"package": "com.mrmelon54.DraggableLists.mixin.forge",
|
||||||
"compatibilityLevel": "JAVA_17",
|
"compatibilityLevel": "JAVA_17",
|
||||||
"minVersion": "0.8",
|
"minVersion": "0.8",
|
||||||
"client": [
|
"client": [
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"pack": {
|
"pack": {
|
||||||
"description": "Draggable",
|
"description": "Draggable Lists",
|
||||||
"pack_format": 15
|
"pack_format": 15
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+4
-4
@@ -3,12 +3,12 @@ org.gradle.jvmargs=-Xmx4096M
|
|||||||
minecraft_version=1.20
|
minecraft_version=1.20
|
||||||
enabled_platforms=quilt,fabric,forge
|
enabled_platforms=quilt,fabric,forge
|
||||||
|
|
||||||
archives_base_name=draggable
|
archives_base_name=draggable_lists
|
||||||
mod_id=draggable
|
mod_id=draggable_lists
|
||||||
mod_name=Draggable
|
mod_name=Draggable Lists
|
||||||
mod_version=1.0.0
|
mod_version=1.0.0
|
||||||
mod_description="Draggable resource packs, datapacks, servers and worlds"
|
mod_description="Draggable resource packs, datapacks, servers and worlds"
|
||||||
maven_group=com.mrmelon54.Draggable
|
maven_group=com.mrmelon54.DraggableLists
|
||||||
|
|
||||||
architectury_version=9.0.7
|
architectury_version=9.0.7
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
package com.mrmelon54.Draggable.quilt;
|
|
||||||
|
|
||||||
import com.mrmelon54.Draggable.fabriclike.DraggableFabricLike;
|
|
||||||
import org.quiltmc.loader.api.ModContainer;
|
|
||||||
import org.quiltmc.qsl.base.api.entrypoint.ModInitializer;
|
|
||||||
|
|
||||||
public class DraggableQuilt implements ModInitializer {
|
|
||||||
@Override
|
|
||||||
public void onInitialize(ModContainer mod) {
|
|
||||||
DraggableFabricLike.init();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
package com.mrmelon54.DraggableLists.quilt;
|
||||||
|
|
||||||
|
import com.mrmelon54.DraggableLists.fabriclike.DraggableListsFabricLike;
|
||||||
|
import org.quiltmc.loader.api.ModContainer;
|
||||||
|
import org.quiltmc.qsl.base.api.entrypoint.ModInitializer;
|
||||||
|
|
||||||
|
public class DraggableListsQuilt implements ModInitializer {
|
||||||
|
@Override
|
||||||
|
public void onInitialize(ModContainer mod) {
|
||||||
|
DraggableListsFabricLike.init();
|
||||||
|
}
|
||||||
|
}
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"required": true,
|
"required": true,
|
||||||
"package": "com.mrmelon54.Draggable.mixin.fabric",
|
"package": "com.mrmelon54.DraggableLists.mixin.fabric",
|
||||||
"compatibilityLevel": "JAVA_17",
|
"compatibilityLevel": "JAVA_17",
|
||||||
"minVersion": "0.8",
|
"minVersion": "0.8",
|
||||||
"client": [
|
"client": [
|
||||||
@@ -1,23 +1,23 @@
|
|||||||
{
|
{
|
||||||
"schema_version": 1,
|
"schema_version": 1,
|
||||||
"mixin": [
|
"mixin": [
|
||||||
"draggable.mixins.json",
|
"draggable_lists.mixins.json",
|
||||||
"draggable-common.mixins.json"
|
"draggable_lists-common.mixins.json"
|
||||||
],
|
],
|
||||||
"quilt_loader": {
|
"quilt_loader": {
|
||||||
"group": "${group}",
|
"group": "${group}",
|
||||||
"id": "draggable",
|
"id": "draggable_lists",
|
||||||
"version": "${version}",
|
"version": "${version}",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "Draggable",
|
"name": "Draggable Lists",
|
||||||
"description": "Draggable resource packs, datapacks, servers and worlds",
|
"description": "Draggable resource packs, datapacks, servers and worlds",
|
||||||
"contributors": {
|
"contributors": {
|
||||||
"MrMelon54": "Owner"
|
"MrMelon54": "Owner"
|
||||||
},
|
},
|
||||||
"contact": {
|
"contact": {
|
||||||
"homepage": "https://mrmelon54.com/minecraft/draggable",
|
"homepage": "https://mrmelon54.com/minecraft/draggable-lists",
|
||||||
"sources": "https://github.com/MrMelon54/draggable",
|
"sources": "https://github.com/MrMelon54/draggable_lists",
|
||||||
"issues": "https://github.com/MrMelon54/draggable/issues"
|
"issues": "https://github.com/MrMelon54/draggable_lists/issues"
|
||||||
},
|
},
|
||||||
"license": "GPL-3.0-only",
|
"license": "GPL-3.0-only",
|
||||||
"icon": "icon.png"
|
"icon": "icon.png"
|
||||||
@@ -25,10 +25,10 @@
|
|||||||
"intermediate_mappings": "net.fabricmc:intermediary",
|
"intermediate_mappings": "net.fabricmc:intermediary",
|
||||||
"entrypoints": {
|
"entrypoints": {
|
||||||
"init": [
|
"init": [
|
||||||
"com.mrmelon54.Draggable.quilt.DraggableQuilt"
|
"com.mrmelon54.DraggableLists.quilt.DraggableListsQuilt"
|
||||||
],
|
],
|
||||||
"modmenu": [
|
"modmenu": [
|
||||||
"com.mrmelon54.Draggable.fabriclike.ModMenuIntegration"
|
"com.mrmelon54.DraggableLists.fabriclike.ModMenuIntegration"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"depends": [
|
"depends": [
|
||||||
|
|||||||
+1
-1
@@ -13,4 +13,4 @@ include("fabric")
|
|||||||
include("quilt")
|
include("quilt")
|
||||||
include("forge")
|
include("forge")
|
||||||
|
|
||||||
rootProject.name = "draggable"
|
rootProject.name = "draggable_lists"
|
||||||
Reference in new issue
Block a user