Contents
- Description
- Nested Class Summary
- Field Summary
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- get()
- setup()
- start()
- shutdown()
- getSpawnMarkerSpatialResource()
- getManualSpawnBeaconSpatialResource()
- getSpawnMarkerComponentType()
- getSpawnMarkerDebugComponentType()
- getSpawnMarkerValidationComponentType()
- getLocalSpawnControllerComponentType()
- getWorldSpawnDataResourceType()
- getSpawnPositionSearchWorkspaceResourceType()
- getSpawnSuppressorComponentType()
- getSpawnSuppressionControllerResourceType()
- getLocalSpawnBeaconComponentType()
- getLocalSpawnStateResourceType()
- getInitialBeaconDelayComponentType()
- getSpawnJobDataComponentType()
- getChunkSpawnDataComponentType()
- getChunkSpawnedNPCDataComponentType()
- getChunkSuppressionQueueResourceType()
- getFloodFillEntryPoolProviderSimpleResourceType()
- getChunkSuppressionEntryComponentType()
- getBeaconSpawnWrapper(int)
- getSpawnMarkerReferenceComponentType()
- getSpawnBeaconReferenceComponentType()
- getFloodFillPositionSelectorComponentType()
- getSpawnMarkerBlockReferenceComponentType()
- getSpawnMarkerBlockComponentType()
- shouldNPCDespawn(Store, NPCEntity, WorldTimeResource, int, boolean)
- getSpawnMarkerModel()
- getWorldEnvironmentSpawnParameters(int)
- getBeaconSpawnsForEnvironment(int)
- getRolesForEnvironment(int)
- getTickColumnBudget()
- getMaxActiveJobs()
- isAutoRemoveInvalidMarkers()
- setAutoRemoveInvalidMarkers(boolean)
- isDebugInvalidMarkers()
- setDebugInvalidMarkers(boolean)
- getLocalSpawnControllerJoinDelay()
- validateSpawnsConfigurations(String, Map, List)
- validateSpawnMarkers(Map, List)
- getEnvironmentDensity(int)
Class SpawningPlugin
java.lang.Object
com.hypixel.hytale.server.core.plugin.PluginBase
com.hypixel.hytale.server.core.plugin.JavaPlugin
com.hypixel.hytale.server.spawning.SpawningPlugin
- All Implemented Interfaces:
CommandOwner
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class PluginBase
METRICS_REGISTRY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SpawningPluginget()getBeaconSpawnsForEnvironment(int environmentIndex) getBeaconSpawnWrapper(int configId) doublegetEnvironmentDensity(int environmentIndex) doubleintit.unimi.dsi.fastutil.ints.IntSetgetRolesForEnvironment(int environment) intgetWorldEnvironmentSpawnParameters(int environmentIndex) booleanbooleanvoidsetAutoRemoveInvalidMarkers(boolean autoRemoveInvalidMarkers) voidsetDebugInvalidMarkers(boolean debugInvalidMarkers) voidsetup()booleanshouldNPCDespawn(Store<EntityStore> store, NPCEntity npcComponent, WorldTimeResource timeManager, int configuration, boolean beaconSpawn) voidshutdown()voidstart()static voidvalidateSpawnMarkers(Map<String, SpawnMarker> markers, List<String> errors) Called to validate each spawn marker's configurations, ensuring that all NPC roles exist.static <T extends NPCSpawn>
voidMethods inherited from class JavaPlugin
getClassLoader, getFile, getTypeMethods inherited from class PluginBase
getAssetRegistry, getBasePermission, getChunkStoreRegistry, getClientFeatureRegistry, getCodecRegistry, getCodecRegistry, getCodecRegistry, getCommandRegistry, getDataDirectory, getEntityRegistry, getEntityStoreRegistry, getEventRegistry, getIdentifier, getLogger, getManifest, getName, getState, getTaskRegistry, isDisabled, isEnabled, preLoad
-
Constructor Details
-
SpawningPlugin
-
-
Method Details
-
get
-
setup
public void setup() -
start
public void start() -
shutdown
public void shutdown() -
getSpawnMarkerSpatialResource
public ResourceType<EntityStore, SpatialResource<Ref<EntityStore>, EntityStore>> getSpawnMarkerSpatialResource() -
getManualSpawnBeaconSpatialResource
public ResourceType<EntityStore, SpatialResource<Ref<EntityStore>, EntityStore>> getManualSpawnBeaconSpatialResource() -
getSpawnMarkerComponentType
-
getSpawnMarkerDebugComponentType
-
getSpawnMarkerValidationComponentType
-
getLocalSpawnControllerComponentType
-
getWorldSpawnDataResourceType
-
getSpawnPositionSearchWorkspaceResourceType
public ResourceType<EntityStore, SpawnPositionSearchWorkspace> getSpawnPositionSearchWorkspaceResourceType() -
getSpawnSuppressorComponentType
-
getSpawnSuppressionControllerResourceType
public ResourceType<EntityStore, SpawnSuppressionController> getSpawnSuppressionControllerResourceType() -
getLocalSpawnBeaconComponentType
-
getLocalSpawnStateResourceType
-
getInitialBeaconDelayComponentType
-
getSpawnJobDataComponentType
-
getChunkSpawnDataComponentType
-
getChunkSpawnedNPCDataComponentType
-
getChunkSuppressionQueueResourceType
-
getFloodFillEntryPoolProviderSimpleResourceType
public ResourceType<EntityStore, FloodFillEntryPoolProviderSimple> getFloodFillEntryPoolProviderSimpleResourceType() -
getChunkSuppressionEntryComponentType
-
getBeaconSpawnWrapper
-
getSpawnMarkerReferenceComponentType
-
getSpawnBeaconReferenceComponentType
-
getFloodFillPositionSelectorComponentType
public ComponentType<EntityStore, FloodFillPositionSelector> getFloodFillPositionSelectorComponentType() -
getSpawnMarkerBlockReferenceComponentType
public ComponentType<EntityStore, SpawnMarkerBlockReference> getSpawnMarkerBlockReferenceComponentType() -
getSpawnMarkerBlockComponentType
-
shouldNPCDespawn
public boolean shouldNPCDespawn(@Nonnull Store<EntityStore> store, @Nonnull NPCEntity npcComponent, @Nonnull WorldTimeResource timeManager, int configuration, boolean beaconSpawn) -
getSpawnMarkerModel
-
getWorldEnvironmentSpawnParameters
-
getBeaconSpawnsForEnvironment
-
getRolesForEnvironment
public it.unimi.dsi.fastutil.ints.IntSet getRolesForEnvironment(int environment) -
getTickColumnBudget
public int getTickColumnBudget() -
getMaxActiveJobs
public int getMaxActiveJobs() -
isAutoRemoveInvalidMarkers
public boolean isAutoRemoveInvalidMarkers() -
setAutoRemoveInvalidMarkers
public void setAutoRemoveInvalidMarkers(boolean autoRemoveInvalidMarkers) -
isDebugInvalidMarkers
public boolean isDebugInvalidMarkers() -
setDebugInvalidMarkers
public void setDebugInvalidMarkers(boolean debugInvalidMarkers) -
getLocalSpawnControllerJoinDelay
public double getLocalSpawnControllerJoinDelay() -
validateSpawnsConfigurations
-
validateSpawnMarkers
public static void validateSpawnMarkers(@Nonnull Map<String, SpawnMarker> markers, @Nonnull List<String> errors) Called to validate each spawn marker's configurations, ensuring that all NPC roles exist.- Parameters:
markers- The map of spawn markers to validate.errors- The list to add error messages to.
-
getEnvironmentDensity
public double getEnvironmentDensity(int environmentIndex)
-