Create a new event and add a few fields to existing events

This commit is contained in:
Aria 2023-03-05 15:53:56 -07:00
parent 957b65ebb3
commit ede19b0572
8 changed files with 61 additions and 11 deletions

View file

@ -9,9 +9,6 @@ import net.minecraft.network.chat.TextComponent;
import net.minecraft.server.MinecraftServer;
import net.minecraft.server.level.ServerPlayer;
import net.minecraft.world.entity.player.Player;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
import net.minecraftforge.network.NetworkHooks;
public class ChatHelpers {
public static void broadcastActionBar(Component message, MinecraftServer server)

View file

@ -0,0 +1,14 @@
package dev.zontreck.libzontreck.util;
import java.util.UUID;
import dev.zontreck.libzontreck.LibZontreck;
import net.minecraft.server.level.ServerPlayer;
public class ServerUtilities
{
public static ServerPlayer getPlayerByID(String id)
{
return LibZontreck.THE_SERVER.getPlayerList().getPlayer(UUID.fromString(id));
}
}