mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
post merge cleanup
This commit is contained in:
parent
13b862d14e
commit
0685f231fe
@ -30,7 +30,6 @@ import net.minecraft.creativetab.CreativeTabs;
|
|||||||
import net.minecraft.init.Blocks;
|
import net.minecraft.init.Blocks;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
import net.minecraft.item.ItemBlock;
|
import net.minecraft.item.ItemBlock;
|
||||||
import net.minecraft.item.ItemColored;
|
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import net.minecraftforge.fluids.Fluid;
|
import net.minecraftforge.fluids.Fluid;
|
||||||
|
|||||||
@ -21,11 +21,8 @@ import net.minecraft.util.StatCollector;
|
|||||||
|
|
||||||
public class ItemBlockBase extends ItemBlock {
|
public class ItemBlockBase extends ItemBlock {
|
||||||
|
|
||||||
private Block block;
|
|
||||||
|
|
||||||
public ItemBlockBase(Block block) {
|
public ItemBlockBase(Block block) {
|
||||||
super(block);
|
super(block);
|
||||||
this.block = block;
|
|
||||||
|
|
||||||
if(block instanceof IBlockMulti) {
|
if(block instanceof IBlockMulti) {
|
||||||
this.setMaxDamage(0);
|
this.setMaxDamage(0);
|
||||||
@ -91,10 +88,10 @@ public class ItemBlockBase extends ItemBlock {
|
|||||||
|
|
||||||
return EnumRarity.common;
|
return EnumRarity.common;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public int getColorFromItemStack(ItemStack stack, int pass)
|
public int getColorFromItemStack(ItemStack stack, int pass) {
|
||||||
{
|
return this.field_150939_a.getRenderColor(stack.getItemDamage());
|
||||||
return this.block.getRenderColor(stack.getItemDamage());
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user