blob: 0e1b0ab0f2ee87f99fdb8ae8d10670bd046d50cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
package gtPlusPlus.core.item.base;
import static gregtech.api.enums.Mods.GTPlusPlus;
import java.util.List;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
public class BaseItemWithDamageValue extends Item {
public BaseItemWithDamageValue(final String unlocalizedName) {
this.setUnlocalizedName(unlocalizedName);
this.setTextureName(GTPlusPlus.ID + ":" + unlocalizedName);
this.setMaxStackSize(1);
this.setMaxDamage(100);
}
@Override
public void setDamage(final ItemStack stack, final int damage) {
super.setDamage(stack, damage);
}
@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
public void addInformation(final ItemStack stack, final EntityPlayer aPlayer, final List list, final boolean bool) {
super.addInformation(stack, aPlayer, list, bool);
}
}
|