Class EventSubscriber

java.lang.Object
com.ldtteam.structurize.event.EventSubscriber

public class EventSubscriber extends Object
Class with methods for receiving various forge events
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    onPlayerLogin(net.minecraftforge.event.entity.player.PlayerEvent.PlayerLoggedInEvent event)
    Called when a player logs in.
    static void
    onRegisterCommands(net.minecraftforge.event.RegisterCommandsEvent event)
    Called when world is about to load.
    static void
    onServerStopped(@NotNull net.minecraftforge.event.server.ServerStoppingEvent event)
     
    static void
    onWorldTick(net.minecraftforge.event.TickEvent.LevelTickEvent event)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • onRegisterCommands

      public static void onRegisterCommands(net.minecraftforge.event.RegisterCommandsEvent event)
      Called when world is about to load.
      Parameters:
      event - event
    • onPlayerLogin

      public static void onPlayerLogin(net.minecraftforge.event.entity.player.PlayerEvent.PlayerLoggedInEvent event)
      Called when a player logs in. If the joining player is a MP-Player, sends all possible styles in a message.
      Parameters:
      event - PlayerEvent
    • onWorldTick

      public static void onWorldTick(net.minecraftforge.event.TickEvent.LevelTickEvent event)
    • onServerStopped

      public static void onServerStopped(@NotNull @NotNull net.minecraftforge.event.server.ServerStoppingEvent event)