1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-21 04:05:48 +00:00
Slimefun4/src/me/mrCookieSlime/Slimefun/GitHub/Contributor.java

65 lines
1.4 KiB
Java
Raw Normal View History

package me.mrCookieSlime.Slimefun.GitHub;
/**
* Represents a contributor on Slimefun4's GitHub repository.
*
* @since 4.1.6
*/
public class Contributor {
private String name;
private String job;
private String profile;
private int commits;
public Contributor(String name, String job, int commits) {
this.name = name;
this.job = job;
this.commits = commits;
}
/**
* Returns the name of this contributor.
*
* @return the name of this contributor
* @since 4.1.13
*/
public String getName() { return this.name; }
/**
* Returns the job of this contributor.
* It can be {@code Author} or {@code Head Artist}.
*
* @return the job of this contributor
* @since 4.1.13
*/
public String getJob() { return this.job; }
/**
* Returns the link to the GitHub profile of this contributor.
*
* @return the GitHub profile of this contributor.
* @since 4.1.13
*/
public String getProfile() { return this.profile; }
/**
* Returns the number of commits to the Slimefun4's repository of this contributor.
*
* @return the number of commits of this contributor.
* @since 4.1.13
*/
public int getCommits() { return this.commits; }
/**
* Sets the link to the GitHub profile of this contributor.
*
* @param profile the link to the GitHub profile of this contributor
*
* @since 4.1.13
*/
protected void setProfile(String profile) {
this.profile = profile;
}
}