Class JsonRpcNotificationService
java.lang.Object
net.minecraft.server.jsonrpc.JsonRpcNotificationService
- All Implemented Interfaces:
NotificationService
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJsonRpcNotificationService(MinecraftApi minecraftApi, ManagementServer managementServer) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidbroadcastNotification(Holder.Reference<? extends OutgoingRpcMethod<Void, ?>> method) private <Params> voidbroadcastNotification(Holder.Reference<? extends OutgoingRpcMethod<Params, ?>> method, Params params) voidipBanned(IpBanListEntry ban) voidipUnbanned(String ip) <T> voidonGameRuleChanged(GameRule<T> gameRule, T value) voidplayerAddedToAllowlist(NameAndId player) voidvoidplayerDeoped(ServerOpListEntry operator) voidplayerJoined(ServerPlayer player) voidplayerLeft(ServerPlayer player) voidplayerOped(ServerOpListEntry operator) voidplayerRemovedFromAllowlist(NameAndId player) voidplayerUnbanned(NameAndId player) voidvoidvoidvoidvoidvoid
-
Field Details
-
managementServer
-
minecraftApi
-
-
Constructor Details
-
JsonRpcNotificationService
-
-
Method Details
-
playerJoined
- Specified by:
playerJoinedin interfaceNotificationService
-
playerLeft
- Specified by:
playerLeftin interfaceNotificationService
-
serverStarted
public void serverStarted()- Specified by:
serverStartedin interfaceNotificationService
-
serverShuttingDown
public void serverShuttingDown()- Specified by:
serverShuttingDownin interfaceNotificationService
-
serverSaveStarted
public void serverSaveStarted()- Specified by:
serverSaveStartedin interfaceNotificationService
-
serverSaveCompleted
public void serverSaveCompleted()- Specified by:
serverSaveCompletedin interfaceNotificationService
-
serverActivityOccured
public void serverActivityOccured()- Specified by:
serverActivityOccuredin interfaceNotificationService
-
playerOped
- Specified by:
playerOpedin interfaceNotificationService
-
playerDeoped
- Specified by:
playerDeopedin interfaceNotificationService
-
playerAddedToAllowlist
- Specified by:
playerAddedToAllowlistin interfaceNotificationService
-
playerRemovedFromAllowlist
- Specified by:
playerRemovedFromAllowlistin interfaceNotificationService
-
ipBanned
- Specified by:
ipBannedin interfaceNotificationService
-
ipUnbanned
- Specified by:
ipUnbannedin interfaceNotificationService
-
playerBanned
- Specified by:
playerBannedin interfaceNotificationService
-
playerUnbanned
- Specified by:
playerUnbannedin interfaceNotificationService
-
onGameRuleChanged
- Specified by:
onGameRuleChangedin interfaceNotificationService
-
statusHeartbeat
public void statusHeartbeat()- Specified by:
statusHeartbeatin interfaceNotificationService
-
broadcastNotification
-
broadcastNotification
private <Params> void broadcastNotification(Holder.Reference<? extends OutgoingRpcMethod<Params, ?>> method, Params params)
-