hopes for events
This commit is contained in:
parent
1f53aeebb6
commit
4718e2dec5
@ -1,4 +1,4 @@
|
||||
package com.example.examplemod;
|
||||
package net.ggodot.learningmod;
|
||||
|
||||
import net.minecraft.resources.ResourceLocation;
|
||||
import net.minecraft.world.item.Item;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package com.example.examplemod;
|
||||
package net.ggodot.learningmod;
|
||||
|
||||
import com.mojang.logging.LogUtils;
|
||||
import net.minecraft.client.Minecraft;
|
||||
|
||||
@ -0,0 +1,15 @@
|
||||
package net.ggodot.learningmod.event;
|
||||
|
||||
import net.ggodot.learningmod.LearningMod;
|
||||
import net.minecraft.server.level.ServerPlayer;
|
||||
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
||||
import net.minecraftforge.fml.common.Mod;
|
||||
|
||||
@Mod.EventBusSubscriber(modid = LearningMod.MOD_ID, bus = Mod.EventBusSubscriber.Bus.FORGE)
|
||||
public class ModEvents {
|
||||
|
||||
@SubscribeEvent
|
||||
public static void onLogin(PlayerEvent.PlayerLoggedInEvent event) {
|
||||
LOGGER.info("Hello, mthfucker just landed")
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user