mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
32 lines
802 B
Java
32 lines
802 B
Java
package com.hbm.items.block;
|
|
|
|
import java.util.List;
|
|
|
|
import com.hbm.util.I18nUtil;
|
|
import net.minecraft.block.Block;
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
import net.minecraft.item.Item;
|
|
import net.minecraft.item.ItemStack;
|
|
import net.minecraft.util.EnumChatFormatting;
|
|
|
|
public class ItemBlockBlastInfo extends ItemBlockBase {
|
|
|
|
public ItemBlockBlastInfo(Block block) {
|
|
super(block);
|
|
}
|
|
|
|
@Override
|
|
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean bool) {
|
|
|
|
super.addInformation(stack, player, list, bool);
|
|
|
|
Item item = stack.getItem();
|
|
Block block = Block.getBlockFromItem(item);
|
|
|
|
if(block == null)
|
|
return;
|
|
|
|
list.add(EnumChatFormatting.GOLD + I18nUtil.resolveKey("desc.block.blastinfo", block.getExplosionResistance(null)));
|
|
}
|
|
}
|