mirror of
https://github.com/GTNewHorizons/Draconic-Evolution.git
synced 2026-11-27 15:33:08 +00:00
spotless
This commit is contained in:
1 parent
062453df41
commit
c39fa5a19c
4 files changed
+14
-14
No files matched your search
+4
-4
@@ -3,7 +3,6 @@ package com.brandon3055.draconicevolution.client.gui.componentguis;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import com.brandon3055.draconicevolution.common.handler.ConfigHandler;
|
||||
import net.minecraft.client.renderer.RenderHelper;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
|
||||
import net.minecraft.util.EnumChatFormatting;
|
||||
@@ -21,6 +20,7 @@ import com.brandon3055.brandonscore.client.utills.GuiHelper;
|
||||
import com.brandon3055.brandonscore.common.utills.Utills;
|
||||
import com.brandon3055.draconicevolution.client.handler.ResourceHandler;
|
||||
import com.brandon3055.draconicevolution.common.container.ContainerReactor;
|
||||
import com.brandon3055.draconicevolution.common.handler.ConfigHandler;
|
||||
import com.brandon3055.draconicevolution.common.tileentities.multiblocktiles.reactor.TileReactorCore;
|
||||
import com.brandon3055.draconicevolution.common.tileentities.multiblocktiles.reactor.TileReactorCore.ReactorState;
|
||||
|
||||
@@ -206,9 +206,9 @@ public class GUIReactor extends GUIBase {
|
||||
100D) + "%");
|
||||
}
|
||||
text.add(core.convertedFuel + " / " + (core.convertedFuel + core.reactorFuel));
|
||||
text.add("Full: " + (
|
||||
Utills.round(
|
||||
(float) (core.convertedFuel + core.reactorFuel)/ ConfigHandler.reactorFuelStorage*100,
|
||||
text.add(
|
||||
"Full: " + (Utills.round(
|
||||
(float) (core.convertedFuel + core.reactorFuel) / ConfigHandler.reactorFuelStorage * 100,
|
||||
1000)) + "%");
|
||||
drawHoveringText(text, mouseX, mouseY, fontRendererObj);
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,7 +2,6 @@ package com.brandon3055.draconicevolution.common.container;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import com.brandon3055.draconicevolution.common.handler.ConfigHandler;
|
||||
import net.minecraft.entity.item.EntityItem;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
@@ -11,6 +10,7 @@ import net.minecraft.item.ItemStack;
|
||||
|
||||
import com.brandon3055.draconicevolution.common.ModBlocks;
|
||||
import com.brandon3055.draconicevolution.common.ModItems;
|
||||
import com.brandon3055.draconicevolution.common.handler.ConfigHandler;
|
||||
import com.brandon3055.draconicevolution.common.inventory.GenericInventory;
|
||||
import com.brandon3055.draconicevolution.common.tileentities.multiblocktiles.reactor.TileReactorCore;
|
||||
import com.brandon3055.draconicevolution.common.tileentities.multiblocktiles.reactor.TileReactorCore.ReactorState;
|
||||
|
||||
@@ -77,8 +77,6 @@ public class ConfigHandler {
|
||||
public static int reactorFuelValue;
|
||||
public static int reactorChaosValue;
|
||||
|
||||
|
||||
|
||||
private static String[] defaultSpawnerList = new String[] { "ExampleMob1", "ExampleMob2",
|
||||
"ExampleMob3 (these examples can be deleted)" };
|
||||
|
||||
|
||||
+9
-7
@@ -1,5 +1,7 @@
|
||||
package com.brandon3055.draconicevolution.common.tileentities.multiblocktiles.reactor;
|
||||
|
||||
import static com.brandon3055.draconicevolution.common.handler.ConfigHandler.reactorOutputMultiplier;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
@@ -36,8 +38,6 @@ import cpw.mods.fml.common.network.NetworkRegistry;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
import static com.brandon3055.draconicevolution.common.handler.ConfigHandler.reactorOutputMultiplier;
|
||||
|
||||
/**
|
||||
* Created by Brandon on 16/6/2015.
|
||||
*/
|
||||
@@ -88,7 +88,9 @@ public class TileReactorCore extends TileObjectSync {
|
||||
public int energySaturation = 0;
|
||||
public int maxEnergySaturation = 0;
|
||||
|
||||
public float fuelStorageRatio = (float) ConfigHandler.reactorFuelStorage /10368; // To keep the temperature increase unchanged from the default config if it's changed
|
||||
public float fuelStorageRatio = (float) ConfigHandler.reactorFuelStorage / 10368; // To keep the temperature
|
||||
// increase unchanged from the
|
||||
// default config if it's changed
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
private ReactorSound reactorSound;
|
||||
@@ -149,8 +151,8 @@ public class TileReactorCore extends TileObjectSync {
|
||||
private void startingTick() {
|
||||
if (!startupInitialized) {
|
||||
int totalFuel = reactorFuel + convertedFuel;
|
||||
maxFieldCharge = (totalFuel/fuelStorageRatio) * 96.45061728395062 * 100;
|
||||
maxEnergySaturation = (int) ((totalFuel/fuelStorageRatio)* 96.45061728395062 * 1000);
|
||||
maxFieldCharge = (totalFuel / fuelStorageRatio) * 96.45061728395062 * 100;
|
||||
maxEnergySaturation = (int) ((totalFuel / fuelStorageRatio) * 96.45061728395062 * 1000);
|
||||
energySaturation = Math.min(energySaturation, maxEnergySaturation);
|
||||
fieldCharge = Math.min(fieldCharge, maxFieldCharge);
|
||||
startupInitialized = true;
|
||||
@@ -365,7 +367,7 @@ public class TileReactorCore extends TileObjectSync {
|
||||
energySaturation += energyInjected;
|
||||
} else if (reactionTemperature < 2000) {
|
||||
energyInjected = energyToInject;
|
||||
reactionTemperature += (double) energyInjected / (1000D + (reactorFuel/fuelStorageRatio)* 10);
|
||||
reactionTemperature += (double) energyInjected / (1000D + (reactorFuel / fuelStorageRatio) * 10);
|
||||
if (reactionTemperature > 2000) {
|
||||
reactionTemperature = 2000;
|
||||
}
|
||||
@@ -405,7 +407,7 @@ public class TileReactorCore extends TileObjectSync {
|
||||
}
|
||||
|
||||
public double getCoreRadius() {
|
||||
double volume = (double) (reactorFuel + convertedFuel) / (1296D*fuelStorageRatio);
|
||||
double volume = (double) (reactorFuel + convertedFuel) / (1296D * fuelStorageRatio);
|
||||
volume *= 1 + (reactionTemperature / maxReactTemperature) * 10D;
|
||||
return Math.cbrt(volume / (4D / 3D * Math.PI));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user