Class CommonPlatform<W,P,I,E>

java.lang.Object
com.github.juliarn.npclib.common.platform.CommonPlatform<W,P,I,E>
All Implemented Interfaces:
com.github.juliarn.npclib.api.Platform<W,P,I,E>

public class CommonPlatform<W,P,I,E> extends Object implements com.github.juliarn.npclib.api.Platform<W,P,I,E>
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.github.juliarn.npclib.api.Platform

    com.github.juliarn.npclib.api.Platform.Builder<W,P,I,E>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final com.github.juliarn.npclib.api.NpcActionController
     
    protected final boolean
     
    protected final com.github.juliarn.npclib.api.event.manager.NpcEventManager
     
    protected final E
     
    protected final com.github.juliarn.npclib.api.log.PlatformLogger
     
    protected final com.github.juliarn.npclib.api.NpcTracker<W,P,I,E>
     
    protected final com.github.juliarn.npclib.api.protocol.PlatformPacketAdapter<W,P,I,E>
     
    protected final com.github.juliarn.npclib.api.profile.ProfileResolver
     
    protected final com.github.juliarn.npclib.api.PlatformTaskManager
     
    protected final com.github.juliarn.npclib.api.PlatformVersionAccessor
     
    protected final com.github.juliarn.npclib.api.PlatformWorldAccessor<W>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    CommonPlatform(boolean debug, E extension, @NotNull com.github.juliarn.npclib.api.log.PlatformLogger logger, @NotNull com.github.juliarn.npclib.api.NpcTracker<W,P,I,E> npcTracker, @NotNull com.github.juliarn.npclib.api.profile.ProfileResolver profileResolver, @NotNull com.github.juliarn.npclib.api.PlatformTaskManager taskManager, @Nullable com.github.juliarn.npclib.api.NpcActionController actionController, @NotNull com.github.juliarn.npclib.api.PlatformVersionAccessor versionAccessor, @NotNull com.github.juliarn.npclib.api.event.manager.NpcEventManager eventManager, @NotNull com.github.juliarn.npclib.api.PlatformWorldAccessor<W> worldAccessor, @NotNull com.github.juliarn.npclib.api.protocol.PlatformPacketAdapter<W,P,I,E> packetAdapter)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull Optional<com.github.juliarn.npclib.api.NpcActionController>
     
    boolean
     
    @NotNull com.github.juliarn.npclib.api.event.manager.NpcEventManager
     
     
    @NotNull com.github.juliarn.npclib.api.log.PlatformLogger
     
    com.github.juliarn.npclib.api.Npc.Builder<W,P,I,E>
     
    @NotNull com.github.juliarn.npclib.api.NpcTracker<W,P,I,E>
     
    @NotNull com.github.juliarn.npclib.api.protocol.PlatformPacketAdapter<W,P,I,E>
     
    @NotNull com.github.juliarn.npclib.api.profile.ProfileResolver
     
    @NotNull com.github.juliarn.npclib.api.PlatformTaskManager
     
    @NotNull com.github.juliarn.npclib.api.PlatformVersionAccessor
     
    @NotNull com.github.juliarn.npclib.api.PlatformWorldAccessor<W>
     

    Methods inherited from class java.lang.Object

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

    • extension

      protected final E extension
    • debug

      protected final boolean debug
    • logger

      protected final com.github.juliarn.npclib.api.log.PlatformLogger logger
    • eventManager

      protected final com.github.juliarn.npclib.api.event.manager.NpcEventManager eventManager
    • npcTracker

      protected final com.github.juliarn.npclib.api.NpcTracker<W,P,I,E> npcTracker
    • profileResolver

      protected final com.github.juliarn.npclib.api.profile.ProfileResolver profileResolver
    • taskManager

      protected final com.github.juliarn.npclib.api.PlatformTaskManager taskManager
    • actionController

      protected final com.github.juliarn.npclib.api.NpcActionController actionController
    • versionAccessor

      protected final com.github.juliarn.npclib.api.PlatformVersionAccessor versionAccessor
    • worldAccessor

      protected final com.github.juliarn.npclib.api.PlatformWorldAccessor<W> worldAccessor
    • packetAdapter

      protected final com.github.juliarn.npclib.api.protocol.PlatformPacketAdapter<W,P,I,E> packetAdapter
  • Constructor Details

    • CommonPlatform

      public CommonPlatform(boolean debug, @NotNull E extension, @NotNull @NotNull com.github.juliarn.npclib.api.log.PlatformLogger logger, @NotNull @NotNull com.github.juliarn.npclib.api.NpcTracker<W,P,I,E> npcTracker, @NotNull @NotNull com.github.juliarn.npclib.api.profile.ProfileResolver profileResolver, @NotNull @NotNull com.github.juliarn.npclib.api.PlatformTaskManager taskManager, @Nullable @Nullable com.github.juliarn.npclib.api.NpcActionController actionController, @NotNull @NotNull com.github.juliarn.npclib.api.PlatformVersionAccessor versionAccessor, @NotNull @NotNull com.github.juliarn.npclib.api.event.manager.NpcEventManager eventManager, @NotNull @NotNull com.github.juliarn.npclib.api.PlatformWorldAccessor<W> worldAccessor, @NotNull @NotNull com.github.juliarn.npclib.api.protocol.PlatformPacketAdapter<W,P,I,E> packetAdapter)
  • Method Details

    • debug

      public boolean debug()
      Specified by:
      debug in interface com.github.juliarn.npclib.api.Platform<W,P,I,E>
    • extension

      @NotNull public E extension()
      Specified by:
      extension in interface com.github.juliarn.npclib.api.Platform<W,P,I,E>
    • logger

      @NotNull public @NotNull com.github.juliarn.npclib.api.log.PlatformLogger logger()
      Specified by:
      logger in interface com.github.juliarn.npclib.api.Platform<W,P,I,E>
    • npcTracker

      @NotNull public @NotNull com.github.juliarn.npclib.api.NpcTracker<W,P,I,E> npcTracker()
      Specified by:
      npcTracker in interface com.github.juliarn.npclib.api.Platform<W,P,I,E>
    • profileResolver

      @NotNull public @NotNull com.github.juliarn.npclib.api.profile.ProfileResolver profileResolver()
      Specified by:
      profileResolver in interface com.github.juliarn.npclib.api.Platform<W,P,I,E>
    • taskManager

      @NotNull public @NotNull com.github.juliarn.npclib.api.PlatformTaskManager taskManager()
      Specified by:
      taskManager in interface com.github.juliarn.npclib.api.Platform<W,P,I,E>
    • newNpcBuilder

      @NotNull public com.github.juliarn.npclib.api.Npc.Builder<W,P,I,E> newNpcBuilder()
      Specified by:
      newNpcBuilder in interface com.github.juliarn.npclib.api.Platform<W,P,I,E>
    • versionAccessor

      @NotNull public @NotNull com.github.juliarn.npclib.api.PlatformVersionAccessor versionAccessor()
      Specified by:
      versionAccessor in interface com.github.juliarn.npclib.api.Platform<W,P,I,E>
    • eventManager

      @NotNull public @NotNull com.github.juliarn.npclib.api.event.manager.NpcEventManager eventManager()
      Specified by:
      eventManager in interface com.github.juliarn.npclib.api.Platform<W,P,I,E>
    • worldAccessor

      @NotNull public @NotNull com.github.juliarn.npclib.api.PlatformWorldAccessor<W> worldAccessor()
      Specified by:
      worldAccessor in interface com.github.juliarn.npclib.api.Platform<W,P,I,E>
    • packetFactory

      @NotNull public @NotNull com.github.juliarn.npclib.api.protocol.PlatformPacketAdapter<W,P,I,E> packetFactory()
      Specified by:
      packetFactory in interface com.github.juliarn.npclib.api.Platform<W,P,I,E>
    • actionController

      @NotNull public @NotNull Optional<com.github.juliarn.npclib.api.NpcActionController> actionController()
      Specified by:
      actionController in interface com.github.juliarn.npclib.api.Platform<W,P,I,E>