fucking forge
This commit is contained in:
parent
3a93c3beae
commit
a13706f240
3 changed files with 7 additions and 5 deletions
|
@ -3,7 +3,7 @@
|
||||||
"id": "knockdowns",
|
"id": "knockdowns",
|
||||||
"version": "${version}",
|
"version": "${version}",
|
||||||
"name": "Knockdowns",
|
"name": "Knockdowns",
|
||||||
"description": "DNBO mechanic from Fortnite, ported to Minecraft",
|
"description": "DBNO mechanic from Fortnite, ported to Minecraft",
|
||||||
"authors": [
|
"authors": [
|
||||||
"Octol1ttle"
|
"Octol1ttle"
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package ru.octol1ttle.knockdowns.forge;
|
package ru.octol1ttle.knockdowns.forge;
|
||||||
|
|
||||||
import dev.architectury.platform.forge.EventBuses;
|
import dev.architectury.platform.forge.EventBuses;
|
||||||
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
import net.minecraftforge.eventbus.api.IEventBus;
|
||||||
import net.minecraftforge.fml.common.Mod;
|
import net.minecraftforge.fml.common.Mod;
|
||||||
import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;
|
import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;
|
||||||
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
|
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
|
||||||
|
@ -13,11 +13,13 @@ import ru.octol1ttle.knockdowns.common.KnockdownsCommon;
|
||||||
public class KnockdownsForge {
|
public class KnockdownsForge {
|
||||||
public KnockdownsForge() {
|
public KnockdownsForge() {
|
||||||
// Submit our event bus to let architectury register our content on the right time
|
// Submit our event bus to let architectury register our content on the right time
|
||||||
EventBuses.registerModEventBus(KnockdownsCommon.MOD_ID, FMLJavaModLoadingContext.get().getModEventBus());
|
IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus();
|
||||||
|
EventBuses.registerModEventBus(KnockdownsCommon.MOD_ID, modEventBus);
|
||||||
|
modEventBus.addListener(this::onInitializeClient);
|
||||||
|
|
||||||
KnockdownsCommon.init();
|
KnockdownsCommon.init();
|
||||||
}
|
}
|
||||||
|
|
||||||
@SubscribeEvent
|
|
||||||
public void onInitializeClient(FMLClientSetupEvent event) {
|
public void onInitializeClient(FMLClientSetupEvent event) {
|
||||||
KnockdownsClient.init();
|
KnockdownsClient.init();
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@ version = "${version}"
|
||||||
displayName = "Knockdowns"
|
displayName = "Knockdowns"
|
||||||
authors = "Octol1ttle"
|
authors = "Octol1ttle"
|
||||||
description = '''
|
description = '''
|
||||||
DNBO mechanic from Fortnite, ported to Minecraft
|
DBNO mechanic from Fortnite, ported to Minecraft
|
||||||
'''
|
'''
|
||||||
#logoFile = ""
|
#logoFile = ""
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue