package com.yolp900.itsjustacharm.common.affinities;
import com.yolp900.itsjustacharm.api.IJCConstants;
import com.yolp900.itsjustacharm.api.ItsJustaCharmAPI;
import com.yolp900.itsjustacharm.api.affinities.AffinityBase;
import com.yolp900.itsjustacharm.api.affinities.IAffinity;
public class ModAffinities {
public static IAffinity Water;
public static IAffinity Earth;
public static IAffinity Fire;
public static IAffinity Air;
public static IAffinity Light;
public static IAffinity Block;
public static IAffinity Life;
public static IAffinity Speed;
public static void registerAffinities() {
Water = registerAffinity(IJCConstants.Affinities.Water);
Earth = registerAffinity(IJCConstants.Affinities.Earth);
Fire = registerAffinity(IJCConstants.Affinities.Fire);
Air = registerAffinity(IJCConstants.Affinities.Air);
Light = registerAffinity(IJCConstants.Affinities.Light);
Block = registerAffinity(IJCConstants.Affinities.Block);
Life = registerAffinity(IJCConstants.Affinities.Life);
Speed = registerAffinity(IJCConstants.Affinities.Speed);
}
public static IAffinity registerAffinity(IJCConstants.Affinities affinity) {
return registerAffinity(new AffinityBase(affinity.getName(), affinity.getTexture()));
}
private static IAffinity registerAffinity(IAffinity affinity) {
return ItsJustaCharmAPI.Affinities.registerAffinity(affinity);
}
}