mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 11:57:29 +00:00
29 lines
759 B
Java
29 lines
759 B
Java
package noppes.npcs.client;
|
|
|
|
import net.minecraft.init.Items;
|
|
import net.minecraft.item.Item;
|
|
import net.minecraft.stats.Achievement;
|
|
import net.minecraft.util.ChatComponentText;
|
|
import net.minecraft.util.IChatComponent;
|
|
import noppes.npcs.CustomItems;
|
|
|
|
public class QuestAchievement extends Achievement{
|
|
|
|
private String description;
|
|
private String message;
|
|
public QuestAchievement(String message, String description) {
|
|
super("",message, 0, 0, CustomItems.letter==null?Items.paper:CustomItems.letter, null);
|
|
this.description = description;
|
|
this.message = message;
|
|
}
|
|
@Override
|
|
public IChatComponent func_150951_e()
|
|
{
|
|
return new ChatComponentText(message);
|
|
}
|
|
public String getDescription()
|
|
{
|
|
return description;
|
|
}
|
|
}
|