Little clean and format change
This commit is contained in:
parent
ce4312a578
commit
20a9cabf93
9 changed files with 126 additions and 263 deletions
|
@ -13,8 +13,7 @@ import net.minecraft.item.ItemBucket;
|
|||
public class ItemFluidbucket extends ItemBucket{
|
||||
private String iconName;
|
||||
|
||||
public ItemFluidbucket(Block block)
|
||||
{
|
||||
public ItemFluidbucket(Block block){
|
||||
super(block);
|
||||
setContainerItem(Items.bucket);
|
||||
setCreativeTab(TechRebornCreativeTabMisc.instance);
|
||||
|
@ -22,16 +21,14 @@ public class ItemFluidbucket extends ItemBucket{
|
|||
}
|
||||
|
||||
@Override
|
||||
public Item setUnlocalizedName(String par1Str)
|
||||
{
|
||||
public Item setUnlocalizedName(String par1Str) {
|
||||
iconName = par1Str;
|
||||
return super.setUnlocalizedName(par1Str);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerIcons(IIconRegister par1IconRegister)
|
||||
{
|
||||
public void registerIcons(IIconRegister par1IconRegister) {
|
||||
this.itemIcon = par1IconRegister.registerIcon("techreborn:bucket/" + iconName);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue