Skip to content

Instantly share code, notes, and snippets.

@whilb
Last active January 4, 2016 13:19
Show Gist options
  • Save whilb/8626702 to your computer and use it in GitHub Desktop.
Save whilb/8626702 to your computer and use it in GitHub Desktop.
implementing an abstract class
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