Examples of IGalacticraftWorldProvider


Examples of micdoodle8.mods.galacticraft.api.world.IGalacticraftWorldProvider

 
    public static double getGravityForEntity(Entity entity)
    {
        if (entity.worldObj.provider instanceof IGalacticraftWorldProvider)
        {
            final IGalacticraftWorldProvider customProvider = (IGalacticraftWorldProvider) entity.worldObj.provider;
            return 0.08D - customProvider.getGravity();
        }
        else
        {
            return 0.08D;
        }
View Full Code Here

Examples of micdoodle8.mods.galacticraft.api.world.IGalacticraftWorldProvider

    public static double getItemGravity(EntityItem e)
    {
        if (e.worldObj.provider instanceof IGalacticraftWorldProvider)
        {
            final IGalacticraftWorldProvider customProvider = (IGalacticraftWorldProvider) e.worldObj.provider;
            return Math.max(0.002D, 0.03999999910593033D - (customProvider instanceof IOrbitDimension ? 0.05999999910593033D : customProvider.getGravity()) / 1.75D);
        }
        else
        {
            return 0.03999999910593033D;
        }
View Full Code Here

Examples of micdoodle8.mods.galacticraft.api.world.IGalacticraftWorldProvider

        ItemStack thermalPaddingLeggings = playerStats.extendedInventory.getStackInSlot(8);
        ItemStack thermalPaddingBoots = playerStats.extendedInventory.getStackInSlot(9);

        if (player.worldObj.provider instanceof IGalacticraftWorldProvider && !player.capabilities.isCreativeMode)
        {
            IGalacticraftWorldProvider provider = (IGalacticraftWorldProvider) player.worldObj.provider;
            float thermalLevelMod = provider.getThermalLevelModifier();

            if (thermalLevelMod != 0)
            {
                int thermalLevelCooldownBase = (int) Math.floor(1 / (thermalLevelMod * (thermalLevelMod > 0 ? 1 : -1)) * 200);
                int thermalLevelTickCooldown = thermalLevelCooldownBase;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.