Package net.minecraftforge.common
Class ForgeMod
java.lang.Object
net.minecraftforge.common.ForgeMod
- All Implemented Interfaces:
WorldPersistenceHooks.WorldPersistenceHook
-
Field Summary
Modifier and TypeFieldDescriptionprivate static DeferredRegister<Attribute>
private static boolean
static RegistryObject<Attribute>
static RegistryObject<Fluid>
private static org.apache.logging.log4j.Marker
private static ForgeMod
private static org.apache.logging.log4j.Logger
static RegistryObject<Fluid>
static RegistryObject<Attribute>
static RegistryObject<Attribute>
static RegistryObject<Attribute>
static String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Run this method during mod constructor to enable milk and add it to the Minecraft milk bucketvoid
gatherData(GatherDataEvent event)
getDataForWriting(LevelStorageSource.LevelStorageAccess levelSave, WorldData serverInfo)
static ForgeMod
getModId()
void
loadComplete(FMLLoadCompleteEvent event)
void
void
void
preInit(FMLCommonSetupEvent evt)
void
readData(LevelStorageSource.LevelStorageAccess levelSave, WorldData serverInfo, CompoundTag tag)
private void
void
void
registerFluids(RegistryEvent.Register<Fluid> event)
void
void
void
-
Field Details
-
VERSION_CHECK_CAT
- See Also:
- Constant Field Values
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
FORGEMOD
private static final org.apache.logging.log4j.Marker FORGEMOD -
ATTRIBUTES
-
SWIM_SPEED
-
NAMETAG_DISTANCE
-
ENTITY_GRAVITY
-
REACH_DISTANCE
-
enableMilkFluid
private static boolean enableMilkFluid -
MILK
-
FLOWING_MILK
-
INSTANCE
-
-
Constructor Details
-
ForgeMod
public ForgeMod()
-
-
Method Details
-
getInstance
-
enableMilkFluid
public static void enableMilkFluid()Run this method during mod constructor to enable milk and add it to the Minecraft milk bucket -
registerCapabilities
-
preInit
-
registerArgumentTypes
private void registerArgumentTypes() -
loadComplete
-
serverStopping
-
getDataForWriting
public CompoundTag getDataForWriting(LevelStorageSource.LevelStorageAccess levelSave, WorldData serverInfo)- Specified by:
getDataForWriting
in interfaceWorldPersistenceHooks.WorldPersistenceHook
-
readData
public void readData(LevelStorageSource.LevelStorageAccess levelSave, WorldData serverInfo, CompoundTag tag)- Specified by:
readData
in interfaceWorldPersistenceHooks.WorldPersistenceHook
-
mappingChanged
-
getModId
- Specified by:
getModId
in interfaceWorldPersistenceHooks.WorldPersistenceHook
-
gatherData
-
missingSoundMapping
-
registerFluids
-
registerRecipeSerialziers
-
registerLootData
-