@ApiInternal public class NameToIndexInfo extends java.lang.Object implements IPropSettings
| Constructor and Description |
|---|
NameToIndexInfo(java.lang.String name,
java.io.File file,
int max) |
| Modifier and Type | Method and Description |
|---|---|
void |
fromBuffer(io.netty.buffer.ByteBuf buf) |
IResourceName |
get(int id) |
java.io.File |
getFile(IDataManager manager) |
int |
getId(IResourceName name) |
java.lang.String |
getName() |
void |
load(java.util.Properties props) |
boolean |
needsSave() |
<T> void |
populate(NameRegistry<T> registry) |
void |
save(java.util.Properties props) |
void |
toBuffer(io.netty.buffer.ByteBuf buf) |
public NameToIndexInfo(java.lang.String name,
java.io.File file,
int max)
public <T> void populate(NameRegistry<T> registry)
public int getId(IResourceName name)
public IResourceName get(int id)
public boolean needsSave()
public void load(java.util.Properties props)
load in interface IPropSettingspublic void save(java.util.Properties props)
save in interface IPropSettingspublic java.io.File getFile(IDataManager manager)
getFile in interface IPropSettingspublic java.lang.String getName()
getName in interface IPropSettingspublic void fromBuffer(io.netty.buffer.ByteBuf buf)
public void toBuffer(io.netty.buffer.ByteBuf buf)