This commit is contained in:
BallOfEnergy 2024-01-05 16:30:30 +00:00 committed by GitHub
parent 0ab03d7b77
commit 72fa1bda7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,19 +1,23 @@
package com.hbm.items.tool; package com.hbm.items.tool;
import api.hbm.fluid.IFillableItem; import api.hbm.fluid.IFillableItem;
import com.hbm.inventory.fluid.FluidType; import com.hbm.inventory.fluid.FluidType;
import com.hbm.inventory.fluid.Fluids; import com.hbm.inventory.fluid.Fluids;
import com.hbm.items.ModItems;
import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly; import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item; import net.minecraft.item.Item;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import com.hbm.items.ModItems;
import net.minecraft.nbt.NBTTagCompound; import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.ChatComponentText; import net.minecraft.util.ChatComponentText;
import net.minecraft.util.IIcon; import net.minecraft.util.IIcon;
import net.minecraft.world.World; import net.minecraft.world.World;
import java.util.List; import java.util.List;
public class ItemPipette extends Item implements IFillableItem { public class ItemPipette extends Item implements IFillableItem {
@ -24,7 +28,7 @@ public class ItemPipette extends Item implements IFillableItem {
@SideOnly(Side.CLIENT) protected IIcon overlayIcon; @SideOnly(Side.CLIENT) protected IIcon overlayIcon;
public int amount; public int amount = this.getMaxFill();
public FluidType type = Fluids.NONE; public FluidType type = Fluids.NONE;
@ -40,7 +44,6 @@ public class ItemPipette extends Item implements IFillableItem {
stack.stackTagCompound = new NBTTagCompound(); stack.stackTagCompound = new NBTTagCompound();
this.setFill(stack, type, 0); this.setFill(stack, type, 0);
this.amount = getMaxFill()
} }
public void setFill(ItemStack stack, FluidType type, int fill) { public void setFill(ItemStack stack, FluidType type, int fill) {