Advertisement
Gamebuster

SaltyStorage

Jul 1st, 2016
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.69 KB | None | 0 0
  1. package com.gamebuster19901.supernatural.capabilities;
  2.  
  3. import net.minecraft.nbt.NBTBase;
  4. import net.minecraft.util.EnumFacing;
  5. import net.minecraftforge.common.capabilities.Capability;
  6. import net.minecraftforge.common.capabilities.Capability.IStorage;
  7.  
  8. public class SaltyStorage implements IStorage<Salty>{
  9.  
  10.     @Override
  11.     public NBTBase writeNBT(Capability<Salty> capability, Salty instance, EnumFacing side) {
  12.         capability.readNBT(instance, side, /* how to get nbtbase? */ );
  13.         //TODO return an NBTBase somehow
  14.     }
  15.  
  16.     @Override
  17.     public void readNBT(Capability<Salty> capability, Salty instance, EnumFacing side, NBTBase nbt) {
  18.         // TODO read bytes from NBTBase
  19.         // TODO send bytes?
  20.        
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement