Skip to content
Extraits de code Groupes Projets
Valider 5eedc642 rédigé par Tony 'Nitorac' RANINI's avatar Tony 'Nitorac' RANINI :speech_balloon:
Parcourir les fichiers

Working example

parent 9efb8dc9
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -54,7 +54,7 @@ public class ExampleMod ...@@ -54,7 +54,7 @@ public class ExampleMod
private void enqueueIMC(final InterModEnqueueEvent event) private void enqueueIMC(final InterModEnqueueEvent event)
{ {
// some example code to dispatch IMC to another mod // some example code to dispatch IMC to another mod
InterModComms.sendTo("examplemod", "helloworld", () -> { LOGGER.info("Hello world from the MDK"); return "Hello world";}); InterModComms.sendTo("minestic", "helloworld", () -> { LOGGER.info("Hello world from the MDK"); return "Hello world";});
} }
private void processIMC(final InterModProcessEvent event) private void processIMC(final InterModProcessEvent event)
......
...@@ -8,7 +8,7 @@ modLoader="javafml" #mandatory ...@@ -8,7 +8,7 @@ modLoader="javafml" #mandatory
# A version range to match for said mod loader - for regular FML @Mod it will be the forge version # A version range to match for said mod loader - for regular FML @Mod it will be the forge version
loaderVersion="[32,)" #mandatory This is typically bumped every Minecraft version by Forge. See our download page for lists of versions. loaderVersion="[32,)" #mandatory This is typically bumped every Minecraft version by Forge. See our download page for lists of versions.
# A URL to refer people to when problems occur with this mod # A URL to refer people to when problems occur with this mod
issueTrackerURL="" #optional # issueTrackerURL="" #optional
# A list of mods - how many allowed here is determined by the individual mod loader # A list of mods - how many allowed here is determined by the individual mod loader
[[mods]] #mandatory [[mods]] #mandatory
# The modid of the mod # The modid of the mod
...@@ -18,9 +18,9 @@ version="${file.jarVersion}" #mandatory ...@@ -18,9 +18,9 @@ version="${file.jarVersion}" #mandatory
# A display name for the mod # A display name for the mod
displayName="MineStic" #mandatory displayName="MineStic" #mandatory
# A URL to query for updates for this mod. See the JSON update specification <here> # A URL to query for updates for this mod. See the JSON update specification <here>
updateJSONURL="" #optional # updateJSONURL="" #optional
# A URL for the "homepage" for this mod, displayed in the mod UI # A URL for the "homepage" for this mod, displayed in the mod UI
displayURL="" #optional # displayURL="" #optional
# A file name (in the root of the mod JAR) containing a logo for display # A file name (in the root of the mod JAR) containing a logo for display
logoFile="" #optional logoFile="" #optional
# A text field displayed in the mod UI # A text field displayed in the mod UI
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter