mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
24 lines
607 B
Java
24 lines
607 B
Java
package com.hbm.items.special;
|
|
import com.hbm.util.i18n.I18nUtil;
|
|
|
|
import java.util.List;
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
public class ItemHotDusted extends ItemHot {
|
|
public ItemHotDusted(int heat) {
|
|
super(heat);
|
|
this.setHasSubtypes(true);
|
|
}
|
|
|
|
@Override
|
|
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean ext) {
|
|
list.add(String.format(I18nUtil.resolveKey("item.hot_dusted.forged"), stack.getItemDamage()));
|
|
}
|
|
|
|
public static int getMaxHeat(ItemStack stack) {
|
|
return heat - stack.getItemDamage() * 10;
|
|
}
|
|
}
|