Package net.minecraftforge.common
Class ForgeMod
java.lang.Object
net.minecraftforge.common.ForgeMod
- All Implemented Interfaces:
WorldPersistenceHooks.WorldPersistenceHook
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final DeferredRegister<Attribute>private static booleanstatic final RegistryObject<Attribute>static final RegistryObject<Fluid>private static final org.apache.logging.log4j.Markerprivate static ForgeModprivate static final org.apache.logging.log4j.Loggerstatic final RegistryObject<Fluid>static final RegistryObject<Attribute>static final RegistryObject<Attribute>static final RegistryObject<Attribute>static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidRun this method during mod constructor to enable milk and add it to the Minecraft milk bucketvoidgatherData(GatherDataEvent event) getDataForWriting(SaveFormat.LevelSave levelSave, IServerConfiguration serverInfo) static ForgeModgetModId()voidloadComplete(FMLLoadCompleteEvent event) voidvoidvoidvoidreadData(SaveFormat.LevelSave levelSave, IServerConfiguration serverInfo, CompoundNBT tag) private voidvoidvoidvoidvoid
-
Field Details
-
VERSION_CHECK_CAT
- See Also:
-
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 -
preInit
-
registerArgumentTypes
private void registerArgumentTypes() -
loadComplete
-
serverStopping
-
getDataForWriting
public CompoundNBT getDataForWriting(SaveFormat.LevelSave levelSave, IServerConfiguration serverInfo) - Specified by:
getDataForWritingin interfaceWorldPersistenceHooks.WorldPersistenceHook
-
readData
public void readData(SaveFormat.LevelSave levelSave, IServerConfiguration serverInfo, CompoundNBT tag) - Specified by:
readDatain interfaceWorldPersistenceHooks.WorldPersistenceHook
-
mappingChanged
-
getModId
- Specified by:
getModIdin interfaceWorldPersistenceHooks.WorldPersistenceHook
-
gatherData
-
missingSoundMapping
-
registerFluids
-
registerRecipeSerialziers
-
registerLootData
-