mirror of
https://github.com/GTMEGA/EndlessIDs.git
synced 2026-11-22 18:59:39 +00:00
CoFH Lib
This commit is contained in:
6 files changed
+35
-29
No files matched your search
+18
@@ -0,0 +1,18 @@
|
||||
package com.falsepattern.endlessids.mixin.mixins.common.cofhlib;
|
||||
|
||||
import cofh.lib.util.helpers.BlockHelper;
|
||||
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(BlockHelper.class)
|
||||
public abstract class BlockHelperMixin {
|
||||
@ModifyConstant(method = "<clinit>",
|
||||
constant = {@Constant(intValue = VanillaConstants.blockIDCount), @Constant(intValue = VanillaConstants.blockIDCount / 4)},
|
||||
require = 1)
|
||||
private static int extend(int constant) {
|
||||
return ExtendedConstants.blockIDCount;
|
||||
}
|
||||
}
|
||||
@@ -41,9 +41,14 @@ public enum Mixin {
|
||||
//BEGIN UBC
|
||||
//BEGIN common
|
||||
OreUBifierMixin(builder(Side.COMMON).target(TargetedMod.UBC).mixin("ubc.OreUBifierMixin")),
|
||||
BiomeUndergroundDecoratorMixin(builder(Side.COMMON).target(TargetedMod.UBC).mixin("ubc.BiomeUndergroundDecoratorMixin"))
|
||||
BiomeUndergroundDecoratorMixin(builder(Side.COMMON).target(TargetedMod.UBC).mixin("ubc.BiomeUndergroundDecoratorMixin")),
|
||||
//END common
|
||||
//END ubc
|
||||
//END UBC
|
||||
//BEGIN CoFHLib
|
||||
//BEGIN common
|
||||
CofhBlockHelperMixin(builder(Side.COMMON).target(TargetedMod.COFHLIB).mixin("cofhlib.BlockHelperMixin"))
|
||||
//END common
|
||||
//END CoFHLib
|
||||
;
|
||||
|
||||
public final String mixin;
|
||||
|
||||
@@ -8,7 +8,8 @@ import java.nio.file.Path;
|
||||
public enum TargetedMod {
|
||||
|
||||
VANILLA("Minecraft", "", "", true),
|
||||
UBC("UndergroundBiomesConstructs", "undergroundbiomesconstructs-1.7.10", "", false);
|
||||
UBC("Underground Biomes Constructs", "undergroundbiomesconstructs-", "", false),
|
||||
COFHLIB("CoFH Lib", "cofhlib-", "", false);
|
||||
|
||||
public final String modName;
|
||||
public final String jarNamePrefixLowercase;
|
||||
|
||||
Reference in new issue
Block a user