Added initial TechReborn compatibility to the EnergyAcceptor.
This commit is contained in:
@@ -27,21 +27,27 @@ import net.minecraft.text.Text;
|
||||
import net.minecraft.text.TranslatableText;
|
||||
|
||||
public enum PowerUnits {
|
||||
AE("gui.appliedenergistics2.units.appliedenergstics"), // Native Units - AE Energy
|
||||
EU("gui.appliedenergistics2.units.ic2"), // IndustrialCraft 2 - Energy Units
|
||||
RF("gui.appliedenergistics2.units.rf"); // RF - Redstone Flux
|
||||
AE("gui.appliedenergistics2.units.appliedenergstics", "AE"), // Native Units - AE Energy
|
||||
EU("gui.appliedenergistics2.units.ic2", "EU"), // IndustrialCraft 2 - Energy Units
|
||||
TR("gui.appliedenergistics2.units.tr", "E"); // TR - TechReborn energy
|
||||
|
||||
/**
|
||||
* unlocalized name for the power unit.
|
||||
*/
|
||||
public final String unlocalizedName;
|
||||
|
||||
/**
|
||||
* unlocalized name for the power unit's symbol used to display values.
|
||||
*/
|
||||
public final String symbolName;
|
||||
/**
|
||||
* please do not edit this value, it is set when AE loads its config files.
|
||||
*/
|
||||
public double conversionRatio = 1.0;
|
||||
|
||||
PowerUnits(final String un) {
|
||||
PowerUnits(final String un, String symbolName) {
|
||||
this.unlocalizedName = un;
|
||||
this.symbolName = symbolName;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -64,4 +70,8 @@ public enum PowerUnits {
|
||||
return new TranslatableText(unlocalizedName);
|
||||
}
|
||||
|
||||
public String getSymbolName() {
|
||||
return symbolName;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -36,7 +36,7 @@ public enum Settings {
|
||||
|
||||
CONDENSER_OUTPUT(EnumSet.allOf(CondenserOutput.class)),
|
||||
|
||||
POWER_UNITS(EnumSet.allOf(PowerUnits.class)),
|
||||
POWER_UNITS(EnumSet.of(PowerUnits.AE, PowerUnits.TR)),
|
||||
|
||||
ACCESS(EnumSet.of(AccessRestriction.READ_WRITE, AccessRestriction.READ, AccessRestriction.WRITE)),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user