Interface GameRuleEvents.ValueUpdate<T>

Type Parameters:
T - the type of the value
Enclosing class:
GameRuleEvents
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 GameRuleEvents.ValueUpdate<T>
A functional interface used as a change callback for GameRule updates.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onGameRuleUpdated(T value, net.minecraft.server.MinecraftServer server)
    Called when a GameRule's value is updated in the server.
  • Method Details

    • onGameRuleUpdated

      void onGameRuleUpdated(T value, net.minecraft.server.MinecraftServer server)
      Called when a GameRule's value is updated in the server.
      Parameters:
      value - the updated value
      server - the server
      See Also:
      • MinecraftServer.onGameRuleChanged(GameRule, Object)