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.util.INBTSerializable;

public class CapabilityProviderSerializable extends CapabilityProviderBase implements INBTSerializable<NBTBase>
{
	public CapabilityProviderSerializable(Capability capability, ICapabilityBase instance, EnumFacing facing)
	{
		super(capability, instance, facing);
	}

	@Override
	public NBTBase serializeNBT()
	{
		return this.capability.getStorage().writeNBT(this.capability, this.instance, this.side);
	}

	@Override
	public void deserializeNBT(NBTBase nbt)
	{
		this.capability.getStorage().readNBT(this.capability, this.instance, this.side, nbt);
	}
}
@@ -310,20 +310,16 @@
 Provider
-Base
  impleme
@@ -423,20 +423,16 @@
 pability
-Base
  instanc
@@ -786,8 +786,9 @@
 t);%0A%09%7D%0A%7D
+%0A

Update CapabilityProviderSerializable.java