@@ -32,6 +32,7 @@ public String getUsage(ICommandSender sender) {
3232 return "htmltech.command.usage" ;
3333 }
3434
35+ // TODO, rewrite this shit
3536 @ Override
3637 public void execute (MinecraftServer server , ICommandSender sender , String [] args ) throws CommandException {
3738 Map <String , Object > materialsData = new HashMap <>();
@@ -53,17 +54,22 @@ public void execute(MinecraftServer server, ICommandSender sender, String[] args
5354
5455 if (properties .hasProperty (PropertyKey .WIRE )) {
5556 WireProperties wireProperties = material .getProperty (PropertyKey .WIRE );
56- propertiesMap .put ("wire" , String .format ("Voltage: %s, Amperage: %d, Loss: %d" ,
57+ propertiesMap .put ("wire" , String .format ("Voltage: %s, Amperage: %, d, Loss: %, d" ,
5758 VN [GTUtility .getTierByVoltage (wireProperties .getVoltage ())],
5859 wireProperties .getAmperage (),
5960 wireProperties .getLossPerBlock ()));
6061 }
6162 if (properties .hasProperty (PropertyKey .TOOL )) {
6263 ToolProperty toolProperty = material .getProperty (PropertyKey .TOOL );
63- propertiesMap .put ("tool" , String .format ("Speed: %f, Durability: %d, Dmg : %f " ,
64+ propertiesMap .put ("tool" , String .format ("Speed: %,.2f, Durability: %, d, Damage : %,.2f, Harvest Level: %,d " ,
6465 toolProperty .getToolSpeed (),
6566 toolProperty .getToolDurability (),
66- toolProperty .getToolAttackDamage ()));
67+ toolProperty .getToolAttackDamage (),
68+ toolProperty .getToolHarvestLevel ()));
69+ }
70+ if (properties .hasProperty (PropertyKey .ROTOR )) {
71+ RotorProperty rotorProperty = material .getProperty (PropertyKey .ROTOR );
72+ propertiesMap .put ("rotor" , String .format ("Damage: %,.2f, Durability: %,d, Speed: %,.2f," , rotorProperty .getDamage (), rotorProperty .getDurability (), rotorProperty .getSpeed ()));
6773 }
6874 if (properties .hasProperty (PropertyKey .ORE )) {
6975 propertiesMap .put ("ore" , true );
@@ -75,7 +81,7 @@ public void execute(MinecraftServer server, ICommandSender sender, String[] args
7581 BlastProperty blastProperty = material .getProperty (PropertyKey .BLAST );
7682 Method reflectedGetTempTeir = TemperatureProperty .class .getDeclaredMethod ("getMinTierForTemperature" , Integer .class );
7783 reflectedGetTempTeir .setAccessible (true );
78- propertiesMap .put ("blast" , String .format ("Temp: %dK (%s), Gas Tier: %s" ,
84+ propertiesMap .put ("blast" , String .format ("Temp: %, dK (%s), Gas Tier: %s" ,
7985 blastProperty .getBlastTemperature (),
8086 reflectedGetTempTeir .invoke (TemperatureProperty .getInstance (), blastProperty .getBlastTemperature ()),
8187 blastProperty .getGasTier ().toString ()));
@@ -85,7 +91,7 @@ public void execute(MinecraftServer server, ICommandSender sender, String[] args
8591 }
8692 if (properties .hasProperty (PropertyKey .FLUID_PIPE )) {
8793 FluidPipeProperties fluidPipeProperties = properties .getProperty (PropertyKey .FLUID_PIPE );
88- propertiesMap .put ("fluid_pipe" , String .format ("Throughput: %d, Max Temp: %dK, Acid proof: %b, Cryo proof: %b, Gas proof: %b, Plasma proof: %b" ,
94+ propertiesMap .put ("fluid_pipe" , String .format ("Throughput: %, d, Max Temp: %, dK, Acid proof: %b, Cryo proof: %b, Gas proof: %b, Plasma proof: %b" ,
8995 fluidPipeProperties .getThroughput (),
9096 fluidPipeProperties .getMaxFluidTemperature (),
9197 fluidPipeProperties .isAcidProof (),
@@ -95,20 +101,20 @@ public void execute(MinecraftServer server, ICommandSender sender, String[] args
95101 }
96102 if (properties .hasProperty (PropertyKey .ITEM_PIPE )) {
97103 ItemPipeProperties itemPipeProperties = properties .getProperty (PropertyKey .ITEM_PIPE );
98- propertiesMap .put ("item_pipe" , String .format ("Throughput: %f, Priority: %d" , itemPipeProperties .getTransferRate () * 64 , itemPipeProperties .getPriority ()));
104+ propertiesMap .put ("item_pipe" , String .format ("Throughput: %f, Priority: %, d" , itemPipeProperties .getTransferRate () * 64 , itemPipeProperties .getPriority ()));
99105 }
100106 if (properties .hasProperty (PropertyKey .FLUID )) {
101107 FluidProperty fluidProperty = properties .getProperty (PropertyKey .FLUID );
102108 fluidProperty .isGas ();
103109 fluidProperty .getFluidType ().getName ();
104- propertiesMap .put ("fluid" , String .format ("Temp: %dK, Gas: %b, Type: %s" ,
110+ propertiesMap .put ("fluid" , String .format ("Temp: %, dK, Gas: %b, Type: %s" ,
105111 fluidProperty .getFluidTemperature (),
106112 fluidProperty .isGas (),
107113 fluidProperty .getFluidType ().getName ()));
108114 }
109115 if (properties .hasProperty (PropertyKey .PLASMA )) {
110116 PlasmaProperty plasmaProperty = properties .getProperty (PropertyKey .PLASMA );
111- propertiesMap .put ("plasma_temp" , String .format ("Plasma Temp: %dK" , plasmaProperty .getPlasma ().getTemperature ()));
117+ propertiesMap .put ("plasma_temp" , String .format ("Plasma Temp: %, dK" , plasmaProperty .getPlasma ().getTemperature ()));
112118 }
113119
114120 materialData .put ("properties" , propertiesMap );
0 commit comments