Skip to content

Commit

Permalink
Spotless formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
littlecube8152 committed Jan 6, 2025
1 parent c4b8a62 commit 72a5c14
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/main/java/gregtech/api/items/toolitem/IGTTool.java
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ default ItemStack getRaw() {

/**
* @return A tool made from the given material. The tool property (at least overriding) for the material must be
* set.
* set.
*/
default ItemStack get(Material material) {
ItemStack stack = new ItemStack(get());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@

import gregtech.api.items.toolitem.ToolClasses;
import gregtech.api.recipes.ModHandler;
import gregtech.api.unification.material.properties.ExtraToolProperty;
import gregtech.api.unification.material.properties.PropertyKey;

import gregtech.api.unification.material.Material;
import gregtech.api.unification.material.Materials;
import gregtech.api.unification.material.properties.ExtraToolProperty;
import gregtech.api.unification.material.properties.PropertyKey;

public class SoftToolAddition {

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


public static void register() {
for (int i = 0; i < softMaterials.length; i++) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ public static Builder of(int durability) {

public static Builder of(float harvestSpeed, float attackDamage, int durability, int harvestLevel) {
Builder builder = new Builder();
builder.harvestSpeed(harvestSpeed).attackDamage(attackDamage).durability(durability).harvestLevel(harvestLevel);
builder.harvestSpeed(harvestSpeed).attackDamage(attackDamage).durability(durability)
.harvestLevel(harvestLevel);
return builder;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ public class PropertyKey<T extends IMaterialProperty> {
ItemPipeProperties.class);
public static final PropertyKey<OreProperty> ORE = new PropertyKey<>("ore", OreProperty.class);
public static final PropertyKey<ToolProperty> TOOL = new PropertyKey<>("tool", ToolProperty.class);
public static final PropertyKey<ExtraToolProperty> EXTRATOOL = new PropertyKey<>("extra_tool", ExtraToolProperty.class);
public static final PropertyKey<ExtraToolProperty> EXTRATOOL = new PropertyKey<>("extra_tool",
ExtraToolProperty.class);
public static final PropertyKey<RotorProperty> ROTOR = new PropertyKey<>("rotor", RotorProperty.class);
public static final PropertyKey<WireProperties> WIRE = new PropertyKey<>("wire", WireProperties.class);
public static final PropertyKey<WoodProperty> WOOD = new PropertyKey<>("wood", WoodProperty.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

import gregtech.api.items.toolitem.EnchantmentLevel;

import net.minecraft.enchantment.Enchantment;

import it.unimi.dsi.fastutil.objects.Object2ObjectArrayMap;
import it.unimi.dsi.fastutil.objects.Object2ObjectMap;

import net.minecraft.enchantment.Enchantment;

public class SimpleToolProperty {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,8 @@

import net.minecraft.enchantment.Enchantment;

import org.jetbrains.annotations.Nullable;

import java.util.HashMap;
import java.util.Map;

public class ToolProperty extends SimpleToolProperty implements IMaterialProperty {


public ToolProperty(float harvestSpeed, float attackDamage, int durability, int harvestLevel) {
super(harvestSpeed, attackDamage, durability, harvestLevel);
this.setToolEnchantability(10);
Expand Down

0 comments on commit 72a5c14

Please sign in to comment.