2015-01-30 20:16:32 +01:00
|
|
|
package ellpeck.someprettyrandomstuff.blocks;
|
2015-01-05 22:14:01 +01:00
|
|
|
|
2015-02-17 16:15:16 +01:00
|
|
|
import cpw.mods.fml.relauncher.Side;
|
|
|
|
import cpw.mods.fml.relauncher.SideOnly;
|
2015-01-30 20:16:32 +01:00
|
|
|
import ellpeck.someprettyrandomstuff.util.Util;
|
2015-01-05 22:14:01 +01:00
|
|
|
import net.minecraft.block.Block;
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
|
|
import net.minecraft.item.ItemBlock;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
public class DefaultItemBlock extends ItemBlock{
|
|
|
|
|
|
|
|
public DefaultItemBlock(Block block){
|
|
|
|
super(block);
|
2015-01-29 20:23:19 +01:00
|
|
|
this.setHasSubtypes(false);
|
2015-01-05 22:14:01 +01:00
|
|
|
}
|
|
|
|
|
2015-01-29 20:23:19 +01:00
|
|
|
public String getUnlocalizedName(ItemStack stack){
|
2015-01-05 22:14:01 +01:00
|
|
|
return this.getUnlocalizedName();
|
|
|
|
}
|
|
|
|
|
|
|
|
@SuppressWarnings("unchecked")
|
|
|
|
@SideOnly(Side.CLIENT)
|
|
|
|
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean isHeld) {
|
|
|
|
list.add(Util.addStandardInformation(this));
|
|
|
|
}
|
|
|
|
}
|