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
FieldsModifier and TypeFieldDescriptionprotected Consumer<com.github.juliarn.npclib.api.NpcActionController.Builder> protected booleanprotected static final booleanprotected static final com.github.juliarn.npclib.api.profile.ProfileResolverprotected com.github.juliarn.npclib.api.event.manager.NpcEventManagerprotected Eprotected com.github.juliarn.npclib.api.log.PlatformLoggerprotected com.github.juliarn.npclib.api.profile.ProfileResolverprotected com.github.juliarn.npclib.api.PlatformTaskManagerprotected com.github.juliarn.npclib.api.PlatformVersionAccessorprotected com.github.juliarn.npclib.api.PlatformWorldAccessor<W> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull CommonPlatformBuilder<W, P, I, E> actionController(@NotNull Consumer<com.github.juliarn.npclib.api.NpcActionController.Builder> decorator) build()debug(boolean debug) doBuild()eventManager(@NotNull com.github.juliarn.npclib.api.event.manager.NpcEventManager eventManager) @NotNull CommonPlatformBuilder<W, P, I, E> logger(@NotNull com.github.juliarn.npclib.api.log.PlatformLogger logger) npcTracker(@NotNull com.github.juliarn.npclib.api.NpcTracker<W, P, I, E> npcTracker) packetFactory(@NotNull com.github.juliarn.npclib.api.protocol.PlatformPacketAdapter<W, P, I, E> packetFactory) protected abstract voidprofileResolver(@NotNull com.github.juliarn.npclib.api.profile.ProfileResolver profileResolver) taskManager(@NotNull com.github.juliarn.npclib.api.PlatformTaskManager taskManager) versionAccessor(@NotNull com.github.juliarn.npclib.api.PlatformVersionAccessor versionAccessor) worldAccessor(@NotNull com.github.juliarn.npclib.api.PlatformWorldAccessor<W> worldAccessor)
-
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
-
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
-
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
-
packetAdapter
-
actionControllerDecorator
protected Consumer<com.github.juliarn.npclib.api.NpcActionController.Builder> actionControllerDecorator
-
-
Constructor Details
-
CommonPlatformBuilder
public CommonPlatformBuilder()
-
-
Method Details
-
debug
-
extension
-
logger
@NotNull public @NotNull CommonPlatformBuilder<W,P, loggerI, E> (@NotNull @NotNull com.github.juliarn.npclib.api.log.PlatformLogger logger) -
eventManager
-
npcTracker
-
taskManager
-
profileResolver
-
worldAccessor
-
versionAccessor
-
packetFactory
-
actionController
-
build
-
prepareBuild
protected abstract void prepareBuild() -
doBuild
-