[DEV] FTB Essentials Muting System Compat
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
archivesBaseName = "${mod_name.replace(" ", "")}-Common-${minecraft_version}"
|
||||
|
||||
dependencies {
|
||||
|
||||
stupidRemapArch("dev.ftb.mods:ftb-essentials:${ftb_essentials}")
|
||||
}
|
||||
|
||||
shadowJar {
|
||||
|
@@ -0,0 +1,16 @@
|
||||
package com.hypherionmc.craterlib.compat;
|
||||
|
||||
import com.hypherionmc.craterlib.nojang.world.entity.player.BridgedPlayer;
|
||||
import dev.ftb.mods.ftbessentials.util.FTBEPlayerData;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
public class FTBEssentials {
|
||||
|
||||
public static boolean isPlayerMuted(BridgedPlayer player) {
|
||||
Optional<FTBEPlayerData> data = FTBEPlayerData.getOrCreate(player.toMojang());
|
||||
return data.map(FTBEPlayerData::isMuted).orElse(false);
|
||||
|
||||
}
|
||||
|
||||
}
|
@@ -9,6 +9,8 @@ dependencies {
|
||||
exclude(group: "net.fabricmc.fabric-api")
|
||||
}
|
||||
|
||||
stupidRemapArch("dev.ftb.mods:ftb-essentials:${ftb_essentials}")
|
||||
|
||||
modImplementation "maven.modrinth:fabrictailor:${fabrictailor}"
|
||||
modImplementation "maven.modrinth:vanish:${vanish}"
|
||||
|
||||
|
@@ -4,6 +4,8 @@ dependencies {
|
||||
// Compat
|
||||
modImplementation("maven.modrinth:vanishmod:${vanishmod_neo}")
|
||||
|
||||
stupidRemapArch("dev.ftb.mods:ftb-essentials-neoforge:${ftb_essentials}")
|
||||
|
||||
// Do not edit or remove
|
||||
implementation project(":Common")
|
||||
}
|
||||
|
@@ -1,7 +1,7 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
id 'com.github.johnrengelman.shadow' version '8.1.1' apply false
|
||||
id "xyz.wagyourtail.unimined" version "1.2.4" apply false
|
||||
id "xyz.wagyourtail.unimined" version "1.3.9" apply false
|
||||
id "com.hypherionmc.modutils.modpublisher" version "2.1.6"
|
||||
id "com.hypherionmc.modutils.orion" version "1.0.+"
|
||||
id 'maven-publish'
|
||||
@@ -49,8 +49,10 @@ subprojects {
|
||||
configurations {
|
||||
shade
|
||||
modCompileOnly
|
||||
stupidRemapArch
|
||||
implementation.extendsFrom shade
|
||||
compileOnly.extendsFrom modCompileOnly
|
||||
compileOnly.extendsFrom stupidRemapArch
|
||||
}
|
||||
|
||||
dependencies {
|
||||
@@ -98,11 +100,17 @@ subprojects {
|
||||
mojmap()
|
||||
devNamespace "mojmap"
|
||||
}
|
||||
|
||||
mods {
|
||||
remap(configurations.stupidRemapArch) {
|
||||
catchAWNamespaceAssertion()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile).configureEach {
|
||||
it.options.encoding = 'UTF-8'
|
||||
it.options.release = 17
|
||||
it.options.release = 21
|
||||
}
|
||||
|
||||
tasks.withType(GenerateModuleMetadata).configureEach {
|
||||
|
@@ -21,7 +21,7 @@ fabric_api=0.100.1+1.21
|
||||
forge_version=50.0.6
|
||||
|
||||
# NeoForged
|
||||
neoforge_version=0.0-beta
|
||||
neoforge_version=0-beta
|
||||
|
||||
# Dependencies
|
||||
moon_config=1.0.9
|
||||
@@ -36,6 +36,7 @@ vanish=1.5.4+1.20.5
|
||||
mod_menu_version=10.0.0-beta.1
|
||||
vanishmod=1.1.12.1
|
||||
vanishmod_neo=puxrKAMr
|
||||
ftb_essentials=2101.1.0
|
||||
|
||||
# Publishing
|
||||
curse_id=867099
|
||||
|
Reference in New Issue
Block a user