Skip to content

Instantly share code, notes, and snippets.

@KieronWiltshire
Created July 26, 2015 21:03
Show Gist options
  • Save KieronWiltshire/6be01c9e13724bd3ffb6 to your computer and use it in GitHub Desktop.
Save KieronWiltshire/6be01c9e13724bd3ffb6 to your computer and use it in GitHub Desktop.
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