public class Quest
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Quest.Builder |
Modifier and Type | Field and Description |
---|---|
static java.lang.Class<? extends Quest> |
standardQuest |
Constructor and Description |
---|
Quest() |
Quest(net.minecraft.network.PacketBuffer buf) |
Quest(Quest toCopy,
java.lang.String newFilename) |
Quest(java.lang.String filename) |
Modifier and Type | Method and Description |
---|---|
static Quest.Builder |
builder() |
void |
clearDefaultStrings(int stage,
int objectives) |
void |
clearDefaultStrings(int stage,
int objective,
boolean unused) |
short |
getActiveStage() |
QuestColor |
getColor() |
java.lang.String |
getFilename() |
java.lang.String |
getIdentityName() |
java.lang.String |
getLangKey(java.lang.String key) |
Stage |
getNextStage(short stage) |
java.lang.String |
getPrintableName() |
Stage |
getStage(QuestProgress progress) |
Stage |
getStage(short stage) |
java.util.ArrayList<Stage> |
getStages() |
java.lang.String |
getUnlocalizedString(java.lang.String key) |
java.lang.String |
getUnlocalizedString(java.lang.String key,
QuestProgress progress) |
java.util.HashMap<java.lang.String,java.lang.String> |
getUnlocalizedStringMap() |
int |
getWeight() |
boolean |
isAbandonable() |
boolean |
isRepeatable() |
void |
parseAndMap() |
void |
putNewStringIfNeeded(java.lang.String key,
java.lang.String value) |
void |
putUnlocalizedString(java.lang.String key,
java.lang.String value) |
void |
readFromByteBuf(net.minecraft.network.PacketBuffer buf) |
void |
removeUnlocalizedString(java.lang.String key) |
void |
setActiveStage(short activeStage) |
void |
setColor(QuestColor color) |
void |
setDefaultStrings() |
void |
setDefaultStrings(int stage,
int objectives) |
void |
setDefaultStrings(int stage,
int objective,
boolean unused) |
void |
setFilename(java.lang.String filename) |
void |
setWeight(int weight) |
void |
toggleAbandonability() |
void |
toggleRepeatability() |
void |
writeToByteBuf(net.minecraft.network.PacketBuffer buf) |
public static java.lang.Class<? extends Quest> standardQuest
public Quest()
public Quest(java.lang.String filename)
public Quest(Quest toCopy, java.lang.String newFilename)
public Quest(net.minecraft.network.PacketBuffer buf)
public void putNewStringIfNeeded(java.lang.String key, java.lang.String value)
public void setDefaultStrings()
public void setDefaultStrings(int stage, int objectives)
public void setDefaultStrings(int stage, int objective, boolean unused)
public void clearDefaultStrings(int stage, int objectives)
public void clearDefaultStrings(int stage, int objective, boolean unused)
public void setFilename(java.lang.String filename)
public void parseAndMap() throws InvalidQuestArgsException
InvalidQuestArgsException
public java.lang.String getFilename()
public java.lang.String getIdentityName()
public java.lang.String getPrintableName()
public QuestColor getColor()
public void setColor(QuestColor color)
public int getWeight()
public void setWeight(int weight)
public boolean isRepeatable()
public void toggleRepeatability()
public boolean isAbandonable()
public void toggleAbandonability()
public short getActiveStage()
public void setActiveStage(short activeStage)
public java.util.ArrayList<Stage> getStages()
public Stage getStage(QuestProgress progress)
public Stage getStage(short stage)
public Stage getNextStage(short stage)
public java.lang.String getUnlocalizedString(java.lang.String key)
public java.lang.String getUnlocalizedString(java.lang.String key, @Nullable QuestProgress progress)
public java.lang.String getLangKey(java.lang.String key)
public java.util.HashMap<java.lang.String,java.lang.String> getUnlocalizedStringMap()
public void putUnlocalizedString(java.lang.String key, java.lang.String value)
public void removeUnlocalizedString(java.lang.String key)
public static Quest.Builder builder()
public void readFromByteBuf(net.minecraft.network.PacketBuffer buf)
public void writeToByteBuf(net.minecraft.network.PacketBuffer buf)