public class ForgeModContainer extends DummyModContainer implements WorldAccessContainer
ModContainer.Disableable
EMPTY_PROPERTIES
Constructor and Description |
---|
ForgeModContainer() |
Modifier and Type | Method and Description |
---|---|
static Configuration |
getConfig() |
java.lang.Class<?> |
getCustomResourcePackClass() |
NBTTagCompound |
getDataForWriting(SaveHandler handler,
WorldInfo info) |
java.lang.String |
getGuiClassName() |
static ForgeModContainer |
getInstance() |
java.util.List<java.lang.String> |
getOwnedPackages() |
java.security.cert.Certificate |
getSigningCertificate() |
java.io.File |
getSource()
The location on the file system which this mod came from
|
java.net.URL |
getUpdateUrl() |
void |
mappingChanged(FMLModIdMappingEvent evt) |
void |
missingMapping(RegistryEvent.MissingMappings<Item> event) |
void |
modConstruction(FMLConstructionEvent evt) |
void |
onAvailable(FMLLoadCompleteEvent evt) |
void |
onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent event)
By subscribing to the OnConfigChangedEvent we are able to execute code when our config screens are closed.
|
void |
playerLogin(PlayerEvent.PlayerLoggedInEvent event) |
void |
postInit(FMLPostInitializationEvent evt) |
void |
preInit(FMLPreInitializationEvent evt) |
void |
readData(SaveHandler handler,
WorldInfo info,
java.util.Map<java.lang.String,NBTBase> propertyMap,
NBTTagCompound tag) |
private static void |
registerAllBiomesAndGenerateEvents() |
boolean |
registerBus(com.google.common.eventbus.EventBus bus,
LoadController controller)
Register the event bus for the mod and the controller for error handling
Returns if this bus was successfully registered - disabled mods and other
mods that don't need real events should return false and avoid further
processing
|
void |
registrItems(RegistryEvent.Register<Item> event) |
private static void |
remapGeneralPropertyToClient(java.lang.String key) |
void |
serverStarting(FMLServerStartingEvent evt) |
void |
serverStopping(FMLServerStoppingEvent evt) |
private static void |
syncConfig(boolean load)
Synchronizes the local fields with the values in the Configuration object.
|
acceptableMinecraftVersionRange, bindMetadata, canBeDisabled, getClassVersion, getCustomModProperties, getDependants, getDependencies, getDisplayVersion, getMetadata, getMod, getModId, getName, getProcessedVersion, getRequirements, getSharedModDescriptor, getSortingRules, getVersion, isImmutable, matches, setClassVersion, setEnabledState, shouldLoadInEnvironment, toString
public static final java.lang.String VERSION_CHECK_CAT
public static int clumpingThreshold
public static boolean removeErroringEntities
public static boolean removeErroringTileEntities
public static boolean fullBoundingBoxLadders
public static double zombieSummonBaseChance
public static int[] blendRanges
public static float zombieBabyChance
public static boolean shouldSortRecipies
public static boolean disableVersionCheck
public static boolean forgeLightPipelineEnabled
public static boolean selectiveResourceReloadEnabled
@Deprecated public static boolean replaceVanillaBucketModel
public static boolean zoomInMissingModelTextInGui
public static boolean forgeCloudsEnabled
public static boolean disableStairSlabCulling
public static boolean alwaysSetupTerrainOffThread
public static boolean allowEmissiveItems
public static int dimensionUnloadQueueDelay
public static boolean logCascadingWorldGeneration
public static boolean fixVanillaCascading
static final org.apache.logging.log4j.Logger log
private static Configuration config
private static ForgeModContainer INSTANCE
private java.net.URL updateJSONUrl
public UniversalBucket universalBucket
public static ForgeModContainer getInstance()
public java.lang.String getGuiClassName()
getGuiClassName
in interface ModContainer
getGuiClassName
in class DummyModContainer
public static Configuration getConfig()
private static void remapGeneralPropertyToClient(java.lang.String key)
private static void syncConfig(boolean load)
public void onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent event)
public void missingMapping(RegistryEvent.MissingMappings<Item> event)
public void playerLogin(PlayerEvent.PlayerLoggedInEvent event)
public boolean registerBus(com.google.common.eventbus.EventBus bus, LoadController controller)
ModContainer
registerBus
in interface ModContainer
registerBus
in class DummyModContainer
public void modConstruction(FMLConstructionEvent evt)
public void preInit(FMLPreInitializationEvent evt)
public void registrItems(RegistryEvent.Register<Item> event)
public void postInit(FMLPostInitializationEvent evt)
private static void registerAllBiomesAndGenerateEvents()
public void onAvailable(FMLLoadCompleteEvent evt)
public void serverStarting(FMLServerStartingEvent evt)
public void serverStopping(FMLServerStoppingEvent evt)
public NBTTagCompound getDataForWriting(SaveHandler handler, WorldInfo info)
getDataForWriting
in interface WorldAccessContainer
public void readData(SaveHandler handler, WorldInfo info, java.util.Map<java.lang.String,NBTBase> propertyMap, NBTTagCompound tag)
readData
in interface WorldAccessContainer
public void mappingChanged(FMLModIdMappingEvent evt)
public java.io.File getSource()
ModContainer
getSource
in interface ModContainer
getSource
in class DummyModContainer
public java.lang.Class<?> getCustomResourcePackClass()
getCustomResourcePackClass
in interface ModContainer
getCustomResourcePackClass
in class DummyModContainer
public java.util.List<java.lang.String> getOwnedPackages()
getOwnedPackages
in interface ModContainer
getOwnedPackages
in class DummyModContainer
@Nullable public java.security.cert.Certificate getSigningCertificate()
getSigningCertificate
in interface ModContainer
getSigningCertificate
in class DummyModContainer
public java.net.URL getUpdateUrl()
getUpdateUrl
in interface ModContainer
getUpdateUrl
in class DummyModContainer