Last active
January 4, 2016 13:19
-
-
Save whilb/8626702 to your computer and use it in GitHub Desktop.
implementing an abstract class
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 net.aerenserve.melded.requirements; | |
import org.bukkit.Location; | |
import org.bukkit.plugin.Plugin; | |
public class LocationRequirement extends Requirement { | |
String name; | |
Location loc; | |
double distance; | |
RequirementType type = RequirementType.LOCATION; | |
protected LocationRequirement(Plugin plugin, String name, Location loc, double distance) { | |
super(plugin, RequirementType.LOCATION); | |
this.loc = loc; | |
this.distance = distance; | |
} | |
public RequirementType getType() { | |
return type; | |
} | |
public String getName() { | |
return name; | |
} | |
public void setName(String name) { | |
this.name = name; | |
} | |
public Location getLocation() { | |
return loc; | |
} | |
public void setLocation(Location loc) { | |
this.loc = loc; | |
} | |
public double getDistance() { | |
return distance; | |
} | |
public void setDistance(double distance) { | |
this.distance = distance; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment