Solved DataWatcher.a in 1.15.2

Discussion in 'Plugin Development' started by Legendcreeper, May 23, 2020.

  1. Offline

    Legendcreeper

    I am currently updating my plugin from 1.8.9 to 1.15.2,
    and that method doesn't exist anymore.
    I tried using DataWatcher.set, but wasn't able to find out how it works.
    Can anyone show me an example of how to do that now?
     
  2. Offline

    KarimAKL

    @Legendcreeper Could you be more specific?
    1. What do you want to do?
    2. Is 'a' a field or a method?
    2.1. If it's a method, does it have any parameters? What does it do?
    2.2 If it's a field, what is it?
     
  3. Offline

    Legendcreeper

  4. Offline

    KarimAKL

    @Legendcreeper After looking through some NMS source, i think you're looking for DataWatcher#register(DataWatcherObject<T>, T)
     
  5. Offline

    Legendcreeper

    Thanks, it works ^.^
     
    KarimAKL likes this.

Share This Page