added a package-info to the API

This commit is contained in:
Ellpeck 2018-11-17 21:54:04 +01:00
parent 4e7b46c526
commit 9880bcf9bd
2 changed files with 8 additions and 1 deletions

View file

@ -33,9 +33,12 @@ import java.util.function.Supplier;
* internal mod functions not exposed to the API.
*/
public final class NaturesAuraAPI {
public static final String MOD_ID = "naturesaura";
private static IInternalHooks instance = new StubHooks();
public static final String MOD_ID = "naturesaura";
public static final String API_ID = MOD_ID + "api";
public static final String VERSION = "1";
/**
* The list of all {@link AltarRecipe} instances which are the recipes used
* by the Natural Altar. Newly created recipes can be easily added using

View file

@ -0,0 +1,4 @@
@API(owner = NaturesAuraAPI.MOD_ID, provides = NaturesAuraAPI.API_ID, apiVersion = NaturesAuraAPI.VERSION)
package de.ellpeck.naturesaura.api;
import net.minecraftforge.fml.common.API;