Class RewriterBase<T extends Protocol>

  • All Implemented Interfaces:
    Rewriter<T>

    public abstract class RewriterBase<T extends Protocol>
    extends java.lang.Object
    implements Rewriter<T>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected T protocol  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected RewriterBase​(T protocol)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T protocol()
      Returns the Protocol instance of this rewriter.
      void register()
      Registers any packet handlers or rewrites needed.
      protected void registerPackets()
      To be overriden.
      protected void registerRewrites()
      To be overriden.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • protocol

        protected final T extends Protocol protocol
    • Constructor Detail

      • RewriterBase

        protected RewriterBase​(T protocol)
    • Method Detail

      • register

        public final void register()
        Description copied from interface: Rewriter
        Registers any packet handlers or rewrites needed.
        Specified by:
        register in interface Rewriter<T extends Protocol>
      • registerPackets

        protected void registerPackets()
        To be overriden. Called when registering the rewriter.
      • registerRewrites

        protected void registerRewrites()
        To be overriden. Called when registering the rewriter.
      • protocol

        public T protocol()
        Description copied from interface: Rewriter
        Returns the Protocol instance of this rewriter.
        Specified by:
        protocol in interface Rewriter<T extends Protocol>
        Returns:
        protocol of the rewriter