minecraftcommandapi
Version:
An API, which provides functions to generate Minecraft Commands
43 lines (42 loc) • 1.48 kB
TypeScript
import { Achievement } from './';
import { ICommand } from '../../core';
/**
* @name IAchievementCommandCommand
* @description
* Generates the final Achievement Command.
*/
export interface IAchievementCommandCommand extends ICommand {
}
/**
* @name AchievementCommandCommand
* @description
* Generates the final Achievement Command.
*/
export declare class AchievementCommandCommand implements IAchievementCommandCommand {
private isGiven;
private playerName;
private achievement;
/**
* @description
* Initializes the class
* @param {Boolean} isGiven If the command should 'take' or 'give' the achievement
* @param {Achievement} achievement The achievement to give or take
* @param {String} playername The playername which have or delete the given achievement.
*/
constructor(isGiven: Boolean, achievement: Achievement, playerName: String);
/**
* @name GetAchievementName
* @description
* Gets the name of achievement, by its value
* @param {Achievement} achievement The achievement you want to have the name of.
* @returns {String} The name of the achievement, of the given value
*/
private GetAchievementName(achievement);
/**
* @name Command
* @description
* Generates the achievement command and returns it as string
* @returns {String} The achievement command as string
*/
readonly Command: String;
}