Package vazkii.botania.api.mana
Interface ManaReceiver
- All Known Subinterfaces:
ManaCollector,ManaPool,ManaSpreader
- All Known Implementing Classes:
AvatarBlockEntity,BreweryBlockEntity,LifeImbuerBlockEntity,ManaEnchanterBlockEntity,ManaPoolBlockEntity,ManaSplitterBlockEntity,ManaSpreaderBlockEntity,ManaVoidBlock.ManaReceiverImpl,PowerGeneratorBlockEntity,RunicAltarBlockEntity,TerrestrialAgglomerationPlateBlockEntity
public interface ManaReceiver
Any Block or Block Entity with this capability can hold and receive mana from mana bursts.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanCan this tile receive mana from bursts? Generally set to false for implementations of ManaCollector.intGets the amount of mana currently in this block.net.minecraft.world.level.Levelnet.minecraft.core.BlockPosbooleanisFull()Is this Mana Receiver is full? Being full means no mana bursts will be sent.voidreceiveMana(int mana) Called when this receiver receives mana.
-
Field Details
-
ID
static final net.minecraft.resources.ResourceLocation ID
-
-
Method Details
-
getManaReceiverLevel
net.minecraft.world.level.Level getManaReceiverLevel() -
getManaReceiverPos
net.minecraft.core.BlockPos getManaReceiverPos() -
getCurrentMana
int getCurrentMana()Gets the amount of mana currently in this block. -
isFull
boolean isFull()Is this Mana Receiver is full? Being full means no mana bursts will be sent. -
receiveMana
void receiveMana(int mana) Called when this receiver receives mana. -
canReceiveManaFromBursts
boolean canReceiveManaFromBursts()Can this tile receive mana from bursts? Generally set to false for implementations of ManaCollector.
-