mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-07-04 07:17:26 +07:00
Added documentation regarding method intended use-case
This commit is contained in:
@ -47,12 +47,18 @@ public class StatListReader {
|
|||||||
return stats.get();
|
return stats.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reads a single property list into {@link Attributes#base()}
|
||||||
|
*/
|
||||||
public StatListGetter read(Attributes attrs, BitInput bits) {
|
public StatListGetter read(Attributes attrs, BitInput bits) {
|
||||||
final StatList stats = attrs.base().clear();
|
final StatList stats = attrs.base().clear();
|
||||||
final StatListBuilder builder = stats.buildList();
|
final StatListBuilder builder = stats.buildList();
|
||||||
return read(builder, bits);
|
return read(builder, bits);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reads property lists into {@link Attributes#list()}
|
||||||
|
*/
|
||||||
public StatList read(Attributes attrs, BitInput bits, int flags, int maxLists) {
|
public StatList read(Attributes attrs, BitInput bits, int flags, int maxLists) {
|
||||||
final StatList stats = attrs.list().clear();
|
final StatList stats = attrs.list().clear();
|
||||||
for (int i = 0; i < maxLists; i++) {
|
for (int i = 0; i < maxLists; i++) {
|
||||||
|
Reference in New Issue
Block a user