public class GameRuleChangeEvent extends Event
CommandGameRule.notifyGameRuleChange(GameRules, String, MinecraftServer)
.
This allows updating clients with the effects of server rule changes.Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
ruleName |
private GameRules |
rules |
private MinecraftServer |
server |
Constructor and Description |
---|
GameRuleChangeEvent(GameRules rules,
java.lang.String ruleName,
MinecraftServer server) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getRuleName() |
GameRules |
getRules() |
MinecraftServer |
getServer() |
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
private final GameRules rules
private final java.lang.String ruleName
private final MinecraftServer server
public GameRuleChangeEvent(GameRules rules, java.lang.String ruleName, MinecraftServer server)
public GameRules getRules()
public java.lang.String getRuleName()
public MinecraftServer getServer()