Added Demon Will Gauge config.

Added some code snippets trying to add a command, but added a simple Client Config for the Demon Will Gauge instead.
This commit is contained in:
WayofTime 2020-11-12 13:16:44 -05:00
parent b6931a3116
commit 7634404dac
5 changed files with 168 additions and 1 deletions

View file

@ -3,12 +3,13 @@ package wayoftime.bloodmagic.client.hud;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.vector.Vector2f;
import wayoftime.bloodmagic.BloodMagic;
import wayoftime.bloodmagic.ConfigManager;
import wayoftime.bloodmagic.client.hud.element.ElementDemonAura;
public class Elements
{
public static void registerElements()
{
ElementRegistry.registerHandler(new ResourceLocation(BloodMagic.MODID, "demon_will_aura"), new ElementDemonAura(), new Vector2f(0.01F, 0.01F));
ElementRegistry.registerHandler(new ResourceLocation(BloodMagic.MODID, "demon_will_aura"), new ElementDemonAura(), new Vector2f(ConfigManager.CLIENT.demonWillGaugeX.get().floatValue(), ConfigManager.CLIENT.demonWillGaugeY.get().floatValue()));
}
}