Search in sources :

Example 36 with Property

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;
}
Also used : Property(net.minecraftforge.common.config.Property)

Example 37 with Property

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;
}
Also used : Property(net.minecraftforge.common.config.Property)

Example 38 with Property

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;
}
Also used : Property(net.minecraftforge.common.config.Property)

Example 39 with Property

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);
}
Also used : Property(net.minecraftforge.common.config.Property)

Example 40 with Property

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;
}
Also used : Property(net.minecraftforge.common.config.Property)

Aggregations

Property (net.minecraftforge.common.config.Property)50 ArrayList (java.util.ArrayList)8 File (java.io.File)2 Configuration (net.minecraftforge.common.config.Configuration)2 AMVector2 (am2.api.math.AMVector2)1 IOException (java.io.IOException)1 Date (java.util.Date)1 IRailcraftModule (mods.railcraft.api.core.IRailcraftModule)1 IVariantEnum (mods.railcraft.api.core.IVariantEnum)1 RailcraftModule (mods.railcraft.api.core.RailcraftModule)1 RailcraftBlocks (mods.railcraft.common.blocks.RailcraftBlocks)1 TrackKits (mods.railcraft.common.blocks.tracks.outfitted.TrackKits)1 RailcraftItems (mods.railcraft.common.items.RailcraftItems)1 ItemMap (mods.railcraft.common.util.collections.ItemMap)1 ConfigCategory (net.minecraftforge.common.config.ConfigCategory)1 ModContainer (net.minecraftforge.fml.common.ModContainer)1