Class AbstractGeyserboundPacketHandler

java.lang.Object
org.geysermc.geyser.erosion.AbstractGeyserboundPacketHandler
All Implemented Interfaces:
org.geysermc.erosion.packet.ErosionPacketHandler, org.geysermc.erosion.packet.geyserbound.GeyserboundPacketHandler
Direct Known Subclasses:
GeyserboundHandshakePacketHandler, GeyserboundPacketHandlerImpl

public abstract class AbstractGeyserboundPacketHandler extends Object implements org.geysermc.erosion.packet.geyserbound.GeyserboundPacketHandler
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected GeyserSession
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    abstract @Nullable GeyserboundPacketHandlerImpl
     
    void
    handleBatchBlockId​(org.geysermc.erosion.packet.geyserbound.GeyserboundBatchBlockIdPacket packet)
     
    void
    handleBlockEntity​(org.geysermc.erosion.packet.geyserbound.GeyserboundBlockEntityPacket packet)
     
    void
    handleBlockId​(org.geysermc.erosion.packet.geyserbound.GeyserboundBlockIdPacket packet)
     
    void
    handleBlockLookupFail​(org.geysermc.erosion.packet.geyserbound.GeyserboundBlockLookupFailPacket packet)
     
    void
    handleBlockPlace​(org.geysermc.erosion.packet.geyserbound.GeyserboundBlockPlacePacket packet)
     
    void
    handlePickBlock​(org.geysermc.erosion.packet.geyserbound.GeyserboundPickBlockPacket packet)
     
    void
    handlePistonEvent​(org.geysermc.erosion.packet.geyserbound.GeyserboundPistonEventPacket packet)
     
    protected void
    illegalPacket​(org.geysermc.erosion.packet.geyserbound.GeyserboundPacket packet)
     
    abstract boolean
    Is this handler actually listening to any packets?

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.geysermc.erosion.packet.ErosionPacketHandler

    onConnect, onDisconnect, setChannel

    Methods inherited from interface org.geysermc.erosion.packet.geyserbound.GeyserboundPacketHandler

    handleHandshake
  • Field Details

  • Constructor Details

    • AbstractGeyserboundPacketHandler

      public AbstractGeyserboundPacketHandler(GeyserSession session)
  • Method Details

    • handleBatchBlockId

      public void handleBatchBlockId(org.geysermc.erosion.packet.geyserbound.GeyserboundBatchBlockIdPacket packet)
      Specified by:
      handleBatchBlockId in interface org.geysermc.erosion.packet.geyserbound.GeyserboundPacketHandler
    • handleBlockEntity

      public void handleBlockEntity(org.geysermc.erosion.packet.geyserbound.GeyserboundBlockEntityPacket packet)
      Specified by:
      handleBlockEntity in interface org.geysermc.erosion.packet.geyserbound.GeyserboundPacketHandler
    • handleBlockId

      public void handleBlockId(org.geysermc.erosion.packet.geyserbound.GeyserboundBlockIdPacket packet)
      Specified by:
      handleBlockId in interface org.geysermc.erosion.packet.geyserbound.GeyserboundPacketHandler
    • handleBlockLookupFail

      public void handleBlockLookupFail(org.geysermc.erosion.packet.geyserbound.GeyserboundBlockLookupFailPacket packet)
      Specified by:
      handleBlockLookupFail in interface org.geysermc.erosion.packet.geyserbound.GeyserboundPacketHandler
    • handleBlockPlace

      public void handleBlockPlace(org.geysermc.erosion.packet.geyserbound.GeyserboundBlockPlacePacket packet)
      Specified by:
      handleBlockPlace in interface org.geysermc.erosion.packet.geyserbound.GeyserboundPacketHandler
    • handlePistonEvent

      public void handlePistonEvent(org.geysermc.erosion.packet.geyserbound.GeyserboundPistonEventPacket packet)
      Specified by:
      handlePistonEvent in interface org.geysermc.erosion.packet.geyserbound.GeyserboundPacketHandler
    • handlePickBlock

      public void handlePickBlock(org.geysermc.erosion.packet.geyserbound.GeyserboundPickBlockPacket packet)
      Specified by:
      handlePickBlock in interface org.geysermc.erosion.packet.geyserbound.GeyserboundPacketHandler
    • isActive

      public abstract boolean isActive()
      Is this handler actually listening to any packets?
    • getAsActive

      public abstract @Nullable GeyserboundPacketHandlerImpl getAsActive()
    • close

      public void close()
    • illegalPacket

      protected final void illegalPacket(org.geysermc.erosion.packet.geyserbound.GeyserboundPacket packet)