2012-11-15 02:22:44 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) SpaceToad, 2011
|
|
|
|
* http://www.mod-buildcraft.com
|
|
|
|
*
|
|
|
|
* BuildCraft is distributed under the terms of the Minecraft Mod Public
|
|
|
|
* License 1.0, or MMPL. Please check the contents of the license located in
|
|
|
|
* http://www.mod-buildcraft.com/MMPL-1.0.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
package net.minecraftforge.liquids;
|
|
|
|
|
|
|
|
import net.minecraft.src.Item;
|
|
|
|
import net.minecraft.src.ItemStack;
|
|
|
|
|
|
|
|
public class LiquidContainerData {
|
|
|
|
|
|
|
|
public final LiquidStack stillLiquid;
|
|
|
|
@Deprecated public LiquidStack movingLiquid;
|
|
|
|
public final ItemStack filled;
|
|
|
|
public final ItemStack container;
|
|
|
|
|
|
|
|
|
|
|
|
@Deprecated
|
|
|
|
public LiquidContainerData(int stillLiquidId, int movingLiquidId, Item filled) {
|
2012-11-15 11:43:16 +00:00
|
|
|
this(new LiquidStack(stillLiquidId, LiquidContainerRegistry.BUCKET_VOLUME), new LiquidStack(movingLiquidId, LiquidContainerRegistry.BUCKET_VOLUME), new ItemStack(filled, 1), new ItemStack(Item.bucketEmpty));
|
2012-11-15 02:22:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Deprecated
|
|
|
|
public LiquidContainerData(int stillLiquidId, int movingLiquidId, ItemStack filled) {
|
2012-11-15 11:43:16 +00:00
|
|
|
this(new LiquidStack(stillLiquidId, LiquidContainerRegistry.BUCKET_VOLUME), new LiquidStack(movingLiquidId, LiquidContainerRegistry.BUCKET_VOLUME), filled, new ItemStack(Item.bucketEmpty));
|
2012-11-15 02:22:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public LiquidContainerData(LiquidStack stillLiquid, ItemStack filled, ItemStack container) {
|
|
|
|
this.stillLiquid = stillLiquid;
|
|
|
|
this.filled = filled;
|
|
|
|
this.container = container;
|
|
|
|
|
|
|
|
if(stillLiquid == null || filled == null || container == null)
|
|
|
|
throw new RuntimeException("stillLiquid, filled, or container is null, this is an error");
|
|
|
|
}
|
|
|
|
|
|
|
|
@Deprecated
|
|
|
|
public LiquidContainerData(LiquidStack stillLiquid, LiquidStack movingLiquid, ItemStack filled, ItemStack container) {
|
|
|
|
this(stillLiquid, filled, container);
|
|
|
|
this.movingLiquid = movingLiquid;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|