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.
A functional interface used as a change callback for
GameRule updates.-
Method Summary
Modifier and TypeMethodDescriptionvoidonGameRuleUpdated(T value, net.minecraft.server.MinecraftServer server) Called when a GameRule's value is updated in the server.
-
Method Details
-
onGameRuleUpdated
Called when a GameRule's value is updated in the server.- Parameters:
value- the updated valueserver- the server- See Also:
-