Skip to content

Commit 2cfcfdb

Browse files
Spotless formatting
1 parent 9127765 commit 2cfcfdb

File tree

6 files changed

+9
-15
lines changed

6 files changed

+9
-15
lines changed

src/main/java/gregtech/api/items/toolitem/IGTTool.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ default ItemStack getRaw() {
153153

154154
/**
155155
* @return A tool made from the given material. The tool property (at least overriding) for the material must be
156-
* set.
156+
* set.
157157
*/
158158
default ItemStack get(Material material) {
159159
ItemStack stack = new ItemStack(get());

src/main/java/gregtech/api/unification/material/materials/SoftToolAddition.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22

33
import gregtech.api.items.toolitem.ToolClasses;
44
import gregtech.api.recipes.ModHandler;
5-
import gregtech.api.unification.material.properties.ExtraToolProperty;
6-
import gregtech.api.unification.material.properties.PropertyKey;
7-
85
import gregtech.api.unification.material.Material;
96
import gregtech.api.unification.material.Materials;
7+
import gregtech.api.unification.material.properties.ExtraToolProperty;
8+
import gregtech.api.unification.material.properties.PropertyKey;
109

1110
public class SoftToolAddition {
1211

@@ -21,7 +20,6 @@ private static ExtraToolProperty ensureExtraToolProperty(Material material) {
2120
return material.getProperty(PropertyKey.EXTRATOOL);
2221
}
2322

24-
2523
public static void register() {
2624
for (int i = 0; i < softMaterials.length; i++) {
2725

src/main/java/gregtech/api/unification/material/properties/ExtraToolProperty.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ public static Builder of(int durability) {
113113

114114
public static Builder of(float harvestSpeed, float attackDamage, int durability, int harvestLevel) {
115115
Builder builder = new Builder();
116-
builder.harvestSpeed(harvestSpeed).attackDamage(attackDamage).durability(durability).harvestLevel(harvestLevel);
116+
builder.harvestSpeed(harvestSpeed).attackDamage(attackDamage).durability(durability)
117+
.harvestLevel(harvestLevel);
117118
return builder;
118119
}
119120

src/main/java/gregtech/api/unification/material/properties/PropertyKey.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ public class PropertyKey<T extends IMaterialProperty> {
1414
ItemPipeProperties.class);
1515
public static final PropertyKey<OreProperty> ORE = new PropertyKey<>("ore", OreProperty.class);
1616
public static final PropertyKey<ToolProperty> TOOL = new PropertyKey<>("tool", ToolProperty.class);
17-
public static final PropertyKey<ExtraToolProperty> EXTRATOOL = new PropertyKey<>("extra_tool", ExtraToolProperty.class);
17+
public static final PropertyKey<ExtraToolProperty> EXTRATOOL = new PropertyKey<>("extra_tool",
18+
ExtraToolProperty.class);
1819
public static final PropertyKey<RotorProperty> ROTOR = new PropertyKey<>("rotor", RotorProperty.class);
1920
public static final PropertyKey<WireProperties> WIRE = new PropertyKey<>("wire", WireProperties.class);
2021
public static final PropertyKey<WoodProperty> WOOD = new PropertyKey<>("wood", WoodProperty.class);

src/main/java/gregtech/api/unification/material/properties/SimpleToolProperty.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
import gregtech.api.items.toolitem.EnchantmentLevel;
44

5+
import net.minecraft.enchantment.Enchantment;
6+
57
import it.unimi.dsi.fastutil.objects.Object2ObjectArrayMap;
68
import it.unimi.dsi.fastutil.objects.Object2ObjectMap;
79

8-
import net.minecraft.enchantment.Enchantment;
9-
1010
public class SimpleToolProperty {
1111

1212
/**

src/main/java/gregtech/api/unification/material/properties/ToolProperty.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,8 @@
22

33
import net.minecraft.enchantment.Enchantment;
44

5-
import org.jetbrains.annotations.Nullable;
6-
7-
import java.util.HashMap;
8-
import java.util.Map;
9-
105
public class ToolProperty extends SimpleToolProperty implements IMaterialProperty {
116

12-
137
public ToolProperty(float harvestSpeed, float attackDamage, int durability, int harvestLevel) {
148
super(harvestSpeed, attackDamage, durability, harvestLevel);
159
this.setToolEnchantability(10);

0 commit comments

Comments
 (0)