package techreborn.items.tools;

import me.modmuss50.jsonDestroyer.api.ITexturedBucket;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemBucket;
import net.minecraftforge.fluids.Fluid;
import reborncore.RebornCore;
import techreborn.blocks.fluid.BlockFluidBase;
import techreborn.client.TechRebornCreativeTabMisc;

public class ItemFluidbucket extends ItemBucket implements ITexturedBucket
{
	Fluid containedFluid;
	private String iconName;

	public ItemFluidbucket(BlockFluidBase block)
	{
		super(block);
		setContainerItem(Items.BUCKET);
		setCreativeTab(TechRebornCreativeTabMisc.instance);
		setUnlocalizedName("techreborn.fluidbucket");
		RebornCore.jsonDestroyer.registerObject(this);
		containedFluid = block.getFluid();
	}

	@Override
	public Item setUnlocalizedName(String par1Str)
	{
		iconName = par1Str;
		return super.setUnlocalizedName(par1Str);
	}

	 @Override
	 public boolean isGas(int damage) {
	 return false;
	 }

	 @Override
	 public Fluid getFluid(int damage) {
	 return containedFluid;
	 }

	@Override
	public int getMaxMeta()
	{
		return 1;
	}
}

@@ -73,32 +73,153 @@
 TexturedBucket;%0A
+import net.minecraft.client.renderer.block.model.ModelResourceLocation;%0Aimport net.minecraft.entity.player.EntityPlayer;%0A
 import net.minec
@@ -297,32 +297,69 @@
 tem.ItemBucket;%0A
+import net.minecraft.item.ItemStack;%0A
 import net.minec
@@ -1265,11 +1265,138 @@
 rn 1;%0A%09%7D
+%0A%0A%09@Override%0A%09public ModelResourceLocation getModel(ItemStack stack, EntityPlayer player, int useRemaining) %7B%0A%09%09return null;%0A%09%7D
 %0A%7D%0A

fix building