DataWatcher 'a' Indexes ?

Discussion in 'Plugin Development' started by thebigdolphin1, Feb 23, 2014.

Thread Status:
Not open for further replies.
  1. Is there anywhere I can find a list of the numbers for a DataWatcher?

    If you don't understand what I mean, here:
    DataWatcher.a(1, "yolo");
    DataWatcher.a(index, value);

    If there is no list, has anyone got the way to set the 'age' of an entity (like with entity spawning on command blocks, the 'age' value).

    Thanks.
     
  2. Can anyone help me?
     
  3. Offline

    xTrollxDudex

    thebigdolphin1
    Are you using a packet or something? Or are you using an NMS entity instance?
     
  4. Using packets.
     
  5. Offline

    xTrollxDudex

    thebigdolphin1
    Just create a new entity, set the things you want, play out packet with its handle, and remove.
     
  6. Offline

    Comphenix

    Sounds like you're trying to create a holograph. There's plenty of resources for doing that already - here and here for instance.

    But to answer your question, you'll find a table of all the possible key-value types in the DataWatcher (don't forget the data type!) here. Oh, and please remember to cast the value to an object before using the a method.
     
    Garris0n and Shayana like this.
  7. Thank you soo much for them links :D
    And yes, it was for holograms :p
     
Thread Status:
Not open for further replies.

Share This Page