Package vazkii.botania.api.mana.spark
Interface ManaSpark
- All Superinterfaces:
SparkEntity
- All Known Implementing Classes:
ManaSparkEntity
An Entity that implements this is considered a Mana Spark.
-
Method Summary
Modifier and TypeMethodDescriptionboolean@Nullable ManaReceiver@Nullable SparkAttachableGet the thing this spark is attached to, if anyGets a collection of all Sparks this is tranfering to.voidregisterTransfer(ManaSpark entity) Registers the Spark passed in as a Spark meant for mana to be transfered towards.voidsetUpgrade(SparkUpgradeType upgrade) voidMakes that spark register transfers for all relevant sparks, needs to be called whenever the connected sparks may change (setNetwork, remove and setUpgrade should already do this)Methods inherited from interface vazkii.botania.api.item.SparkEntity
entity, getAttachPos, getNetwork, setNetwork
-
Method Details
-
getAttachedTile
Get the thing this spark is attached to, if any -
getAttachedManaReceiver
- Returns:
- The attached mana receiver under the spark, if available
-
getOutgoingTransfers
Collection<ManaSpark> getOutgoingTransfers()Gets a collection of all Sparks this is tranfering to. -
registerTransfer
Registers the Spark passed in as a Spark meant for mana to be transfered towards. -
updateTransfers
void updateTransfers()Makes that spark register transfers for all relevant sparks, needs to be called whenever the connected sparks may change (setNetwork, remove and setUpgrade should already do this) -
getUpgrade
SparkUpgradeType getUpgrade() -
setUpgrade
-
areIncomingTransfersDone
boolean areIncomingTransfersDone()
-