use of net.minecraftforge.common.config.Property in project ArsMagica2 by Mithion.
the class AMConfig method setAuraScale.
public void setAuraScale(float scale) {
if (scale < 1)
scale = 1;
if (scale > 200)
scale = 200;
Property prop = get(CATEGORY_BETA, KEY_AuraScale, 50D);
prop.set(scale);
this.AuraScale = scale;
}
use of net.minecraftforge.common.config.Property in project ArsMagica2 by Mithion.
the class AMConfig method setAuraColorDefault.
public void setAuraColorDefault(boolean value) {
Property prop = get(CATEGORY_BETA, KEY_AuraColorDefault, true);
prop.set(value);
this.AuraDefaultColor = value;
}
use of net.minecraftforge.common.config.Property in project ArsMagica2 by Mithion.
the class AMConfig method setAuraAlpha.
public void setAuraAlpha(float alpha) {
if (alpha < 0)
alpha = 0;
if (alpha > 100)
alpha = 100;
Property prop = get(CATEGORY_BETA, KEY_AuraAlpha, 255D);
prop.set(alpha);
this.AuraAlpha = alpha;
}
use of net.minecraftforge.common.config.Property in project ArsMagica2 by Mithion.
the class AMConfig method updateAMVector2.
private void updateAMVector2(String keyX, String keyY, AMVector2 value) {
Property prop;
prop = get(CATEGORY_UI, keyX, 0);
prop.set(value.x);
prop = get(CATEGORY_UI, keyY, 0);
prop.set(value.y);
}
use of net.minecraftforge.common.config.Property in project ArsMagica2 by Mithion.
the class AMConfig method setAuraColorRandom.
public void setAuraColorRandom(boolean value) {
Property prop = get(CATEGORY_BETA, KEY_AuraColorRandomize, false);
prop.set(value);
this.AuraRandomColor = value;
}
Aggregations