package melonslise.runicinscription.common.capability.api;

import net.minecraft.nbt.NBTBase;
import net.minecraft.util.EnumFacing;
import net.minecraftforge.common.capabilities.Capability;
import net.minecraftforge.common.capabilities.Capability.IStorage;

public class CapabilityStorage<T extends ICapabilitySerializable> implements IStorage<T>
{	
	@Override
	public NBTBase writeNBT(Capability<T> capability, T instance, EnumFacing side)
	{
		return ((ICapabilitySerializable) instance).writeNBT(side);
	}

	@Override
	public void readNBT(Capability<T> capability, T instance, EnumFacing side, NBTBase nbt)
	{
		((ICapabilitySerializable) instance).readNBT(nbt);
	}
}
@@ -345,10 +345,9 @@
 T%3E%0A%7B
-%09
 %0A
+
 %09@Ov
@@ -448,35 +448,8 @@
 turn
- ((ICapabilitySerializable)
  ins
@@ -453,17 +453,16 @@
 instance
-)
 .writeNB
@@ -583,43 +583,16 @@
 %7B%0A%09%09
-((ICapabilitySerializable) 
 instance
 ).re
@@ -587,17 +587,16 @@
 instance
-)
 .readNBT
@@ -605,9 +605,10 @@
 bt);%0A%09%7D%0A
-
 %7D
+%0A

Update CapabilityStorage.java