All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tvd12.gamebox.constant.PlayerRole Maven / Gradle / Ivy

There is a newer version: 1.2.4
Show newest version
package com.tvd12.gamebox.constant;

import com.tvd12.ezyfox.util.EzyEnums;

import lombok.Getter;

public enum PlayerRole implements IPlayerRole {

	NULL(0),
	MASTER(1),
	SPECTATOR(2),
	PLAYER(3),
	NPC(4);
	
	@Getter
	private int id;
	
	private PlayerRole(int id) {
		this.id = id;
	}
	
	@Override
	public String getName() {
		return toString();
	}
	
	public static PlayerRole valueOf(int id) {
		return EzyEnums.valueOf(values(), id);
	}
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy