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);
	}
}
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 CapabilityProvider implements INBTSerializable<NBTBase>
{
	public CapabilityProviderSerializable(Capability capability, ICapability 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);
	}
}

Update CapabilityProviderSerializable.java