public class ForgeMod extends java.lang.Object implements WorldPersistenceHooks.WorldPersistenceHook
Modifier and Type | Field and Description |
---|---|
private static org.apache.logging.log4j.Marker |
FORGEMOD |
private static ForgeMod |
INSTANCE |
private static org.apache.logging.log4j.Logger |
LOGGER |
static java.lang.String |
VERSION_CHECK_CAT |
Constructor and Description |
---|
ForgeMod() |
Modifier and Type | Method and Description |
---|---|
void |
gatherData(GatherDataEvent event) |
CompoundNBT |
getDataForWriting(SaveHandler handler,
WorldInfo info) |
static ForgeMod |
getInstance() |
java.lang.String |
getModId() |
void |
mappingChanged(FMLModIdMappingEvent evt) |
void |
missingSoundMapping(RegistryEvent.MissingMappings<SoundEvent> event) |
void |
preInit(FMLCommonSetupEvent evt) |
void |
readData(SaveHandler handler,
WorldInfo info,
CompoundNBT tag) |
void |
registerRecipeSerialziers(RegistryEvent.Register<IRecipeSerializer<?>> event) |
void |
serverStarting(FMLServerStartingEvent evt) |
void |
serverStopping(FMLServerStoppingEvent evt) |
public static final java.lang.String VERSION_CHECK_CAT
private static final org.apache.logging.log4j.Logger LOGGER
private static final org.apache.logging.log4j.Marker FORGEMOD
private static ForgeMod INSTANCE
public static ForgeMod getInstance()
public void preInit(FMLCommonSetupEvent evt)
public void serverStarting(FMLServerStartingEvent evt)
public void serverStopping(FMLServerStoppingEvent evt)
public CompoundNBT getDataForWriting(SaveHandler handler, WorldInfo info)
getDataForWriting
in interface WorldPersistenceHooks.WorldPersistenceHook
public void readData(SaveHandler handler, WorldInfo info, CompoundNBT tag)
readData
in interface WorldPersistenceHooks.WorldPersistenceHook
public void mappingChanged(FMLModIdMappingEvent evt)
public java.lang.String getModId()
getModId
in interface WorldPersistenceHooks.WorldPersistenceHook
public void gatherData(GatherDataEvent event)
public void missingSoundMapping(RegistryEvent.MissingMappings<SoundEvent> event)
public void registerRecipeSerialziers(RegistryEvent.Register<IRecipeSerializer<?>> event)