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