Iterable Colors

Discussion in 'Plugin Development' started by CapitanChewbacca, Jun 30, 2014.

Thread Status:
Not open for further replies.
  1. I saw recently this method on the code of the FireworkEffect and I would like to know how it works or how do I make a Iterator. The method is the withColor(Iterable<?> colors). Can someone explain to me how it works?
     
  2. Offline

    Garris0n

    Iterable (not Iterator) is an interface that you have to implement in order to support for-each loops. Look at the list of sub-classes here, you'll probably see one you're familiar with.
     
  3. Ohh, thanks ^^
     
    AoH_Ruthless likes this.
Thread Status:
Not open for further replies.

Share This Page