Interface PlanFabricEvents.OnGameModeChange

Enclosing class:
PlanFabricEvents
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface PlanFabricEvents.OnGameModeChange
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onGameModeChange(net.minecraft.server.network.ServerPlayerEntity player, net.minecraft.world.GameMode newGameMode)
    Called when a player changes gamemode
  • Method Details

    • onGameModeChange

      void onGameModeChange(net.minecraft.server.network.ServerPlayerEntity player, net.minecraft.world.GameMode newGameMode)
      Called when a player changes gamemode
      Parameters:
      player - the player that changed gamemodes
      newGameMode - the new gamemode