Class CommonPlatformBuilder<W,P,I,E>

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

public abstract class CommonPlatformBuilder<W,P,I,E> extends Object implements com.github.juliarn.npclib.api.Platform.Builder<W,P,I,E>
  • Field Summary

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    actionController(@NotNull Consumer<com.github.juliarn.npclib.api.NpcActionController.Builder> decorator)
     
    @NotNull com.github.juliarn.npclib.api.Platform<W,P,I,E>
     
    com.github.juliarn.npclib.api.Platform.Builder<W,P,I,E>
    debug(boolean debug)
     
    protected abstract @NotNull com.github.juliarn.npclib.api.Platform<W,P,I,E>
     
    com.github.juliarn.npclib.api.Platform.Builder<W,P,I,E>
    eventManager(@NotNull com.github.juliarn.npclib.api.event.manager.NpcEventManager eventManager)
     
    com.github.juliarn.npclib.api.Platform.Builder<W,P,I,E>
    extension(E extension)
     
    logger(@NotNull com.github.juliarn.npclib.api.log.PlatformLogger logger)
     
    com.github.juliarn.npclib.api.Platform.Builder<W,P,I,E>
    npcTracker(@NotNull com.github.juliarn.npclib.api.NpcTracker<W,P,I,E> npcTracker)
     
    com.github.juliarn.npclib.api.Platform.Builder<W,P,I,E>
    packetFactory(@NotNull com.github.juliarn.npclib.api.protocol.PlatformPacketAdapter<W,P,I,E> packetFactory)
     
    protected abstract void
     
    com.github.juliarn.npclib.api.Platform.Builder<W,P,I,E>
    profileResolver(@NotNull com.github.juliarn.npclib.api.profile.ProfileResolver profileResolver)
     
    com.github.juliarn.npclib.api.Platform.Builder<W,P,I,E>
    taskManager(@NotNull com.github.juliarn.npclib.api.PlatformTaskManager taskManager)
     
    com.github.juliarn.npclib.api.Platform.Builder<W,P,I,E>
    versionAccessor(@NotNull com.github.juliarn.npclib.api.PlatformVersionAccessor versionAccessor)
     
    com.github.juliarn.npclib.api.Platform.Builder<W,P,I,E>
    worldAccessor(@NotNull com.github.juliarn.npclib.api.PlatformWorldAccessor<W> worldAccessor)
     

    Methods inherited from class java.lang.Object

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

    • DEFAULT_DEBUG

      protected static final boolean DEFAULT_DEBUG
    • DEFAULT_PROFILE_RESOLVER

      protected static final com.github.juliarn.npclib.api.profile.ProfileResolver DEFAULT_PROFILE_RESOLVER
    • extension

      protected E extension
    • logger

      protected com.github.juliarn.npclib.api.log.PlatformLogger logger
    • debug

      protected boolean debug
    • eventManager

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

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

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

      protected com.github.juliarn.npclib.api.PlatformTaskManager taskManager
    • versionAccessor

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

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

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

      protected Consumer<com.github.juliarn.npclib.api.NpcActionController.Builder> actionControllerDecorator
  • Constructor Details

    • CommonPlatformBuilder

      public CommonPlatformBuilder()
  • Method Details

    • debug

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

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

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

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

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

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

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

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

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

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

      @NotNull public @NotNull CommonPlatformBuilder<W,P,I,E> actionController(@NotNull @NotNull Consumer<com.github.juliarn.npclib.api.NpcActionController.Builder> decorator)
      Specified by:
      actionController in interface com.github.juliarn.npclib.api.Platform.Builder<W,P,I,E>
    • build

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

      protected abstract void prepareBuild()
    • doBuild

      @NotNull protected abstract @NotNull com.github.juliarn.npclib.api.Platform<W,P,I,E> doBuild()