mirror of
https://github.com/GTNewHorizons/Applied-Energistics-2-Unofficial.git
synced 2026-11-27 15:33:01 +00:00
Add network bytes information for network status gui (#419)
* Add network bytes infomation for network status gui * Add network bytes infomation for network status gui * Update src/main/java/appeng/me/cache/GridStorageCache.java Co-authored-by: Andrei Antropov <[email protected]> * swap some of Class.forName to instanceof * make cache update delay * make cache update delay * Change error conditions * Change delay from 1000t(50s) to 100t(5s) * Let cache update data at the beginning * Add a cfg that can change the cache update rate * Add fluid bytes information * Add essentia status and change gui form * Apply the spotlessApply * Delete useless rows * Delete useless rows * Revert "Merge branch 'GTNewHorizons:master' into master" This reverts commit01dde621b8, reversing changes made tod09184e8a3. * Revert "Revert "Merge branch 'GTNewHorizons:master' into master"" This reverts commit864bbd494c. * back roll some commits * delete incorrect import and depends delete non compliant depends * Change interface's name * Remove wrong annotations * Add new AdvancedNetworkTool only text and texture, wait to implement the actual functions. * Add the Advanced Network Tool gui * Add the advanced toolbox for other Gui * Update Build Script * Add recipe into AE and fix some issue * Fix the wrong info when cell in ME chest * Add external buttons for advanced network status Actual function still working on it * merge with main branch Update Settings.java * Apply spotless * Add external Gui for advanced network tool * Add more info to new Gui * Apply spotless * Replace some class to interface --------- Co-authored-by: Andrei Antropov <[email protected]>
This commit is contained in:
1 parent
a84b998659
commit
0d294c92d4
43 files changed
+1671
-115
No files matched your search
@@ -18,6 +18,7 @@ import java.util.List;
|
||||
import net.minecraftforge.common.config.Configuration;
|
||||
import net.minecraftforge.common.config.Property;
|
||||
|
||||
import appeng.api.config.CellType;
|
||||
import appeng.api.config.CondenserOutput;
|
||||
import appeng.api.config.CraftingStatus;
|
||||
import appeng.api.config.PowerMultiplier;
|
||||
@@ -55,6 +56,7 @@ public final class AEConfig extends Configuration implements IConfigurableObject
|
||||
public int storageBiomeID = -1;
|
||||
public int storageProviderID = -1;
|
||||
public int formationPlaneEntityLimit = 128;
|
||||
public int networkBytesUpdateFrequency = 5;
|
||||
public float spawnChargedChance = 0.92f;
|
||||
public int quartzOresPerCluster = 4;
|
||||
public int quartzOresClusterAmount = 15;
|
||||
@@ -99,6 +101,7 @@ public final class AEConfig extends Configuration implements IConfigurableObject
|
||||
public int[] meteoriteDimensionWhitelist = { 0 };
|
||||
public int craftingCalculationTimePerTick = 5;
|
||||
PowerUnits selectedPowerUnit = PowerUnits.AE;
|
||||
CellType selectedCellType = CellType.ITEM;
|
||||
private double WirelessBaseCost = 8;
|
||||
private double WirelessCostMultiplier = 1;
|
||||
private double WirelessTerminalDrainMultiplier = 1;
|
||||
@@ -191,6 +194,16 @@ public final class AEConfig extends Configuration implements IConfigurableObject
|
||||
this.formationPlaneEntityLimit = this
|
||||
.get("automation", "formationPlaneEntityLimit", this.formationPlaneEntityLimit)
|
||||
.getInt(this.formationPlaneEntityLimit);
|
||||
this.networkBytesUpdateFrequency = this
|
||||
.get("automation", "networkBytesUpdateFrequency", this.networkBytesUpdateFrequency)
|
||||
.getInt(this.networkBytesUpdateFrequency);
|
||||
if (this.networkBytesUpdateFrequency == 0) {
|
||||
throw new IllegalArgumentException("networkBytesUpdateFrequency can not be 0!");
|
||||
}
|
||||
this.get(
|
||||
"automation",
|
||||
"networkBytesUpdateFrequency",
|
||||
this.networkBytesUpdateFrequency).comment = "#Network bytes information update Frequency(s) default:5";
|
||||
|
||||
this.wirelessTerminalBattery = this.get("battery", "wirelessTerminal", this.wirelessTerminalBattery)
|
||||
.getInt(this.wirelessTerminalBattery);
|
||||
@@ -525,9 +538,19 @@ public final class AEConfig extends Configuration implements IConfigurableObject
|
||||
return this.selectedPowerUnit;
|
||||
}
|
||||
|
||||
public CellType selectedCellType() {
|
||||
return this.selectedCellType;
|
||||
}
|
||||
|
||||
public void nextPowerUnit(final boolean backwards) {
|
||||
this.selectedPowerUnit = Platform
|
||||
.rotateEnum(this.selectedPowerUnit, backwards, Settings.POWER_UNITS.getPossibleValues());
|
||||
this.save();
|
||||
}
|
||||
|
||||
public void nextCellType(final boolean backwards) {
|
||||
this.selectedCellType = Platform
|
||||
.rotateEnum(this.selectedCellType, backwards, Settings.CELL_TYPE.getPossibleValues());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user