Advertisement
Guest User

Untitled

a guest
Jan 16th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.86 KB | None | 0 0
  1. package net.gudenau.lib.api.client.event;
  2.  
  3. import net.minecraftforge.fml.common.eventhandler.Event;
  4.  
  5. import java.util.ArrayList;
  6. import java.util.Collection;
  7. import java.util.Collections;
  8. import java.util.List;
  9.  
  10. /**
  11.  * Created by gudenau on 1/11/2017.
  12.  * <p>
  13.  * GudLib
  14.  */
  15. @Event.HasResult
  16. public class SplashesLoadedEvent extends Event {
  17.     private final List<String> splashes;
  18.  
  19.     public SplashesLoadedEvent(List<String> splashes) {
  20.         this.splashes = splashes;
  21.     }
  22.  
  23.     public void addSplash(String splash){
  24.         splashes.add(splash);
  25.     }
  26.  
  27.     public void addSplashes(String[] splashes){
  28.         Collections.addAll(this.splashes, splashes);
  29.     }
  30.  
  31.     public void addSplashes(Collection<String> splashes){
  32.         this.splashes.addAll(splashes);
  33.     }
  34.  
  35.     public List<String> getSplashes(){
  36.         return splashes;
  37.     }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement