mirror of
https://github.com/FalsePattern/FalsePatternLib.git
synced 2026-11-11 07:57:45 +00:00
move coremod stuff into a separate package
This commit is contained in:
5 files changed
+7
-7
No files matched your search
@@ -0,0 +1,44 @@
|
||||
package com.falsepattern.lib.internal;
|
||||
|
||||
import com.google.common.eventbus.EventBus;
|
||||
import cpw.mods.fml.common.DummyModContainer;
|
||||
import cpw.mods.fml.common.LoadController;
|
||||
import cpw.mods.fml.common.ModMetadata;
|
||||
import lombok.Getter;
|
||||
import lombok.val;
|
||||
import net.minecraft.launchwrapper.Launch;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* Utility class used by FalsePatternLib's internal code. This can change between versions without notice, so do not use this in your code!
|
||||
*/
|
||||
public class FalsePatternLib extends DummyModContainer {
|
||||
@Getter
|
||||
private static final Logger log = LogManager.getLogger(ModInfo.MODNAME);
|
||||
|
||||
@Getter
|
||||
private static final boolean developerEnvironment = (boolean) Launch.blackboard.get("fml.deobfuscatedEnvironment");
|
||||
|
||||
public FalsePatternLib() {
|
||||
super(new ModMetadata());
|
||||
log.info("All your libraries are belong to us!");
|
||||
val meta = getMetadata();
|
||||
meta.modId = ModInfo.MODID;
|
||||
meta.name = ModInfo.MODNAME;
|
||||
meta.version = ModInfo.VERSION;
|
||||
meta.url = ModInfo.URL;
|
||||
meta.credits = ModInfo.CREDITS;
|
||||
meta.authorList = Arrays.asList(ModInfo.AUTHORS);
|
||||
meta.description = ModInfo.DESCRIPTION;
|
||||
meta.useDependencyInformation = true;
|
||||
}
|
||||
|
||||
@SuppressWarnings("UnstableApiUsage")
|
||||
@Override
|
||||
public boolean registerBus(EventBus bus, LoadController controller) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user