Advertisement
Bibouche

Untitled

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