001    /** 
002     * Copyright (c) SpaceToad, 2011
003     * http://www.mod-buildcraft.com
004     * 
005     * BuildCraft is distributed under the terms of the Minecraft Mod Public 
006     * License 1.0, or MMPL. Please check the contents of the license located in
007     * http://www.mod-buildcraft.com/MMPL-1.0.txt
008     */
009    
010    package net.minecraftforge.liquids;
011    
012    import net.minecraft.src.Item;
013    import net.minecraft.src.ItemStack;
014    
015    public class LiquidData {
016    
017        public final LiquidStack stillLiquid;
018        public final LiquidStack movingLiquid;
019    
020        public final ItemStack filled;
021        public final ItemStack container;
022    
023        public LiquidData(int stillLiquidId, int movingLiquidId, Item filled) {
024            this(new LiquidStack(stillLiquidId, LiquidManager.BUCKET_VOLUME), new LiquidStack(movingLiquidId, LiquidManager.BUCKET_VOLUME), new ItemStack(filled, 1), new ItemStack(Item.bucketEmpty));
025        }
026    
027        public LiquidData(int stillLiquidId, int movingLiquidId, ItemStack filled) {
028            this(new LiquidStack(stillLiquidId, LiquidManager.BUCKET_VOLUME), new LiquidStack(movingLiquidId, LiquidManager.BUCKET_VOLUME), filled, new ItemStack(Item.bucketEmpty));
029        }
030    
031        public LiquidData(LiquidStack stillLiquid, ItemStack filled, ItemStack container) {
032            this(stillLiquid, stillLiquid, filled, container);
033        }
034        
035        public LiquidData(LiquidStack stillLiquid, LiquidStack movingLiquid, ItemStack filled, ItemStack container) {
036            this.stillLiquid = stillLiquid;
037            this.movingLiquid = movingLiquid;
038            this.filled = filled;
039            this.container = container;
040            
041            if(stillLiquid == null || filled == null || container == null)
042                throw new RuntimeException("stillLiquid, filled, or container is null, this is an error");
043        }
044    
045    }