mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-20 12:09:45 +00:00
Javadocs!
This commit is contained in:
1 parent
ab3064b591
commit
3be6126aea
1 file changed
+10
@@ -1199,6 +1199,11 @@ public final class MekanismUtils
|
||||
return "error";
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert from the unit defined in the configuration to joules.
|
||||
* @param energy - energy to convert
|
||||
* @return energy converted to joules
|
||||
*/
|
||||
public static double convertToJoules(double energy)
|
||||
{
|
||||
switch(general.activeType)
|
||||
@@ -1214,6 +1219,11 @@ public final class MekanismUtils
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert from joules to the unit defined in the configuration.
|
||||
* @param energy - energy to convert
|
||||
* @return energy converted to configured unit
|
||||
*/
|
||||
public static double convertToDisplay(double energy)
|
||||
{
|
||||
switch(general.activeType)
|
||||
|
||||
Reference in new issue
Block a user