protected class RagdollPreset.LexiconEntry
extends java.util.HashMap<java.lang.String,java.lang.Integer>
Modifier | Constructor and Description |
---|---|
protected |
LexiconEntry() |
Modifier and Type | Method and Description |
---|---|
void |
addSynonym(java.lang.String word,
int score)
Add a synonym with the specified score.
|
int |
getScore(java.lang.String word)
Calculate a total score for the specified bone name.
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
public void addSynonym(java.lang.String word, int score)
word
- a substring that might occur in a bone name (not null)score
- larger value means more likely to correspondpublic int getScore(java.lang.String word)
word
- the name of a bone (not null)