mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-11 15:57:31 +00:00
Fixed durability, and removed my stuff
This commit is contained in:
1 parent
0d364386cb
commit
335dd553de
4 files changed
+3
-37
No files matched your search
@@ -3,27 +3,23 @@ package com.cricketcraft.chisel.item;
|
||||
import com.cricketcraft.chisel.Chisel;
|
||||
import com.cricketcraft.chisel.api.ChiselMode;
|
||||
import com.cricketcraft.chisel.api.IChiselMode;
|
||||
import com.cricketcraft.chisel.carving.CarvableHelper;
|
||||
import com.cricketcraft.chisel.carving.Carving;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.ItemTool;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
public class ItemDiamondChisel extends ItemTool implements IChiselMode{
|
||||
public class ItemDiamondChisel extends Item implements IChiselMode{
|
||||
public static Carving carving = Carving.chisel;
|
||||
private static final HashSet<String> toolSet = new HashSet<String>();
|
||||
|
||||
public ItemDiamondChisel() {
|
||||
super(1, ToolMaterial.IRON, CarvableHelper.getChiselBlockSet());
|
||||
super();
|
||||
setMaxStackSize(1);
|
||||
setMaxDamage(-1);
|
||||
efficiencyOnProperMaterial = 100F;
|
||||
setUnlocalizedName("diamondChisel");
|
||||
toolSet.add("chisel");
|
||||
}
|
||||
@@ -33,21 +29,9 @@ public class ItemDiamondChisel extends ItemTool implements IChiselMode{
|
||||
if(!entityplayer.isSneaking())
|
||||
entityplayer.openGui(Chisel.instance, 0, world, 0, 0, 0);
|
||||
|
||||
|
||||
|
||||
return itemstack;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Set<String> getToolClasses(ItemStack itemStack){
|
||||
return toolSet;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onBlockStartBreak(ItemStack itemStack, int x, int y, int z, EntityPlayer player){
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ChiselMode getChiselMode(ItemStack itemStack){
|
||||
return ChiselMode.SINGLE;
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 3.8 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1005 B |
@@ -1,18 +0,0 @@
|
||||
{
|
||||
"animation": {
|
||||
"width": 16,
|
||||
"height": 16,
|
||||
"frametime": 1,
|
||||
"frames": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
6,
|
||||
7,
|
||||
8,
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user