mirror of
https://github.com/GTMEGA/EndlessIDs.git
synced 2026-11-25 01:44:31 +00:00
MoreFunQuicksandMod
This commit is contained in:
7 files changed
+62
-29
No files matched your search
+22
@@ -0,0 +1,22 @@
|
||||
package com.falsepattern.endlessids.mixin.mixins.common.mfqm;
|
||||
|
||||
import MoreFunQuicksandMod.main.MFQM;
|
||||
import com.falsepattern.endlessids.constants.ExtendedConstants;
|
||||
import com.falsepattern.endlessids.constants.VanillaConstants;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.Constant;
|
||||
import org.spongepowered.asm.mixin.injection.ModifyConstant;
|
||||
|
||||
@Mixin(value = MFQM.class, remap = false)
|
||||
public abstract class MFQMDataWatcherMixin {
|
||||
@ModifyConstant(method = "preInit",
|
||||
constant = {
|
||||
@Constant(intValue = VanillaConstants.maxWatchableID, ordinal = 0),
|
||||
@Constant(intValue = VanillaConstants.maxWatchableID, ordinal = 1),
|
||||
@Constant(intValue = VanillaConstants.maxWatchableID, ordinal = 2)
|
||||
},
|
||||
require = 3)
|
||||
private int extendWatchableIDLimit(int constant) {
|
||||
return ExtendedConstants.maxWatchableID;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.falsepattern.endlessids.mixin.mixins.common.mfqm;
|
||||
|
||||
import MoreFunQuicksandMod.main.MFQM;
|
||||
import com.falsepattern.endlessids.constants.ExtendedConstants;
|
||||
import com.falsepattern.endlessids.constants.VanillaConstants;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.Constant;
|
||||
import org.spongepowered.asm.mixin.injection.ModifyConstant;
|
||||
|
||||
@Mixin(value = MFQM.class, remap = false)
|
||||
public abstract class MFQMMixin {
|
||||
@ModifyConstant(method = "preInit",
|
||||
constant = {
|
||||
@Constant(intValue = VanillaConstants.maxBlockID),
|
||||
@Constant(intValue = 31999)
|
||||
},
|
||||
require = 2)
|
||||
private int extendWatchableIDLimit(int constant) {
|
||||
return ExtendedConstants.maxBlockID;
|
||||
}
|
||||
|
||||
@ModifyConstant(method = "preInit",
|
||||
constant = @Constant(stringValue = "Must be different in range between 20 and 31"),
|
||||
require = 1)
|
||||
private String changeConfigText(String constant) {
|
||||
return constant + " (Notice from EndlessIDs: If you enable the ExtendDataWatcher config option in the endlessids config file, the maximum value will be 127 instead, same for the other datawatcher ids in this file)";
|
||||
}
|
||||
}
|
||||
@@ -46,8 +46,12 @@ public enum Mixin {
|
||||
CofhBlockHelperMixin(builder(Side.COMMON).target(TargetedMod.COFHLIB).mixin("cofhlib.BlockHelperMixin")),
|
||||
//END CoFHLib->common
|
||||
//BEGIN DragonAPI->common
|
||||
BlockPropertiesMixin(builder(Side.COMMON).target(TargetedMod.DRAGONAPI).mixin("dragonapi.BlockPropertiesMixin"))
|
||||
BlockPropertiesMixin(builder(Side.COMMON).target(TargetedMod.DRAGONAPI).mixin("dragonapi.BlockPropertiesMixin")),
|
||||
//END DragonAPI->common
|
||||
//BEGIN MFQM->common
|
||||
MFQMMixin(builder(Side.COMMON).target(TargetedMod.MFQM).mixin("mfqm.MFQMMixin")),
|
||||
MFQMDataWatcherMixin(builder(Side.COMMON).target(TargetedMod.MFQM).condition(() -> IEConfig.extendDataWatcher).mixin("mfqm.MFQMDataWatcherMixin"))
|
||||
//END MFQM->common
|
||||
;
|
||||
|
||||
public final String mixin;
|
||||
|
||||
@@ -10,7 +10,8 @@ public enum TargetedMod {
|
||||
VANILLA("Minecraft", "", "", true),
|
||||
UBC("Underground Biomes Constructs", "undergroundbiomesconstructs-", "", false),
|
||||
COFHLIB("CoFH Lib", "cofhlib-", "", false),
|
||||
DRAGONAPI("DragonAPI", "dragonapi", "", false);
|
||||
DRAGONAPI("DragonAPI", "dragonapi", "", false),
|
||||
MFQM("More Fun Quicksand Mod", "morefunquicksandmod-", "", false);
|
||||
|
||||
public final String modName;
|
||||
public final String jarNamePrefixLowercase;
|
||||
|
||||
Reference in new issue
Block a user