2016-03-19 11:36:17 +01:00
|
|
|
/*
|
2016-05-16 22:52:27 +02:00
|
|
|
* This file ("ItemAxeAA.java") is part of the Actually Additions mod for Minecraft.
|
2016-03-19 11:36:17 +01:00
|
|
|
* It is created and owned by Ellpeck and distributed
|
|
|
|
* under the Actually Additions License to be found at
|
2016-05-16 22:52:27 +02:00
|
|
|
* http://ellpeck.de/actaddlicense
|
2016-03-19 11:36:17 +01:00
|
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
|
|
*
|
2017-01-01 16:23:26 +01:00
|
|
|
* © 2015-2017 Ellpeck
|
2016-03-19 11:36:17 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
package de.ellpeck.actuallyadditions.mod.items;
|
|
|
|
|
|
|
|
import de.ellpeck.actuallyadditions.mod.items.base.ItemToolAA;
|
|
|
|
import net.minecraft.block.Block;
|
2021-02-27 21:24:26 +01:00
|
|
|
import net.minecraft.item.IItemTier;
|
2021-11-21 21:05:27 +01:00
|
|
|
import net.minecraft.item.Item;
|
2016-03-19 11:36:17 +01:00
|
|
|
import net.minecraft.item.ItemStack;
|
2021-11-21 21:05:27 +01:00
|
|
|
import net.minecraft.tags.ITag;
|
2017-06-29 18:36:33 +02:00
|
|
|
|
2021-02-27 16:33:00 +01:00
|
|
|
import java.util.Set;
|
|
|
|
|
2019-05-02 09:10:29 +02:00
|
|
|
public class ItemAxeAA extends ItemToolAA {
|
2021-11-21 21:05:27 +01:00
|
|
|
public ItemAxeAA(float p_i48512_1_, float p_i48512_2_, IItemTier p_i48512_3_, Set<Block> p_i48512_4_, Properties p_i48512_5_, String name, ItemStack repairItem, ITag<Item> repairTag) {
|
|
|
|
super(p_i48512_1_, p_i48512_2_, p_i48512_3_, p_i48512_4_, p_i48512_5_, name, repairItem, repairTag);
|
|
|
|
}
|
2016-03-19 11:36:17 +01:00
|
|
|
|
2021-11-21 21:05:27 +01:00
|
|
|
/*
|
2016-04-20 21:39:03 +02:00
|
|
|
private static final Set<Block> EFFECTIVE_ON = Sets.newHashSet(Blocks.PLANKS, Blocks.BOOKSHELF, Blocks.LOG, Blocks.LOG2, Blocks.CHEST, Blocks.PUMPKIN, Blocks.LIT_PUMPKIN, Blocks.MELON_BLOCK, Blocks.LADDER, Blocks.WOODEN_BUTTON, Blocks.WOODEN_PRESSURE_PLATE);
|
2016-03-19 11:36:17 +01:00
|
|
|
|
2021-02-27 21:24:26 +01:00
|
|
|
public ItemAxeAA(IItemTier material) {
|
|
|
|
super(6.0F, -3.0F, material, this.repairItem, unlocalizedName, this.rarity, EFFECTIVE_ON);
|
2021-08-22 17:09:06 +02:00
|
|
|
this.setHarvestLevel("axe", material.getLevel());
|
2016-03-19 11:36:17 +01:00
|
|
|
}
|
|
|
|
|
2016-05-02 17:09:23 +02:00
|
|
|
@Override
|
2021-02-26 22:15:48 +01:00
|
|
|
public float getDestroySpeed(ItemStack stack, BlockState state) {
|
2016-03-19 11:36:17 +01:00
|
|
|
Material material = state.getMaterial();
|
2021-08-22 17:09:06 +02:00
|
|
|
return material != Material.WOOD && material != Material.PLANT && material != Material.VINE
|
2021-08-22 23:19:57 +02:00
|
|
|
? super.getDestroySpeed(stack, state)
|
|
|
|
: this.speed;
|
2016-03-19 11:36:17 +01:00
|
|
|
}
|
2016-07-17 13:34:38 +02:00
|
|
|
|
|
|
|
@Override
|
2019-05-02 09:10:29 +02:00
|
|
|
public Set<String> getToolClasses(ItemStack stack) {
|
2016-07-17 13:34:38 +02:00
|
|
|
return Collections.singleton("axe");
|
2021-11-21 21:05:27 +01:00
|
|
|
}*/
|
2016-03-19 11:36:17 +01:00
|
|
|
}
|