hopes for events

This commit is contained in:
ggodot 2025-08-31 10:32:29 +02:00
parent 1f53aeebb6
commit 4718e2dec5
3 changed files with 17 additions and 2 deletions

View File

@ -1,4 +1,4 @@
package com.example.examplemod;
package net.ggodot.learningmod;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.item.Item;

View File

@ -1,4 +1,4 @@
package com.example.examplemod;
package net.ggodot.learningmod;
import com.mojang.logging.LogUtils;
import net.minecraft.client.Minecraft;

View File

@ -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")
}
}