-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1d28cb5
commit d0cb007
Showing
47 changed files
with
340 additions
and
388 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Java with Gradle | |
|
||
on: | ||
push: | ||
branches: [master] | ||
branches: [1.19.4] | ||
|
||
jobs: | ||
build: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,53 @@ | ||
import net.fabricmc.loom.api.LoomGradleExtensionAPI | ||
|
||
plugins { | ||
java | ||
id("architectury-plugin") version "3.4-SNAPSHOT" | ||
id("dev.architectury.loom") version "1.4-SNAPSHOT" apply false | ||
} | ||
|
||
val modVersion: String by extra | ||
val minecraftVersion: String by extra | ||
|
||
architectury { | ||
minecraft = minecraftVersion | ||
} | ||
|
||
subprojects { | ||
apply(plugin = "dev.architectury.loom") | ||
|
||
base.archivesName.set("PacketFixer-" + project.name) | ||
|
||
configure<LoomGradleExtensionAPI> { | ||
silentMojangMappingsLicense() | ||
} | ||
|
||
repositories { | ||
|
||
} | ||
|
||
dependencies { | ||
"minecraft"("com.mojang:minecraft:$minecraftVersion") | ||
"mappings"(project.the<LoomGradleExtensionAPI>().officialMojangMappings()) | ||
} | ||
} | ||
|
||
allprojects { | ||
apply(plugin = "java") | ||
apply(plugin = "architectury-plugin") | ||
|
||
version = "$modVersion-$minecraftVersion" | ||
group = "net.tonimatasdev" | ||
version = "$minecraftVersion-$modVersion" | ||
group = "dev.tonimatas.packetfixer" | ||
|
||
base.archivesName.set("PacketFixer-" + project.name) | ||
repositories { | ||
|
||
} | ||
|
||
tasks.withType<JavaCompile> { | ||
options.encoding = "UTF-8" | ||
} | ||
|
||
java { | ||
withSourcesJar() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
val fabricLoaderVersion: String by extra | ||
|
||
dependencies { | ||
modImplementation("net.fabricmc:fabric-loader:$fabricLoaderVersion") | ||
} | ||
|
||
architectury { | ||
common("fabric", "forge", "neoforge") | ||
} | ||
|
||
loom { | ||
accessWidenerPath.set(file("src/main/resources/cerium.accesswidener")) | ||
} |
10 changes: 10 additions & 0 deletions
10
common/src/main/java/dev/tonimatas/packetfixer/PacketFixer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package dev.tonimatas.packetfixer; | ||
|
||
import com.mojang.logging.LogUtils; | ||
public class PacketFixer { | ||
public static final String MOD_ID = "packetfixer"; | ||
|
||
public static void init() { | ||
LogUtils.getLogger().info("Packet Fixer has been initialized successfully"); | ||
} | ||
} |
3 changes: 1 addition & 2 deletions
3
.../ClientboundCustomPayloadPacketMixin.java → .../ClientboundCustomPayloadPacketMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...rforge/mixin/CompressionDecoderMixin.java → ...fixer/mixins/CompressionDecoderMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...tfixerforge/mixin/PacketEncoderMixin.java → ...acketfixer/mixins/PacketEncoderMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...in/ServerboundCustomQueryPacketMixin.java → ...ns/ServerboundCustomQueryPacketMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...tfixerforge/mixin/SizePrependerMixin.java → ...acketfixer/mixins/SizePrependerMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ixerforge/mixin/SplitterHandlerMixin.java → ...ketfixer/mixins/SplitterHandlerMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
common/src/main/java/dev/tonimatas/packetfixer/util/Hooks.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package dev.tonimatas.packetfixer.util; | ||
|
||
import dev.architectury.injectables.annotations.ExpectPlatform; | ||
import org.apache.commons.lang3.NotImplementedException; | ||
|
||
public class Hooks { | ||
@ExpectPlatform | ||
public static boolean isModLoaded(String modId) { | ||
throw new NotImplementedException(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessWidener v2 named | ||
|
||
mutable field net/minecraft/network/protocol/game/ClientboundAddEntityPacket data I |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
fabric/src/main/java/dev/tonimatas/packetfixer/PacketFixerFabric.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package dev.tonimatas.packetfixer; | ||
|
||
import net.fabricmc.api.ModInitializer; | ||
|
||
public class PacketFixerFabric implements ModInitializer { | ||
@Override | ||
public void onInitialize() { | ||
PacketFixer.init(); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
fabric/src/main/java/dev/tonimatas/packetfixer/util/fabric/HooksImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package dev.tonimatas.packetfixer.util.fabric; | ||
|
||
import net.fabricmc.loader.api.FabricLoader; | ||
|
||
@SuppressWarnings("unused") | ||
public class HooksImpl { | ||
public static boolean isModLoaded(String modId) { | ||
return FabricLoader.getInstance().isModLoaded(modId); | ||
} | ||
} |
Oops, something went wrong.