mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-17 10:55:06 +00:00
add certus quartz tank
This commit is contained in:
1 parent
44ff338023
commit
bad29bfdc3
14 files changed
+411
-1
No files matched your search
@@ -0,0 +1,37 @@
|
||||
package com.glodblock.github.common.tile;
|
||||
|
||||
import buildcraft.factory.TileTank;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraftforge.fluids.FluidContainerRegistry;
|
||||
|
||||
public class TileCertusQuartzTank extends TileTank {
|
||||
public static final int CAPACITY = FluidContainerRegistry.BUCKET_VOLUME * 32;
|
||||
|
||||
public TileCertusQuartzTank() {
|
||||
super();
|
||||
this.setCapacity();
|
||||
}
|
||||
|
||||
public void readFromNBT(NBTTagCompound data) {
|
||||
super.readFromNBT(data);
|
||||
readFromNBTWithoutCoords(data);
|
||||
this.setCapacity();
|
||||
}
|
||||
|
||||
public void readFromNBTWithoutCoords(NBTTagCompound tag) {
|
||||
this.tank.readFromNBT(tag);
|
||||
}
|
||||
|
||||
public void writeToNBT(NBTTagCompound data) {
|
||||
super.writeToNBT(data);
|
||||
writeToNBTWithoutCoords(data);
|
||||
}
|
||||
|
||||
public void setCapacity() {
|
||||
this.tank.setCapacity(CAPACITY);
|
||||
}
|
||||
|
||||
public void writeToNBTWithoutCoords(NBTTagCompound tag) {
|
||||
this.tank.writeToNBT(tag);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user