Playlist contains a full shuffle now.
This commit is contained in:
parent
62ccfbc12b
commit
435007a502
3 changed files with 35 additions and 14 deletions
|
@ -2,7 +2,12 @@ package me.mctp.api.maps;
|
|||
|
||||
import java.util.*;
|
||||
|
||||
public class Playlist<E> extends ArrayList<E> {
|
||||
/**
|
||||
* An {@link ArrayList} with shuffle support.
|
||||
*
|
||||
* @param <E> The type you want to store
|
||||
*/
|
||||
public class SongList<E> extends ArrayList<E> {
|
||||
public void shuffle() {
|
||||
Random random = new Random();
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue