Package vazkii.botania.common.block.mana
Class ManaVoidBlock.ManaReceiverImpl
java.lang.Object
vazkii.botania.common.block.mana.ManaVoidBlock.ManaReceiverImpl
- All Implemented Interfaces:
ManaReceiver
- Enclosing class:
ManaVoidBlock
-
Field Summary
Fields inherited from interface vazkii.botania.api.mana.ManaReceiver
ID -
Constructor Summary
ConstructorsConstructorDescriptionManaReceiverImpl(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
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.
-
Constructor Details
-
ManaReceiverImpl
public ManaReceiverImpl(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
getManaReceiverLevel
public net.minecraft.world.level.Level getManaReceiverLevel()- Specified by:
getManaReceiverLevelin interfaceManaReceiver
-
getManaReceiverPos
public net.minecraft.core.BlockPos getManaReceiverPos()- Specified by:
getManaReceiverPosin interfaceManaReceiver
-
getCurrentMana
public int getCurrentMana()Description copied from interface:ManaReceiverGets the amount of mana currently in this block.- Specified by:
getCurrentManain interfaceManaReceiver
-
isFull
public boolean isFull()Description copied from interface:ManaReceiverIs this Mana Receiver is full? Being full means no mana bursts will be sent.- Specified by:
isFullin interfaceManaReceiver
-
receiveMana
public void receiveMana(int mana) Description copied from interface:ManaReceiverCalled when this receiver receives mana.- Specified by:
receiveManain interfaceManaReceiver
-
canReceiveManaFromBursts
public boolean canReceiveManaFromBursts()Description copied from interface:ManaReceiverCan this tile receive mana from bursts? Generally set to false for implementations of ManaCollector.- Specified by:
canReceiveManaFromBurstsin interfaceManaReceiver
-