Created
July 26, 2015 21:03
-
-
Save KieronWiltshire/6be01c9e13724bd3ffb6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.dracade.ember.core; | |
import org.spongepowered.api.world.Location; | |
import java.util.List; | |
public class TeamArena extends Arena { | |
private List<Location> teamA; | |
private List<Location> teamB; | |
/** | |
* Creates a new Arena instance. | |
* | |
* @param name the name of the arena. | |
* @param spawn the spawn location of the arena. | |
*/ | |
protected TeamArena(String name, Location spawn) { | |
super(name, spawn); | |
} | |
/** | |
* Get the spawn locations of Team A. | |
* | |
* @return A List of Location objects. | |
*/ | |
public List<Location> getTeamASpawns() { | |
return this.teamA; | |
} | |
/** | |
* Get the spawn locations of Team B. | |
* | |
* @return A List of Location objects. | |
*/ | |
public List<Location> getTeamBSpawns() { | |
return this.teamB; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment