mirror of
https://github.com/GTMEGA/EndlessIDs.git
synced 2026-11-17 19:15:05 +00:00
DragonAPI
This commit is contained in:
4 files changed
+28
-2
No files matched your search
+18
@@ -0,0 +1,18 @@
|
||||
package com.falsepattern.endlessids.mixin.mixins.common.dragonapi;
|
||||
|
||||
import Reika.DragonAPI.Extras.BlockProperties;
|
||||
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(BlockProperties.class)
|
||||
public abstract class BlockPropertiesMixin {
|
||||
@ModifyConstant(method = "<clinit>",
|
||||
constant = @Constant(intValue = VanillaConstants.blockIDCount),
|
||||
require = 1)
|
||||
private static int extendColorArray(int constant) {
|
||||
return ExtendedConstants.blockIDCount;
|
||||
}
|
||||
}
|
||||
@@ -43,8 +43,11 @@ public enum Mixin {
|
||||
BiomeUndergroundDecoratorMixin(builder(Side.COMMON).target(TargetedMod.UBC).mixin("ubc.BiomeUndergroundDecoratorMixin")),
|
||||
//END UBC->common
|
||||
//BEGIN CoFHLib->common
|
||||
CofhBlockHelperMixin(builder(Side.COMMON).target(TargetedMod.COFHLIB).mixin("cofhlib.BlockHelperMixin"))
|
||||
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"))
|
||||
//END DragonAPI->common
|
||||
;
|
||||
|
||||
public final String mixin;
|
||||
|
||||
@@ -9,7 +9,8 @@ public enum TargetedMod {
|
||||
|
||||
VANILLA("Minecraft", "", "", true),
|
||||
UBC("Underground Biomes Constructs", "undergroundbiomesconstructs-", "", false),
|
||||
COFHLIB("CoFH Lib", "cofhlib-", "", false);
|
||||
COFHLIB("CoFH Lib", "cofhlib-", "", false),
|
||||
DRAGONAPI("DragonAPI", "dragonapi", "", false);
|
||||
|
||||
public final String modName;
|
||||
public final String jarNamePrefixLowercase;
|
||||
|
||||
Reference in new issue
Block a user