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.item.Item; 013 import net.minecraft.item.ItemStack; 014 015 public class LiquidContainerData { 016 017 public final LiquidStack stillLiquid; 018 @Deprecated public LiquidStack movingLiquid; 019 public final ItemStack filled; 020 public final ItemStack container; 021 022 023 @Deprecated 024 public LiquidContainerData(int stillLiquidId, int movingLiquidId, Item filled) { 025 this(new LiquidStack(stillLiquidId, LiquidContainerRegistry.BUCKET_VOLUME), new LiquidStack(movingLiquidId, LiquidContainerRegistry.BUCKET_VOLUME), new ItemStack(filled, 1), new ItemStack(Item.bucketEmpty)); 026 } 027 028 @Deprecated 029 public LiquidContainerData(int stillLiquidId, int movingLiquidId, ItemStack filled) { 030 this(new LiquidStack(stillLiquidId, LiquidContainerRegistry.BUCKET_VOLUME), new LiquidStack(movingLiquidId, LiquidContainerRegistry.BUCKET_VOLUME), filled, new ItemStack(Item.bucketEmpty)); 031 } 032 033 public LiquidContainerData(LiquidStack stillLiquid, ItemStack filled, ItemStack container) { 034 this.stillLiquid = stillLiquid; 035 this.filled = filled; 036 this.container = container; 037 038 if(stillLiquid == null || filled == null || container == null) 039 throw new RuntimeException("stillLiquid, filled, or container is null, this is an error"); 040 } 041 042 @Deprecated 043 public LiquidContainerData(LiquidStack stillLiquid, LiquidStack movingLiquid, ItemStack filled, ItemStack container) { 044 this(stillLiquid, filled, container); 045 this.movingLiquid = movingLiquid; 046 } 047 048 }