Java Code Examples for net.minecraft.util.MathHelper.parseDoubleWithDefault()

The following are Jave code examples for showing how to use parseDoubleWithDefault() of the net.minecraft.util.MathHelper class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: DecompiledMinecraft   File: MapGenMineshaft.java   Source Code and License Vote up 5 votes
public MapGenMineshaft(Map<String, String> p_i2034_1_)
{
    for (Entry<String, String> entry : p_i2034_1_.entrySet())
    {
        if (((String)entry.getKey()).equals("chance"))
        {
            this.field_82673_e = MathHelper.parseDoubleWithDefault((String)entry.getValue(), this.field_82673_e);
        }
    }
}
 
Example 2
Project: DecompiledMinecraft   File: MapGenMineshaft.java   Source Code and License Vote up 5 votes
public MapGenMineshaft(Map<String, String> p_i2034_1_)
{
    for (Entry<String, String> entry : p_i2034_1_.entrySet())
    {
        if (((String)entry.getKey()).equals("chance"))
        {
            this.field_82673_e = MathHelper.parseDoubleWithDefault((String)entry.getValue(), this.field_82673_e);
        }
    }
}
 
Example 3
Project: BaseClient   File: MapGenMineshaft.java   Source Code and License Vote up 5 votes
public MapGenMineshaft(Map<String, String> p_i2034_1_)
{
    for (Entry<String, String> entry : p_i2034_1_.entrySet())
    {
        if (((String)entry.getKey()).equals("chance"))
        {
            this.field_82673_e = MathHelper.parseDoubleWithDefault((String)entry.getValue(), this.field_82673_e);
        }
    }
}
 
Example 4
Project: BaseClient   File: MapGenMineshaft.java   Source Code and License Vote up 5 votes
public MapGenMineshaft(Map<String, String> p_i2034_1_)
{
    for (Entry<String, String> entry : p_i2034_1_.entrySet())
    {
        if (((String)entry.getKey()).equals("chance"))
        {
            this.field_82673_e = MathHelper.parseDoubleWithDefault((String)entry.getValue(), this.field_82673_e);
        }
    }
}
 
Example 5
Project: DecompiledMinecraft   File: RealmsMth.java   Source Code and License Vote up 4 votes
public static double getDouble(String p_getDouble_0_, double p_getDouble_1_)
{
    return MathHelper.parseDoubleWithDefault(p_getDouble_0_, p_getDouble_1_);
}
 
Example 6
Project: BaseClient   File: RealmsMth.java   Source Code and License Vote up 4 votes
public static double getDouble(String p_getDouble_0_, double p_getDouble_1_)
{
    return MathHelper.parseDoubleWithDefault(p_getDouble_0_, p_getDouble_1_);
}
 
Example 7
Project: BaseClient   File: RealmsMth.java   Source Code and License Vote up 4 votes
public static double getDouble(String p_getDouble_0_, double p_getDouble_1_)
{
    return MathHelper.parseDoubleWithDefault(p_getDouble_0_, p_getDouble_1_);
}