Entity Metadata Documentation

Discussion in 'Spigot Plugin Development' started by Rlaxing, Jul 10, 2017.

  1. Hey,

    I can't seem to find any information about the data that setMetadata() takes. The javadocs just says this:

    Code (Text):
    metadataKey - A unique key to identify this metadata.
    newMetadataValue - The metadata value to apply.

    Any help about the data would be appreciated.

    Thanks
     
  2. If I remember correctly, you can use a FixedMetadataValue for it, as it extends LazyMetadataValue which implements MetadataValue.

    EDIT:
    Got sniped, oh well, the tutorial linked above is good to understand metadata values so.
     
    • Informative Informative x 1