Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.gamebuster19901.supernatural.capabilities;
- 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 SaltyStorage implements IStorage<Salty>{
- @Override
- public NBTBase writeNBT(Capability<Salty> capability, Salty instance, EnumFacing side) {
- capability.readNBT(instance, side, /* how to get nbtbase? */ );
- //TODO return an NBTBase somehow
- }
- @Override
- public void readNBT(Capability<Salty> capability, Salty instance, EnumFacing side, NBTBase nbt) {
- // TODO read bytes from NBTBase
- // TODO send bytes?
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement