Created
September 26, 2013 00:24
-
-
Save PaulBGD/6708156 to your computer and use it in GitHub Desktop.
Arena Resource 1
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 me.ultimate.Arena; | |
import org.bukkit.Location; | |
public class Arena { | |
private String name; // A spot to store our arena's name | |
private Location l1, l2; // Our two corners | |
private Location spawn, stop; // Where we start and stop | |
// We'll create a new instance of this class with all the data | |
public Arena(String name, Location l1, Location l2, Location spawn, | |
Location stop) { | |
// Assign it all to local variables.. | |
this.name = name; | |
this.l1 = l1; | |
this.l2 = l2; | |
this.spawn = spawn; | |
this.stop = stop; | |
} | |
// Now, we'll put a few methods here to get the variables | |
public String getName() { | |
return name; | |
} | |
public Location getLocationOne() { | |
return l1; | |
} | |
public Location getLocationTwo() { | |
return l2; | |
} | |
public Location getSpawn() { | |
return spawn; | |
} | |
public Location getStop() { | |
return stop; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment