Guest User

ModTagStorage

a guest
Oct 23rd, 2020
9
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class ModTagStorage implements Capability.IStorage<IModTag> {
  2. @Override
  3. public FloatNBT writeNBT(Capability<IModTag> capability, IModTag instance, Direction side) {
  4. return FloatNBT.valueOf(instance.get());
  5. }
  6.  
  7. @Override
  8. public void readNBT(Capability<IModTag> capability, IModTag instance, Direction side, INBT nbt) {
  9. instance.set(1);
  10. }
  11. }
RAW Paste Data