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

78 lines
1.7 KiB
Java
Raw Normal View History

package me.mrCookieSlime.Slimefun.GitHub;
2019-05-30 11:42:06 +00:00
import java.util.HashMap;
import java.util.Map;
/**
* Represents a contributor on Slimefun4's GitHub repository.
*
* @since 4.1.6
*/
public class Contributor {
2019-05-30 11:42:06 +00:00
public static Map<String, String> textures = new HashMap<>();
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;
}
2019-05-30 11:42:06 +00:00
/**
* Returns this Creator's head texture
* @return A Base64-Head Texture
*/
public String getTexture() {
return textures.get(name);
}
}