public class CodexEntryV2 extends java.lang.Object implements CodexEntryPlugin
CodexEntryPlugin.ListMode| Modifier and Type | Field and Description |
|---|---|
protected float |
categorySortTierForRelatedEntries |
protected boolean |
checking |
protected java.util.List<CodexEntryPlugin> |
children |
protected java.lang.String |
icon |
protected java.lang.String |
id |
protected java.lang.Object |
param |
protected java.lang.Object |
param2 |
protected CodexEntryPlugin |
parent |
protected java.util.Set<java.lang.String> |
related |
protected boolean |
retainOrderOfChildren |
protected boolean |
retainOrderOfRelatedEntries |
protected java.util.Set<java.lang.String> |
tags |
protected java.lang.String |
title |
| Constructor and Description |
|---|
CodexEntryV2(java.lang.String id,
java.lang.String title,
java.lang.String icon) |
CodexEntryV2(java.lang.String id,
java.lang.String title,
java.lang.String icon,
java.lang.Object param) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(CodexEntryPlugin entry) |
void |
addRelatedEntry(CodexEntryPlugin entry) |
void |
addRelatedEntry(java.lang.String id) |
void |
addTag(java.lang.String tag)
These tags are completely unrelated to the matchesTags() method; these are not player-facing at all.
|
boolean |
areAnyRelatedEntriesUnlocked() |
boolean |
areAnyRelatedEntriesVisible() |
boolean |
checkTagsWhenLocked() |
void |
configureTagDisplay(TagDisplayAPI tags) |
void |
createCustomDetail(CustomPanelAPI panel,
UIPanelAPI relatedEntries,
CodexDialogAPI codex) |
void |
createTitleForList(TooltipMakerAPI info,
float width,
CodexEntryPlugin.ListMode mode) |
void |
destroyCustomDetail() |
void |
findChildren(CodexEntryPlugin curr,
java.util.List<CodexEntryPlugin> result,
boolean includeCategories) |
float |
getCategorySortTierForRelatedEntries()
Checked for the *parent* of the related entry.
|
java.util.List<CodexEntryPlugin> |
getChildren() |
java.util.List<CodexEntryPlugin> |
getChildrenRecursive(boolean includeCategories) |
CustomUIPanelPlugin |
getCustomPanelPlugin()
Optional, can be null.
|
java.lang.String |
getIcon() |
java.lang.String |
getId() |
java.lang.Object |
getParam() |
java.lang.Object |
getParam2() |
CodexEntryPlugin |
getParent() |
java.util.Set<CodexEntryPlugin> |
getRelatedEntries() |
java.util.Set<java.lang.String> |
getRelatedEntryIds() |
java.lang.String |
getSearchString() |
java.lang.String |
getSortTitle() |
ModSpecAPI |
getSourceMod() |
java.util.Set<java.lang.String> |
getTags()
These tags are completely unrelated to the matchesTags() method; these are not player-facing at all.
|
java.lang.String |
getTitle() |
java.util.Set<java.lang.String> |
getUnlockRelatedTags() |
boolean |
hasCustomDetailPanel() |
boolean |
hasDetail() |
boolean |
hasTag(java.lang.String tag)
These tags are completely unrelated to the matchesTags() method; these are not player-facing at all.
|
boolean |
hasTagDisplay() |
boolean |
isCategory() |
boolean |
isLocked() |
boolean |
isLockedStandard(java.util.Set<java.lang.String> tags,
boolean thingUnlocked) |
boolean |
isRetainOrderOfChildren() |
boolean |
isRetainOrderOfRelatedEntries() |
boolean |
isUnlockedIfRequiresUnlock() |
boolean |
isVignetteIcon() |
boolean |
isVisible() |
boolean |
isVisibleStandard(java.util.Set<java.lang.String> tags,
boolean thingUnlocked) |
boolean |
matchesTags(java.util.Set<java.lang.String> tags) |
void |
removeRelatedEntry(CodexEntryPlugin entry) |
void |
removeRelatedEntry(java.lang.String id) |
void |
setCategorySortTierForRelatedEntries(float categorySortTierForRelatedEntries) |
void |
setIcon(java.lang.String icon) |
void |
setParam(java.lang.Object param) |
void |
setParam2(java.lang.Object param2) |
void |
setParent(CodexEntryPlugin parent) |
void |
setRetainOrderOfChildren(boolean retainOrderOfChildren) |
void |
setRetainOrderOfRelatedEntries(boolean retainOrderOfRelatedEntries) |
boolean |
skipForTags() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIconColorprotected java.lang.String id
protected java.lang.String title
protected java.lang.String icon
protected CodexEntryPlugin parent
protected java.lang.Object param
protected java.lang.Object param2
protected java.util.List<CodexEntryPlugin> children
protected java.util.Set<java.lang.String> related
protected boolean retainOrderOfChildren
protected boolean retainOrderOfRelatedEntries
protected float categorySortTierForRelatedEntries
protected java.util.Set<java.lang.String> tags
protected boolean checking
public CodexEntryV2(java.lang.String id, java.lang.String title, java.lang.String icon)
public CodexEntryV2(java.lang.String id, java.lang.String title, java.lang.String icon, java.lang.Object param)
public java.lang.String getId()
getId in interface CodexEntryPluginpublic java.lang.String getTitle()
getTitle in interface CodexEntryPluginpublic java.lang.String getSortTitle()
getSortTitle in interface CodexEntryPluginpublic java.lang.String getSearchString()
getSearchString in interface CodexEntryPluginpublic java.lang.String getIcon()
getIcon in interface CodexEntryPluginpublic void setIcon(java.lang.String icon)
setIcon in interface CodexEntryPluginpublic CodexEntryPlugin getParent()
getParent in interface CodexEntryPluginpublic void setParent(CodexEntryPlugin parent)
setParent in interface CodexEntryPluginpublic java.lang.Object getParam()
getParam in interface CodexEntryPluginpublic void setParam(java.lang.Object param)
public java.util.List<CodexEntryPlugin> getChildren()
getChildren in interface CodexEntryPluginpublic void addChild(CodexEntryPlugin entry)
addChild in interface CodexEntryPluginpublic boolean isRetainOrderOfChildren()
isRetainOrderOfChildren in interface CodexEntryPluginpublic void setRetainOrderOfChildren(boolean retainOrderOfChildren)
setRetainOrderOfChildren in interface CodexEntryPluginpublic boolean isCategory()
isCategory in interface CodexEntryPluginpublic void createTitleForList(TooltipMakerAPI info, float width, CodexEntryPlugin.ListMode mode)
createTitleForList in interface CodexEntryPluginpublic boolean hasDetail()
hasDetail in interface CodexEntryPluginpublic boolean matchesTags(java.util.Set<java.lang.String> tags)
matchesTags in interface CodexEntryPluginpublic boolean hasTagDisplay()
hasTagDisplay in interface CodexEntryPluginpublic void configureTagDisplay(TagDisplayAPI tags)
configureTagDisplay in interface CodexEntryPluginpublic java.util.Set<java.lang.String> getRelatedEntryIds()
getRelatedEntryIds in interface CodexEntryPluginpublic java.util.Set<CodexEntryPlugin> getRelatedEntries()
getRelatedEntries in interface CodexEntryPluginpublic void addRelatedEntry(CodexEntryPlugin entry)
addRelatedEntry in interface CodexEntryPluginpublic void addRelatedEntry(java.lang.String id)
addRelatedEntry in interface CodexEntryPluginpublic void removeRelatedEntry(CodexEntryPlugin entry)
removeRelatedEntry in interface CodexEntryPluginpublic void removeRelatedEntry(java.lang.String id)
removeRelatedEntry in interface CodexEntryPluginpublic boolean isRetainOrderOfRelatedEntries()
isRetainOrderOfRelatedEntries in interface CodexEntryPluginpublic void setRetainOrderOfRelatedEntries(boolean retainOrderOfRelatedEntries)
setRetainOrderOfRelatedEntries in interface CodexEntryPluginpublic float getCategorySortTierForRelatedEntries()
CodexEntryPlugingetCategorySortTierForRelatedEntries in interface CodexEntryPluginpublic void setCategorySortTierForRelatedEntries(float categorySortTierForRelatedEntries)
setCategorySortTierForRelatedEntries in interface CodexEntryPluginpublic java.util.List<CodexEntryPlugin> getChildrenRecursive(boolean includeCategories)
getChildrenRecursive in interface CodexEntryPluginpublic void findChildren(CodexEntryPlugin curr, java.util.List<CodexEntryPlugin> result, boolean includeCategories)
public boolean hasCustomDetailPanel()
hasCustomDetailPanel in interface CodexEntryPluginpublic CustomUIPanelPlugin getCustomPanelPlugin()
CodexEntryPlugingetCustomPanelPlugin in interface CodexEntryPluginpublic void createCustomDetail(CustomPanelAPI panel, UIPanelAPI relatedEntries, CodexDialogAPI codex)
createCustomDetail in interface CodexEntryPluginpublic void destroyCustomDetail()
destroyCustomDetail in interface CodexEntryPluginpublic boolean isVignetteIcon()
isVignetteIcon in interface CodexEntryPluginpublic boolean areAnyRelatedEntriesVisible()
public boolean areAnyRelatedEntriesUnlocked()
public boolean isVisible()
isVisible in interface CodexEntryPluginpublic boolean isLocked()
isLocked in interface CodexEntryPluginpublic boolean checkTagsWhenLocked()
checkTagsWhenLocked in interface CodexEntryPluginpublic java.util.Set<java.lang.String> getUnlockRelatedTags()
public boolean isUnlockedIfRequiresUnlock()
public boolean isVisibleStandard(java.util.Set<java.lang.String> tags, boolean thingUnlocked)
public boolean isLockedStandard(java.util.Set<java.lang.String> tags, boolean thingUnlocked)
public java.lang.Object getParam2()
getParam2 in interface CodexEntryPluginpublic void setParam2(java.lang.Object param2)
public boolean skipForTags()
skipForTags in interface CodexEntryPluginpublic java.util.Set<java.lang.String> getTags()
CodexEntryPlugingetTags in interface CodexEntryPluginpublic void addTag(java.lang.String tag)
CodexEntryPluginaddTag in interface CodexEntryPluginpublic boolean hasTag(java.lang.String tag)
CodexEntryPluginhasTag in interface CodexEntryPluginpublic ModSpecAPI getSourceMod()
getSourceMod in interface CodexEntryPlugin