package info.u_team.u_team_core.container;

import net.minecraft.inventory.container.*;

public abstract class FluidContainer extends Container {
	
	public FluidContainer(ContainerType<?> type, int id) {
		super(type, id);
	}
}

@@ -48,179 +48,1233 @@
 ort 
-net.minecraft.inventory.container.*;%0A%0Apublic abstract class FluidContainer extends Container %7B%0A%09%0A%09public FluidContainer(ContainerType%3C?%3E type, int id) %7B%0A%09%09super(type, id);
+java.util.List;%0A%0Aimport com.google.common.collect.Lists;%0A%0Aimport net.minecraft.inventory.container.*;%0Aimport net.minecraft.util.NonNullList;%0Aimport net.minecraftforge.fluids.FluidStack;%0A%0Apublic abstract class FluidContainer extends Container %7B%0A%09%0A%09private final NonNullList%3CFluidStack%3E fluidStacks = NonNullList.create();%0A%09public final List%3CFluidSlot%3E fluidSlots = Lists.newArrayList();%0A%09%0A%09public FluidContainer(ContainerType%3C?%3E type, int id) %7B%0A%09%09super(type, id);%0A%09%7D%0A%09%0A%09protected FluidSlot addFluidSlot(FluidSlot slot) %7B%0A%09%09fluidSlots.add(slot);%0A%09%09fluidStacks.add(FluidStack.EMPTY);%0A%09%09return slot;%0A%09%7D%0A%09%0A%09public FluidSlot getFluidSlot(int slot) %7B%0A%09%09return fluidSlots.get(slot);%0A%09%7D%0A%09%0A%09public NonNullList%3CFluidStack%3E getFluids() %7B%0A%09%09final NonNullList%3CFluidStack%3E list = NonNullList.create();%0A%09%09%0A%09%09for (int index = 0; index %3C fluidSlots.size(); index++) %7B%0A%09%09%09list.add(fluidSlots.get(index).getStack());%0A%09%09%7D%0A%09%09return list;%0A%09%7D%0A%09%0A%09// Used for sync with the client%0A%09%0A%09public void setFluidStackInSlot(int slot, FluidStack stack) %7B%0A%09%09getFluidSlot(slot).putStack(stack);%0A%09%7D%0A%09%0A%09public void setAllFluidSlots(List%3CFluidStack%3E list) %7B%0A%09%09for (int index = 0; index %3C list.size(); index++) %7B%0A%09%09%09getFluidSlot(index).putStack(list.get(index));%0A%09%09%7D
 %0A%09%7D%0A

Add some more methods to the fluid container