Advertisement
Bibouche

Untitled

Jul 21st, 2021
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.30 KB | None | 0 0
  1.     public void read(
  2.         BlockState state,
  3.         CompoundNBT nbt) {
  4.         super.read(
  5.             state,
  6.             nbt);
  7.  
  8.         capability.readNBT(inv, null, nbt);
  9.     }
  10.  
  11.     @Nonnull
  12.     @Override
  13.     public CompoundNBT write(
  14.         CompoundNBT compound) {
  15.         super.write(compound);
  16.         capability.writeNBT(inv, null);
  17.         return compound;
  18.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement