Package net.minecraftforge.common
Class ForgeMod
- java.lang.Object
-
- net.minecraftforge.common.ForgeMod
-
- All Implemented Interfaces:
WorldPersistenceHooks.WorldPersistenceHook
public class ForgeMod extends java.lang.Object implements WorldPersistenceHooks.WorldPersistenceHook
-
-
Field Summary
Fields Modifier and Type Field Description private static DeferredRegister<Attribute>
ATTRIBUTES
private static boolean
enableMilkFluid
static RegistryObject<Attribute>
ENTITY_GRAVITY
static RegistryObject<Fluid>
FLOWING_MILK
private static org.apache.logging.log4j.Marker
FORGEMOD
private static ForgeMod
INSTANCE
private static org.apache.logging.log4j.Logger
LOGGER
static RegistryObject<Fluid>
MILK
static RegistryObject<Attribute>
NAMETAG_DISTANCE
static RegistryObject<Attribute>
REACH_DISTANCE
static RegistryObject<Attribute>
SWIM_SPEED
static java.lang.String
VERSION_CHECK_CAT
-
Constructor Summary
Constructors Constructor Description ForgeMod()
-
Method Summary
-
-
-
Field Detail
-
VERSION_CHECK_CAT
public static final java.lang.String 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
private static final DeferredRegister<Attribute> ATTRIBUTES
-
SWIM_SPEED
public static final RegistryObject<Attribute> SWIM_SPEED
-
NAMETAG_DISTANCE
public static final RegistryObject<Attribute> NAMETAG_DISTANCE
-
ENTITY_GRAVITY
public static final RegistryObject<Attribute> ENTITY_GRAVITY
-
REACH_DISTANCE
public static final RegistryObject<Attribute> REACH_DISTANCE
-
enableMilkFluid
private static boolean enableMilkFluid
-
MILK
public static final RegistryObject<Fluid> MILK
-
FLOWING_MILK
public static final RegistryObject<Fluid> FLOWING_MILK
-
INSTANCE
private static ForgeMod INSTANCE
-
-
Method Detail
-
getInstance
public static ForgeMod getInstance()
-
enableMilkFluid
public static void enableMilkFluid()
Run this method during mod constructor to enable milk and add it to the Minecraft milk bucket
-
preInit
public void preInit(FMLCommonSetupEvent evt)
-
registerArgumentTypes
private void registerArgumentTypes()
-
loadComplete
public void loadComplete(FMLLoadCompleteEvent event)
-
serverStopping
public void serverStopping(FMLServerStoppingEvent evt)
-
getDataForWriting
public CompoundNBT getDataForWriting(SaveFormat.LevelSave levelSave, IServerConfiguration serverInfo)
- Specified by:
getDataForWriting
in interfaceWorldPersistenceHooks.WorldPersistenceHook
-
readData
public void readData(SaveFormat.LevelSave levelSave, IServerConfiguration serverInfo, CompoundNBT tag)
- Specified by:
readData
in interfaceWorldPersistenceHooks.WorldPersistenceHook
-
mappingChanged
public void mappingChanged(FMLModIdMappingEvent evt)
-
getModId
public java.lang.String getModId()
- Specified by:
getModId
in interfaceWorldPersistenceHooks.WorldPersistenceHook
-
gatherData
public void gatherData(GatherDataEvent event)
-
missingSoundMapping
public void missingSoundMapping(RegistryEvent.MissingMappings<SoundEvent> event)
-
registerFluids
public void registerFluids(RegistryEvent.Register<Fluid> event)
-
registerRecipeSerialziers
public void registerRecipeSerialziers(RegistryEvent.Register<IRecipeSerializer<?>> event)
-
registerLootData
public void registerLootData(RegistryEvent.Register<GlobalLootModifierSerializer<?>> event)
-
-