[ci skip] spotlessApply with the new settings

This commit is contained in:
Jason Mitchell committed 2023-01-28 18:04:28 -08:00
1 parent 83698cb73c
commit 84c2239244
561 files changed
+8872 -9300

No files matched your search

@@ -5,10 +5,12 @@ import net.minecraft.block.material.Material;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.item.*;
import net.minecraft.world.World;
import tconstruct.library.tools.*;
import tconstruct.tools.TinkerTools;
public class Hatchet extends HarvestTool {
public Hatchet() {
super(3);
this.setUnlocalizedName("InfiTool.Axe");
@@ -25,16 +27,15 @@ public class Hatchet extends HarvestTool {
}
@Override
public boolean onBlockDestroyed(
ItemStack itemstack, World world, Block block, int x, int y, int z, EntityLivingBase player) {
public boolean onBlockDestroyed(ItemStack itemstack, World world, Block block, int x, int y, int z,
EntityLivingBase player) {
if (block != null && block.getMaterial() == Material.leaves) return false;
return AbilityHelper.onBlockChanged(itemstack, world, block, x, y, z, player, random);
}
static Material[] materials = {
Material.wood, Material.leaves, Material.vine, Material.circuits, Material.cactus, Material.gourd
};
static Material[] materials = { Material.wood, Material.leaves, Material.vine, Material.circuits, Material.cactus,
Material.gourd };
@Override
public Item getHeadItem() {