mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 15:18:34 +01:00
Put Version and API Name in main class
This commit is contained in:
parent
6693636247
commit
020384f5ff
3 changed files with 7 additions and 2 deletions
|
@ -26,6 +26,10 @@ import java.util.List;
|
|||
|
||||
public class ActuallyAdditionsAPI{
|
||||
|
||||
public static final String MOD_ID = "ActuallyAdditions";
|
||||
public static final String API_ID = MOD_ID+"API";
|
||||
public static final String API_VERSION = "4";
|
||||
|
||||
public static List<CrusherRecipe> crusherRecipes = new ArrayList<CrusherRecipe>();
|
||||
public static List<BallOfFurReturn> ballOfFurReturnItems = new ArrayList<BallOfFurReturn>();
|
||||
public static List<TreasureChestLoot> treasureChestLoot = new ArrayList<TreasureChestLoot>();
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*
|
||||
* © 2016 Ellpeck
|
||||
*/
|
||||
@API(owner = "ActuallyAdditions", apiVersion = "4", provides = "ActuallyAdditionsAPI")
|
||||
@API(owner = ActuallyAdditionsAPI.MOD_ID, apiVersion = ActuallyAdditionsAPI.API_VERSION, provides = ActuallyAdditionsAPI.API_ID)
|
||||
package de.ellpeck.actuallyadditions.api;
|
||||
|
||||
import net.minecraftforge.fml.common.API;
|
|
@ -10,6 +10,7 @@
|
|||
|
||||
package de.ellpeck.actuallyadditions.mod.util;
|
||||
|
||||
import de.ellpeck.actuallyadditions.api.ActuallyAdditionsAPI;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
|
||||
|
@ -18,7 +19,7 @@ import java.util.Locale;
|
|||
public class ModUtil{
|
||||
public static final String VERSION = "@VERSION@"; //build.gradle
|
||||
|
||||
public static final String MOD_ID = "ActuallyAdditions";
|
||||
public static final String MOD_ID = ActuallyAdditionsAPI.MOD_ID;
|
||||
public static final String NAME = "Actually Additions";
|
||||
public static final String MOD_ID_LOWER = MOD_ID.toLowerCase(Locale.ROOT);
|
||||
|
||||
|
|
Loading…
Reference in a new issue