Class BedrockPongEvent
java.lang.Object
org.geysermc.geyser.event.GeyserEvent
org.geysermc.geyser.event.events.network.BedrockPongEvent
Triggered just before Geyser sends a Pong to a Ping packet
-
Constructor Summary
ConstructorDescriptionBedrockPongEvent(@NonNull InetSocketAddress inetSocketAddress, @NonNull com.nukkitx.protocol.bedrock.BedrockPong pong)
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
@NonNull InetSocketAddress
The connecting socket address@NonNull com.nukkitx.protocol.bedrock.BedrockPong
getPong()
The pong to broadcast This will initially be set to the Pong that Geyser would normally return but can be overridden hereint
hashCode()
void
setPong(@NonNull com.nukkitx.protocol.bedrock.BedrockPong pong)
The pong to broadcast This will initially be set to the Pong that Geyser would normally return but can be overridden heretoString()
-
Constructor Details
-
BedrockPongEvent
public BedrockPongEvent(@NonNull @NonNull InetSocketAddress inetSocketAddress, @NonNull @NonNull com.nukkitx.protocol.bedrock.BedrockPong pong)
-
-
Method Details
-
getInetSocketAddress
The connecting socket address- Returns:
- get the connecting socket address
-
getPong
@NonNull public @NonNull com.nukkitx.protocol.bedrock.BedrockPong getPong()The pong to broadcast This will initially be set to the Pong that Geyser would normally return but can be overridden here- Returns:
- get current pong
-
setPong
public void setPong(@NonNull @NonNull com.nukkitx.protocol.bedrock.BedrockPong pong)The pong to broadcast This will initially be set to the Pong that Geyser would normally return but can be overridden here- Parameters:
pong
- set the BedrockPong
-
toString
- Overrides:
toString
in classGeyserEvent
-
equals
- Overrides:
equals
in classGeyserEvent
-
canEqual
- Overrides:
canEqual
in classGeyserEvent
-
hashCode
public int hashCode()- Overrides:
hashCode
in classGeyserEvent
-