mirror of
https://github.com/darksaid98/draggable_lists.git
synced 2026-12-01 14:38:47 +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
|
||||
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 {
|
||||
group = "com.mrmelon54.Draggable"
|
||||
group = "com.mrmelon54.DraggableLists"
|
||||
mergedJarName = "${project.archivesBaseName}-mc${project.minecraft_version}-${project.mod_version}-${getVersionMetadata()}.jar"
|
||||
outputDir = "build/libs/merged"
|
||||
}
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ architectury {
|
||||
}
|
||||
|
||||
loom {
|
||||
accessWidenerPath = file("src/main/resources/draggable.accesswidener")
|
||||
accessWidenerPath = file("src/main/resources/draggable_lists.accesswidener")
|
||||
}
|
||||
|
||||
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.serializer.JanksonConfigSerializer;
|
||||
import net.minecraft.client.gui.screens.Screen;
|
||||
@@ -9,7 +9,7 @@ import net.minecraft.server.packs.repository.Pack;
|
||||
|
||||
import java.util.function.Supplier;
|
||||
|
||||
public class Draggable {
|
||||
public class DraggableLists {
|
||||
public static final String MOD_ID = "draggable";
|
||||
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.annotation.Config;
|
||||
|
||||
@Config(name = "draggable")
|
||||
@Config(name = "draggable_lists")
|
||||
@Config.Gui.Background("minecraft:textures/block/brain_coral_block.png")
|
||||
public class ConfigStructure implements ConfigData {
|
||||
public boolean disableResourcePackArrows = true;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.mrmelon54.Draggable.duck;
|
||||
package com.mrmelon54.DraggableLists.duck;
|
||||
|
||||
public interface AbstractPackDuckProvider {
|
||||
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;
|
||||
|
||||
+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.screens.packs.PackSelectionModel;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.mrmelon54.Draggable.duck;
|
||||
package com.mrmelon54.DraggableLists.duck;
|
||||
|
||||
public interface ResourcePackOrganizerDuckProvider {
|
||||
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.multiplayer.ServerData;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.mrmelon54.Draggable.duck;
|
||||
package com.mrmelon54.DraggableLists.duck;
|
||||
|
||||
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 org.spongepowered.asm.mixin.Final;
|
||||
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.Draggable.duck.AbstractPackDuckProvider;
|
||||
import com.mrmelon54.Draggable.duck.ResourcePackOrganizerDuckProvider;
|
||||
import com.mrmelon54.DraggableLists.DraggableLists;
|
||||
import com.mrmelon54.DraggableLists.duck.AbstractPackDuckProvider;
|
||||
import com.mrmelon54.DraggableLists.duck.ResourcePackOrganizerDuckProvider;
|
||||
import net.minecraft.client.gui.screens.packs.PackSelectionModel;
|
||||
import net.minecraft.server.packs.repository.Pack;
|
||||
import org.spongepowered.asm.mixin.Dynamic;
|
||||
@@ -29,14 +29,14 @@ public abstract class MixinPackSelectionModel_EntryBase implements AbstractPackD
|
||||
|
||||
@Override
|
||||
public void moveTo(int j) {
|
||||
if (Draggable.shouldNotTouch(pack)) return;
|
||||
if (DraggableLists.shouldNotTouch(pack)) return;
|
||||
|
||||
List<Pack> list = getSelfList();
|
||||
list.remove(pack);
|
||||
list.add(j, pack);
|
||||
|
||||
// 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.removeAll(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.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.Draggable.duck.AbstractPackDuckProvider;
|
||||
import com.mrmelon54.Draggable.duck.ResourcePackEntryDuckProvider;
|
||||
import com.mrmelon54.DraggableLists.DraggableLists;
|
||||
import com.mrmelon54.DraggableLists.duck.AbstractPackDuckProvider;
|
||||
import com.mrmelon54.DraggableLists.duck.ResourcePackEntryDuckProvider;
|
||||
import net.fabricmc.api.EnvType;
|
||||
import net.fabricmc.api.Environment;
|
||||
import net.minecraft.Util;
|
||||
@@ -174,6 +174,6 @@ public abstract class MixinTransferableSelectionList extends ObjectSelectionList
|
||||
}
|
||||
|
||||
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.mrmelon54.Draggable.Draggable;
|
||||
import com.mrmelon54.Draggable.duck.ResourcePackEntryDuckProvider;
|
||||
import com.mrmelon54.DraggableLists.DraggableLists;
|
||||
import com.mrmelon54.DraggableLists.duck.ResourcePackEntryDuckProvider;
|
||||
import net.minecraft.client.gui.GuiGraphics;
|
||||
import net.minecraft.client.gui.components.ObjectSelectionList;
|
||||
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))
|
||||
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);
|
||||
}
|
||||
|
||||
@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) {
|
||||
if (Draggable.getConfig().disableResourcePackArrows) return;
|
||||
if (DraggableLists.getConfig().disableResourcePackArrows) return;
|
||||
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))
|
||||
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);
|
||||
}
|
||||
|
||||
@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) {
|
||||
if (Draggable.getConfig().disableResourcePackArrows) return;
|
||||
if (DraggableLists.getConfig().disableResourcePackArrows) return;
|
||||
instance.blit(resourceLocation, i, j, f, g, k, l, m, n);
|
||||
}
|
||||
|
||||
@Inject(method = "mouseClicked", at = @At("HEAD"), cancellable = true)
|
||||
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;
|
||||
|
||||
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.multiplayer.JoinMultiplayerScreen;
|
||||
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.mrmelon54.Draggable.Draggable;
|
||||
import com.mrmelon54.Draggable.duck.ServerEntryDuckProvider;
|
||||
import com.mrmelon54.DraggableLists.DraggableLists;
|
||||
import com.mrmelon54.DraggableLists.duck.ServerEntryDuckProvider;
|
||||
import net.minecraft.client.gui.GuiGraphics;
|
||||
import net.minecraft.client.gui.components.ObjectSelectionList;
|
||||
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))
|
||||
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);
|
||||
}
|
||||
|
||||
@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) {
|
||||
if (Draggable.getConfig().disableServerArrows) return;
|
||||
if (DraggableLists.getConfig().disableServerArrows) return;
|
||||
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))
|
||||
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);
|
||||
}
|
||||
|
||||
@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) {
|
||||
if (Draggable.getConfig().disableServerArrows) return;
|
||||
if (DraggableLists.getConfig().disableServerArrows) return;
|
||||
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.ServerList;
|
||||
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.Draggable.duck.ServerEntryDuckProvider;
|
||||
import com.mrmelon54.Draggable.duck.ServerListDuckProvider;
|
||||
import com.mrmelon54.DraggableLists.duck.MultiplayerScreenDuckProvider;
|
||||
import com.mrmelon54.DraggableLists.duck.ServerEntryDuckProvider;
|
||||
import com.mrmelon54.DraggableLists.duck.ServerListDuckProvider;
|
||||
import net.minecraft.Util;
|
||||
import net.minecraft.client.Minecraft;
|
||||
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,
|
||||
"package": "com.mrmelon54.Draggable.mixin",
|
||||
"package": "com.mrmelon54.DraggableLists.mixin",
|
||||
"compatibilityLevel": "JAVA_17",
|
||||
"minVersion": "0.8",
|
||||
"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.ModMenuApi;
|
||||
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,
|
||||
"package": "com.mrmelon54.Draggable.mixin.fabric",
|
||||
"package": "com.mrmelon54.DraggableLists.mixin.fabric",
|
||||
"compatibilityLevel": "JAVA_17",
|
||||
"minVersion": "0.8",
|
||||
"client": [
|
||||
@@ -1,31 +1,31 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"id": "draggable",
|
||||
"id": "draggable_lists",
|
||||
"version": "${version}",
|
||||
"name": "Draggable",
|
||||
"name": "Draggable Lists",
|
||||
"description": "Draggable resource packs, datapacks, servers and worlds",
|
||||
"authors": [
|
||||
"MrMelon54"
|
||||
],
|
||||
"contact": {
|
||||
"homepage": "https://mrmelon54.com/minecraft/draggable",
|
||||
"sources": "https://github.com/MrMelon54/draggable",
|
||||
"issues": "https://github.com/MrMelon54/draggable/issues"
|
||||
"homepage": "https://mrmelon54.com/minecraft/draggable-lists",
|
||||
"sources": "https://github.com/MrMelon54/draggable_lists",
|
||||
"issues": "https://github.com/MrMelon54/draggable_lists/issues"
|
||||
},
|
||||
"license": "GPL-3.0-only",
|
||||
"icon": "icon.png",
|
||||
"environment": "*",
|
||||
"entrypoints": {
|
||||
"main": [
|
||||
"com.mrmelon54.Draggable.fabric.DraggableFabric"
|
||||
"com.mrmelon54.DraggableLists.fabric.DraggableListsFabric"
|
||||
],
|
||||
"modmenu": [
|
||||
"com.mrmelon54.Draggable.fabriclike.ModMenuIntegration"
|
||||
"com.mrmelon54.DraggableLists.fabriclike.ModMenuIntegration"
|
||||
]
|
||||
},
|
||||
"mixins": [
|
||||
"draggable.mixins.json",
|
||||
"draggable-common.mixins.json"
|
||||
"draggable_lists.mixins.json",
|
||||
"draggable_lists-common.mixins.json"
|
||||
],
|
||||
"depends": {
|
||||
"fabric": "*",
|
||||
|
||||
+2
-2
@@ -14,8 +14,8 @@ loom {
|
||||
convertAccessWideners = true
|
||||
extraAccessWideners.add loom.accessWidenerPath.get().asFile.name
|
||||
|
||||
mixinConfig "draggable-common.mixins.json"
|
||||
mixinConfig "draggable.mixins.json"
|
||||
mixinConfig "draggable_lists-common.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 com.mrmelon54.Draggable.Draggable;
|
||||
import net.minecraftforge.client.ConfigScreenHandler;
|
||||
import net.minecraftforge.client.ConfigScreenHandler.ConfigScreenFactory;
|
||||
import net.minecraftforge.fml.ModLoadingContext;
|
||||
import net.minecraftforge.fml.common.Mod;
|
||||
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
|
||||
|
||||
@Mod(Draggable.MOD_ID)
|
||||
public class DraggableForge {
|
||||
public DraggableForge() {
|
||||
@Mod(DraggableLists.MOD_ID)
|
||||
public class DraggableListsForge {
|
||||
public DraggableListsForge() {
|
||||
// Submit our event bus to let architectury register our content on the right time
|
||||
EventBuses.registerModEventBus(Draggable.MOD_ID, FMLJavaModLoadingContext.get().getModEventBus());
|
||||
ModLoadingContext.get().registerExtensionPoint(ConfigScreenFactory.class, () -> new ConfigScreenFactory((mc, screen) -> Draggable.createConfigScreen(screen).get()));
|
||||
|
||||
Draggable.init();
|
||||
EventBuses.registerModEventBus(DraggableLists.MOD_ID, FMLJavaModLoadingContext.get().getModEventBus());
|
||||
ModLoadingContext.get().registerExtensionPoint(ConfigScreenFactory.class, () -> new ConfigScreenFactory((mc, screen) -> DraggableLists.createConfigScreen(screen).get()));
|
||||
DraggableLists.init();
|
||||
}
|
||||
}
|
||||
@@ -1,31 +1,31 @@
|
||||
modLoader = "javafml"
|
||||
loaderVersion = "[46,)"
|
||||
issueTrackerURL = "https://github.com/MrMelon54/draggable/issues"
|
||||
issueTrackerURL = "https://github.com/MrMelon54/draggable_lists/issues"
|
||||
license = "GPL-3.0-only"
|
||||
|
||||
[[mods]]
|
||||
modId = "draggable"
|
||||
modId = "draggable_lists"
|
||||
version = "${version}"
|
||||
displayName = "Draggable"
|
||||
displayName = "Draggable Lists"
|
||||
authors = "MrMelon54"
|
||||
description = "Draggable resource packs, datapacks, servers and worlds"
|
||||
logoFile = "/icon.png"
|
||||
|
||||
[[dependencies.draggable]]
|
||||
[[dependencies.draggable_lists]]
|
||||
modId = "forge"
|
||||
mandatory = true
|
||||
versionRange = "[46,)"
|
||||
ordering = "NONE"
|
||||
side = "BOTH"
|
||||
|
||||
[[dependencies.draggable]]
|
||||
[[dependencies.draggable_lists]]
|
||||
modId = "minecraft"
|
||||
mandatory = true
|
||||
versionRange = "[1.20,)"
|
||||
ordering = "NONE"
|
||||
side = "BOTH"
|
||||
|
||||
[[dependencies.draggable]]
|
||||
[[dependencies.draggable_lists]]
|
||||
modId = "architectury"
|
||||
mandatory = true
|
||||
versionRange = "[9.0.0,)"
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"required": true,
|
||||
"package": "com.mrmelon54.Draggable.mixin.forge",
|
||||
"package": "com.mrmelon54.DraggableLists.mixin.forge",
|
||||
"compatibilityLevel": "JAVA_17",
|
||||
"minVersion": "0.8",
|
||||
"client": [
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"pack": {
|
||||
"description": "Draggable",
|
||||
"description": "Draggable Lists",
|
||||
"pack_format": 15
|
||||
}
|
||||
}
|
||||
+4
-4
@@ -3,12 +3,12 @@ org.gradle.jvmargs=-Xmx4096M
|
||||
minecraft_version=1.20
|
||||
enabled_platforms=quilt,fabric,forge
|
||||
|
||||
archives_base_name=draggable
|
||||
mod_id=draggable
|
||||
mod_name=Draggable
|
||||
archives_base_name=draggable_lists
|
||||
mod_id=draggable_lists
|
||||
mod_name=Draggable Lists
|
||||
mod_version=1.0.0
|
||||
mod_description="Draggable resource packs, datapacks, servers and worlds"
|
||||
maven_group=com.mrmelon54.Draggable
|
||||
maven_group=com.mrmelon54.DraggableLists
|
||||
|
||||
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,
|
||||
"package": "com.mrmelon54.Draggable.mixin.fabric",
|
||||
"package": "com.mrmelon54.DraggableLists.mixin.fabric",
|
||||
"compatibilityLevel": "JAVA_17",
|
||||
"minVersion": "0.8",
|
||||
"client": [
|
||||
@@ -1,23 +1,23 @@
|
||||
{
|
||||
"schema_version": 1,
|
||||
"mixin": [
|
||||
"draggable.mixins.json",
|
||||
"draggable-common.mixins.json"
|
||||
"draggable_lists.mixins.json",
|
||||
"draggable_lists-common.mixins.json"
|
||||
],
|
||||
"quilt_loader": {
|
||||
"group": "${group}",
|
||||
"id": "draggable",
|
||||
"id": "draggable_lists",
|
||||
"version": "${version}",
|
||||
"metadata": {
|
||||
"name": "Draggable",
|
||||
"name": "Draggable Lists",
|
||||
"description": "Draggable resource packs, datapacks, servers and worlds",
|
||||
"contributors": {
|
||||
"MrMelon54": "Owner"
|
||||
},
|
||||
"contact": {
|
||||
"homepage": "https://mrmelon54.com/minecraft/draggable",
|
||||
"sources": "https://github.com/MrMelon54/draggable",
|
||||
"issues": "https://github.com/MrMelon54/draggable/issues"
|
||||
"homepage": "https://mrmelon54.com/minecraft/draggable-lists",
|
||||
"sources": "https://github.com/MrMelon54/draggable_lists",
|
||||
"issues": "https://github.com/MrMelon54/draggable_lists/issues"
|
||||
},
|
||||
"license": "GPL-3.0-only",
|
||||
"icon": "icon.png"
|
||||
@@ -25,10 +25,10 @@
|
||||
"intermediate_mappings": "net.fabricmc:intermediary",
|
||||
"entrypoints": {
|
||||
"init": [
|
||||
"com.mrmelon54.Draggable.quilt.DraggableQuilt"
|
||||
"com.mrmelon54.DraggableLists.quilt.DraggableListsQuilt"
|
||||
],
|
||||
"modmenu": [
|
||||
"com.mrmelon54.Draggable.fabriclike.ModMenuIntegration"
|
||||
"com.mrmelon54.DraggableLists.fabriclike.ModMenuIntegration"
|
||||
]
|
||||
},
|
||||
"depends": [
|
||||
|
||||
+1
-1
@@ -13,4 +13,4 @@ include("fabric")
|
||||
include("quilt")
|
||||
include("forge")
|
||||
|
||||
rootProject.name = "draggable"
|
||||
rootProject.name = "draggable_lists"
|
||||
Reference in new issue
Block a user