mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-19 11:49:14 +00:00
Update for Minecraft 1.9.4
This commit is contained in:
1 parent
da486ee941
commit
b444994b81
163 files changed
+939
-641
No files matched your search
@@ -1,5 +1,7 @@
|
||||
package cofh.api.energy;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.EnumFacing;
|
||||
@@ -23,11 +25,12 @@ public class TileEnergyHandler extends TileEntity implements IEnergyReceiver, IE
|
||||
storage.readFromNBT(nbt);
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
public void writeToNBT(NBTTagCompound nbt) {
|
||||
|
||||
super.writeToNBT(nbt);
|
||||
public NBTTagCompound writeToNBT(NBTTagCompound nbt) {
|
||||
nbt = super.writeToNBT(nbt);
|
||||
storage.writeToNBT(nbt);
|
||||
return nbt;
|
||||
}
|
||||
|
||||
/* IEnergyConnection */
|
||||
|
||||
Reference in new issue
Block a user