Class BedrockPongEvent

java.lang.Object
org.geysermc.geyser.event.GeyserEvent
org.geysermc.geyser.event.events.network.BedrockPongEvent

public class BedrockPongEvent extends GeyserEvent
Triggered just before Geyser sends a Pong to a Ping packet
  • Constructor Summary

    Constructors
    Constructor
    Description
    BedrockPongEvent​(@NonNull InetSocketAddress inetSocketAddress, @NonNull com.nukkitx.protocol.bedrock.BedrockPong pong)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    canEqual​(Object other)
     
    boolean
    equals​(Object o)
     
    The connecting socket address
    @NonNull com.nukkitx.protocol.bedrock.BedrockPong
    The pong to broadcast This will initially be set to the Pong that Geyser would normally return but can be overridden here
    int
     
    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 here
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • BedrockPongEvent

      public BedrockPongEvent(@NonNull @NonNull InetSocketAddress inetSocketAddress, @NonNull @NonNull com.nukkitx.protocol.bedrock.BedrockPong pong)
  • Method Details

    • getInetSocketAddress

      @NonNull public @NonNull InetSocketAddress 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

      public String toString()
      Overrides:
      toString in class GeyserEvent
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class GeyserEvent
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class GeyserEvent
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class GeyserEvent