public class NbtReadLimiter extends Object
Modifier and Type | Field and Description |
---|---|
static NbtReadLimiter |
UNLIMITED |
Constructor and Description |
---|
NbtReadLimiter(long limit) |
Modifier and Type | Method and Description |
---|---|
void |
read(int length)
Increments the read-length count, and throws an exception if the limit is exceeded.
|
public static final NbtReadLimiter UNLIMITED
public void read(int length)
length
- the length to add to the read-length countIllegalStateException
- if the limit is exceededCopyright © 2021. All rights reserved.