Class SoulHarvesterComponent
java.lang.Object
valorless.rarespawns.builders.components.SoulHarvesterComponent
Component that configures Soul Harvester behavior for an entity or item.
Tracks how many souls are collected per qualifying gain, the maximum number of souls that can be stored, and any upgrades that modify this behavior.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe method by which souls are gained.booleanWhether the worlds list is a blacklist (true) or whitelist (false).Maximum number of souls that can be stored.Number of souls gained per qualifying gain.booleanWhether kills from spawner-generated entities count towards soul collection.Upgrades that modify the Soul Harvester's behavior.List of world names where soul collection is enabled or disabled based on isBlacklist. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a SoulHarvesterComponent with default values and an empty upgrade list. -
Method Summary
-
Field Details
-
soulsPerGain
Number of souls gained per qualifying gain. Default: 1 -
maxSouls
Maximum number of souls that can be stored. Default: 10 -
spawners
public boolean spawnersWhether kills from spawner-generated entities count towards soul collection. Default: false -
worlds
List of world names where soul collection is enabled or disabled based on isBlacklist. Default: empty list -
isBlacklist
public boolean isBlacklistWhether the worlds list is a blacklist (true) or whitelist (false). Default: false -
gainType
The method by which souls are gained. Default: KILL -
upgrades
Upgrades that modify the Soul Harvester's behavior. Typically populated from configuration or progression systems.
-
-
Constructor Details
-
SoulHarvesterComponent
public SoulHarvesterComponent()Creates a SoulHarvesterComponent with default values and an empty upgrade list.
-