MDK Updates (#15)
This commit is contained in:
parent
1507c3f5c2
commit
8dd9258e72
3 changed files with 6 additions and 6 deletions
|
@ -3,7 +3,7 @@ plugins {
|
||||||
id 'eclipse'
|
id 'eclipse'
|
||||||
id 'idea'
|
id 'idea'
|
||||||
id 'maven-publish'
|
id 'maven-publish'
|
||||||
id 'net.neoforged.gradle.userdev' version '7.0.5'
|
id 'net.neoforged.gradle.userdev' version '7.0.26'
|
||||||
}
|
}
|
||||||
|
|
||||||
version = mod_version
|
version = mod_version
|
||||||
|
|
|
@ -13,7 +13,7 @@ minecraft_version=1.20.2
|
||||||
# as they do not follow standard versioning conventions.
|
# as they do not follow standard versioning conventions.
|
||||||
minecraft_version_range=[1.20.2,1.21)
|
minecraft_version_range=[1.20.2,1.21)
|
||||||
# The Neo version must agree with the Minecraft version to get a valid artifact
|
# The Neo version must agree with the Minecraft version to get a valid artifact
|
||||||
neo_version=20.2.3-beta
|
neo_version=20.2.35-beta
|
||||||
# The Neo version range can use any version of Neo as bounds or match the loader version range
|
# The Neo version range can use any version of Neo as bounds or match the loader version range
|
||||||
neo_version_range=[20.2,)
|
neo_version_range=[20.2,)
|
||||||
# The loader version range can only use the major version of Neo/FML as bounds
|
# The loader version range can only use the major version of Neo/FML as bounds
|
||||||
|
|
|
@ -61,10 +61,10 @@ public class ExampleMod
|
||||||
output.accept(EXAMPLE_ITEM.get()); // Add the example item to the tab. For your own tabs, this method is preferred over the event
|
output.accept(EXAMPLE_ITEM.get()); // Add the example item to the tab. For your own tabs, this method is preferred over the event
|
||||||
}).build());
|
}).build());
|
||||||
|
|
||||||
public ExampleMod()
|
// The constructor for the mod class is the first code that is run when your mod is loaded.
|
||||||
|
// FML will recognize some parameter types like IEventBus or ModContainer and pass them in automatically.
|
||||||
|
public ExampleMod(IEventBus modEventBus)
|
||||||
{
|
{
|
||||||
IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus();
|
|
||||||
|
|
||||||
// Register the commonSetup method for modloading
|
// Register the commonSetup method for modloading
|
||||||
modEventBus.addListener(this::commonSetup);
|
modEventBus.addListener(this::commonSetup);
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ public class ExampleMod
|
||||||
// Register the item to a creative tab
|
// Register the item to a creative tab
|
||||||
modEventBus.addListener(this::addCreative);
|
modEventBus.addListener(this::addCreative);
|
||||||
|
|
||||||
// Register our mod's ForgeConfigSpec so that Forge can create and load the config file for us
|
// Register our mod's ModConfigSpec so that FML can create and load the config file for us
|
||||||
ModLoadingContext.get().registerConfig(ModConfig.Type.COMMON, Config.SPEC);
|
ModLoadingContext.get().registerConfig(ModConfig.Type.COMMON, Config.SPEC);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue