classpublicPriority 1
NPCPlugin
com.hypixel.hytale.server.npc.NPCPlugin
extends JavaPlugin
58
Methods
58
Public Methods
41
Fields
1
Constructors
Constants
BuilderCodec<NPCPlugin.NPCConfig>CODEC= BuilderCodec.builder(NPCPlugin.NPCConfig.class, NPCPlugin.NPCConfig::new)
.append(new Ke...
Vector3fNULL_ROTATION= new Vector3f(0.0F, 0.0F, 0.0F)
shortPRIORITY_LOAD_NPC= -8
shortPRIORITY_SPAWN_VALIDATION= -7
Constructors
public
NPCPlugin(JavaPluginInit init)Methods
Public Methods (58)
publicstatic
Role buildRole(Builder<Role> roleBuilder, BuilderInfo builderInfo, BuilderSupport builderSupport, int roleIndex)@Nonnull
public
void collectRoleTick(int roleIndex, long nanos)public
void collectSensorSupportFriendlyBlockingTest(int roleIndex, boolean cacheHit)public
void collectSensorSupportInverseLosTest(int roleIndex, boolean cacheHit)public
void collectSensorSupportLosTest(int roleIndex, boolean cacheHit, long time)public
void collectSensorSupportTickDone(int roleIndex)public
void forceValidation(int builderIndex)public
ResourceType<EntityStore, AStarNodePoolProviderSimple> getAStarNodePoolProviderSimpleResourceType()public
AttitudeMap getAttitudeMap()public
ComponentType<EntityStore, BeaconSupport> getBeaconSupportComponentType()public
ResourceType<EntityStore, Blackboard> getBlackboardResourceType()public
BuilderInfo getBuilderInfo(Builder<?> builder)@Nullable
public
BuilderManager getBuilderManager()public
ComponentType<EntityStore, CombatViewSystems.CombatData> getCombatDataComponentType()public
ResourceType<EntityStore, CombatViewSystems.CombatDataPool> getCombatDataPoolResourceType()public
ComponentType<EntityStore, FailedSpawnComponent> getFailedSpawnComponentType()public
int getIndex(String builderName)public
ItemAttitudeMap getItemAttitudeMap()public
int getMaxBlackboardBlockCountPerType()public
int getMaxBlackboardBlockType()public
String getName(int builderIndex)@Nullable
public
ResourceType<EntityStore, NewSpawnStartTickingSystem.QueueResource> getNewSpawnStartTickingQueueResourceType()public
ComponentType<EntityStore, NPCBlockEventSupport> getNpcBlockEventSupportComponentType()public
ComponentType<EntityStore, NPCEntityEventSupport> getNpcEntityEventSupportComponentType()public
ResourceType<EntityStore, SpatialResource<Ref<EntityStore>, EntityStore>> getNpcSpatialResource()public
ComponentType<EntityStore, NPCRunTestsCommand.NPCTestData> getNpcTestDataComponentType()public
int getPathChangeRevision()public
ComponentType<EntityStore, PlayerBlockEventSupport> getPlayerBlockEventSupportComponentType()public
ComponentType<EntityStore, PlayerEntityEventSupport> getPlayerEntityEventSupportComponentType()public
String[] getPresetCoverageTestNPCs()public
BuilderInfo getRoleBuilderInfo(int roleIndex)@Nullable
public
ResourceType<EntityStore, RoleChangeSystem.RoleChangeQueue> getRoleChangeQueueResourceType()public
List<String> getRoleTemplateNames(boolean spawnableOnly)public
ResourceType<EntityStore, SortBufferProviderResource> getSortBufferProviderResourceResourceType()public
ComponentType<EntityStore, StateEvaluator> getStateEvaluatorComponentType()public
ComponentType<EntityStore, StepComponent> getStepComponentType()public
ComponentType<EntityStore, Timers> getTimersComponentType()public
ComponentType<EntityStore, ValueStore> getValueStoreComponentType()public
boolean hasRoleName(String roleName)public
boolean isAutoReload()public
boolean isBenchmarkingRole()public
boolean isBenchmarkingSensorSupport()public
boolean isGenerateDescriptors()public
boolean isGenerateDescriptorsFile()public
boolean isLogFailingTestErrors()public
boolean isValidateBuilder()public
void onSchemaGenerate(GenerateSchemaEvent event)public
BuilderInfo prepareRoleBuilderInfo(int roleIndex)@Nonnull
public
<T> NPCPlugin registerCoreComponentType(String name, Supplier<Builder<T>> builder)@Nonnull
publicstatic
void reloadNPCsWithRole(int roleIndex)public
void setBuilderInvalid(int builderIndex)public
void setRoleBuilderNeedsReload(Builder<?> builder)public
void setupNPCLoading()public
boolean startRoleBenchmark(double seconds, Consumer<Int2ObjectMap<TimeDistributionRecorder>> onFinished)public
boolean startSensorSupportBenchmark(double seconds, Consumer<Int2ObjectMap<SensorSupportBenchmark>> onFinished)public
boolean testAndValidateRole(BuilderInfo builderInfo)public
Builder<Role> tryGetCachedValidRole(int roleIndex)@Nullable
public
void validateSpawnableRole(String roleName)Fields
Public Fields (9)
publicstatic
String FACTORY_CLASS_ACTIONpublicstatic
String FACTORY_CLASS_ACTION_LISTpublicstatic
String FACTORY_CLASS_BODY_MOTIONpublicstatic
String FACTORY_CLASS_HEAD_MOTIONpublicstatic
String FACTORY_CLASS_INSTRUCTIONpublicstatic
String FACTORY_CLASS_ROLEpublicstatic
String FACTORY_CLASS_SENSORpublicstatic
String FACTORY_CLASS_TRANSIENT_PATHpublicstatic
String ROLE_ASSETS_PATHProtected Fields (10)
protected
boolean autoReloadprotected
List<BuilderDescriptor> builderDescriptorsprotected
boolean logFailingTestErrorsprotected
int maxBlackboardBlockCountPerTypeprotected
String[] presetCoverageTestNPCsprotected
Int2ObjectMap<SensorSupportBenchmark> roleSensorSupportDistributionprotected
SensorSupportBenchmark roleSensorSupportDistributionAllprotected
Int2ObjectMap<TimeDistributionRecorder> roleTickDistributionprotected
TimeDistributionRecorder roleTickDistributionAllprotected
boolean validateBuilderPrivate/Package Fields (22)
private
ResourceType<EntityStore, AStarNodePoolProviderSimple> aStarNodePoolProviderSimpleResourceTypeprivate
AttitudeMap attitudeMapprivate
ComponentType<EntityStore, BeaconSupport> beaconSupportComponentTypeprivate
ResourceType<EntityStore, Blackboard> blackboardResourceTypeprivate
ComponentType<EntityStore, CombatViewSystems.CombatData> combatDataComponentTypeprivate
ResourceType<EntityStore, CombatViewSystems.CombatDataPool> combatDataPoolResourceTypeprivate
ComponentType<EntityStore, FailedSpawnComponent> failedSpawnComponentTypeprivate
NPCPlugin instanceprivate
ItemAttitudeMap itemAttitudeMapprivate
ResourceType<EntityStore, NewSpawnStartTickingSystem.QueueResource> newSpawnStartTickingQueueResourceTypeprivate
ComponentType<EntityStore, NPCBlockEventSupport> npcBlockEventSupportComponentTypeprivate
ComponentType<EntityStore, NPCEntityEventSupport> npcEntityEventSupportComponentTypeprivate
ResourceType<EntityStore, SpatialResource<Ref<EntityStore>, EntityStore>> npcSpatialResourceprivate
ComponentType<EntityStore, NPCRunTestsCommand.NPCTestData> npcTestDataComponentTypeprivate
ComponentType<EntityStore, PlayerBlockEventSupport> playerBlockEventSupportComponentTypeprivate
ComponentType<EntityStore, PlayerEntityEventSupport> playerEntityEventSupportComponentTypeprivate
ResourceType<EntityStore, RoleChangeSystem.RoleChangeQueue> roleChangeQueueResourceTypeprivate
ResourceType<EntityStore, SortBufferProviderResource> sortBufferProviderResourceResourceTypeprivate
ComponentType<EntityStore, StateEvaluator> stateEvaluatorComponentTypeprivate
ComponentType<EntityStore, StepComponent> stepComponentTypeprivate
ComponentType<EntityStore, Timers> timersComponentTypeprivate
ComponentType<EntityStore, ValueStore> valueStoreComponentTypeRelated Classes
Used By