类 ClientPlayerChangeGameTypeEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ClientPlayerChangeGameTypeEvent

public class ClientPlayerChangeGameTypeEvent extends net.minecraftforge.eventbus.api.Event
Fired when the client player is notified of a change of GameType from the server.

This event is not cancellable, and does not have a result.

This event is fired on the main Forge event bus, only on the logical client.

  • 字段详细资料

    • info

      private final PlayerInfo info
    • currentGameType

      private final GameType currentGameType
    • newGameType

      private final GameType newGameType
  • 构造器详细资料

    • ClientPlayerChangeGameTypeEvent

      @Internal public ClientPlayerChangeGameTypeEvent(PlayerInfo info, GameType currentGameType, GameType newGameType)
  • 方法详细资料

    • getInfo

      public PlayerInfo getInfo()
      返回 the client player information。
      返回:
      the client player information
    • getCurrentGameType

      public GameType getCurrentGameType()
      返回 the current game type of the player。
      返回:
      the current game type of the player
    • getNewGameType

      public GameType getNewGameType()
      返回 the new game type of the player。
      返回:
      the new game type of the player