Compare commits
No commits in common. "85d9ffb6e8e3c173e9ec9a281efd8ecb7f1117c0" and "f49712f7828c3de0970d459115626f3352466444" have entirely different histories.
85d9ffb6e8
...
f49712f782
@ -16,7 +16,6 @@ import net.minecraftforge.api.distmarker.Dist;
|
|||||||
import net.minecraftforge.common.MinecraftForge;
|
import net.minecraftforge.common.MinecraftForge;
|
||||||
import net.minecraftforge.event.BuildCreativeModeTabContentsEvent;
|
import net.minecraftforge.event.BuildCreativeModeTabContentsEvent;
|
||||||
import net.minecraftforge.event.server.ServerStartingEvent;
|
import net.minecraftforge.event.server.ServerStartingEvent;
|
||||||
import net.minecraftforge.event.entity.player.PlayerEvent; // chatGPT
|
|
||||||
import net.minecraftforge.eventbus.api.IEventBus;
|
import net.minecraftforge.eventbus.api.IEventBus;
|
||||||
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
||||||
import net.minecraftforge.fml.common.Mod;
|
import net.minecraftforge.fml.common.Mod;
|
||||||
@ -70,14 +69,6 @@ public class LearningMod
|
|||||||
LOGGER.info("HELLO from server starting");
|
LOGGER.info("HELLO from server starting");
|
||||||
}
|
}
|
||||||
|
|
||||||
// My shit and prayers
|
|
||||||
@SubscribeEvent
|
|
||||||
public void onPlayerLoggedIn(PlayerEvent.PlayerLoggedInEvent event)
|
|
||||||
{
|
|
||||||
// Do something when the server starts
|
|
||||||
LOGGER.info("Motherfucker just logged in");
|
|
||||||
}
|
|
||||||
|
|
||||||
// You can use EventBusSubscriber to automatically register all static methods in the class annotated with @SubscribeEvent
|
// You can use EventBusSubscriber to automatically register all static methods in the class annotated with @SubscribeEvent
|
||||||
@Mod.EventBusSubscriber(modid = MODID, bus = Mod.EventBusSubscriber.Bus.MOD, value = Dist.CLIENT)
|
@Mod.EventBusSubscriber(modid = MODID, bus = Mod.EventBusSubscriber.Bus.MOD, value = Dist.CLIENT)
|
||||||
public static class ClientModEvents
|
public static class ClientModEvents
|
||||||
@ -91,4 +82,3 @@ public class LearningMod
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@ package net.ggodot.learningmod.event;
|
|||||||
|
|
||||||
import net.ggodot.learningmod.LearningMod;
|
import net.ggodot.learningmod.LearningMod;
|
||||||
import net.minecraft.server.level.ServerPlayer;
|
import net.minecraft.server.level.ServerPlayer;
|
||||||
import net.minecraft.world.entity.player.PlayerEvent;
|
import net.minecraft.world.entity.player.Player;
|
||||||
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
||||||
import net.minecraftforge.fml.common.Mod;
|
import net.minecraftforge.fml.common.Mod;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user