Solved Cycle through list of colored wool and set them as helmet?

Discussion in 'Spigot Plugin Development' started by MaxNatural, May 14, 2016.

  1. Is there anyway to do this? I want to be able to open a GUI click the wool and it goes through all the colors of the wool and set them... If you know how could you start the code for me and I could pick it up?

    Thank you so much! :D
     
  2. Bit reflectionish but here
    Code (Text):


    DyeColor.class.getEnumConstants();
     
    Also helmet colour can be any colour on a 24 bit colour palette.
     
    • Funny Funny x 1
  3. wouldn't this be more effective?
    Code (Java):
    for (DyeColor color : DyeColor.values()) {
    //do stuff
    }
     
  4. Yea that will do as well. xD
    I got that from reflection-related code I have in my junk pile.