public class KnowledgeManager
extends java.lang.Object
Constructor and Description |
---|
KnowledgeManager(@NotNull GuiStateManager guiStateManager) |
Modifier and Type | Method and Description |
---|---|
void |
addKnowledge(int index,
@NotNull java.lang.String type,
@NotNull java.lang.String title,
int face) |
void |
addKnowledgeListener(@NotNull KnowledgeListener listener)
Adds a
KnowledgeListener to notify about changes. |
void |
addKnowledgeType(@NotNull java.lang.String type,
@NotNull java.lang.String name,
int face,
boolean canAttempt) |
boolean |
canAttemptType(@NotNull java.lang.String type) |
void |
clearTypes() |
void |
filterType(int index) |
@Nullable KnowledgeItem |
getKnowledge(int index)
Returns a
KnowledgeItem instance by index. |
int |
getKnowledgeCount() |
int |
getTypeFace(int index) |
@NotNull java.lang.String |
getTypeName(int index) |
int |
getTypes() |
void |
selectCharacter()
A character name was sent to the server.
|
public KnowledgeManager(@NotNull @NotNull GuiStateManager guiStateManager)
public void selectCharacter()
public void addKnowledgeListener(@NotNull @NotNull KnowledgeListener listener)
KnowledgeListener
to notify about changes.listener
- the listener to addpublic void addKnowledgeType(@NotNull @NotNull java.lang.String type, @NotNull @NotNull java.lang.String name, int face, boolean canAttempt)
public void clearTypes()
public int getTypes()
@NotNull public @NotNull java.lang.String getTypeName(int index)
public int getTypeFace(int index)
public boolean canAttemptType(@NotNull @NotNull java.lang.String type)
public void addKnowledge(int index, @NotNull @NotNull java.lang.String type, @NotNull @NotNull java.lang.String title, int face)
public int getKnowledgeCount()
@Nullable public @Nullable KnowledgeItem getKnowledge(int index)
KnowledgeItem
instance by index.index
- the indexnull
if the index is invalidpublic void filterType(int index)