Class PacketChannelImpl

All Implemented Interfaces:
org.geysermc.geyser.api.network.NetworkChannel, org.geysermc.geyser.api.network.PacketChannel

public class PacketChannelImpl extends ExternalNetworkChannel implements org.geysermc.geyser.api.network.PacketChannel
  • Constructor Details

    • PacketChannelImpl

      public PacketChannelImpl(@NonNull org.geysermc.geyser.api.util.Identifier identifier, boolean java, @org.checkerframework.checker.index.qual.NonNegative int packetId, @NonNull Class<?> packetType)
  • Method Details

    • packetId

      public @org.checkerframework.checker.index.qual.NonNegative int packetId()
      Specified by:
      packetId in interface org.geysermc.geyser.api.network.PacketChannel
    • isJava

      public boolean isJava()
    • isPacket

      public boolean isPacket()
      Description copied from class: ExternalNetworkChannel
      Specified by:
      isPacket in interface org.geysermc.geyser.api.network.NetworkChannel
      Overrides:
      isPacket in class ExternalNetworkChannel
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class ExternalNetworkChannel
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class ExternalNetworkChannel