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
    Modifier and Type
    Field
    Description
    static final net.minecraft.resources.ResourceLocation
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Can this tile receive mana from bursts? Generally set to false for implementations of ManaCollector.
    int
    Gets the amount of mana currently in this block.
    net.minecraft.world.level.Level
     
    net.minecraft.core.BlockPos
     
    boolean
    Is this Mana Receiver is full? Being full means no mana bursts will be sent.
    void
    receiveMana(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.