Interface ManaSpreader

All Superinterfaces:
ManaCollector, ManaReceiver
All Known Implementing Classes:
ManaSpreaderBlockEntity

public interface ManaSpreader extends ManaCollector
Any ManaCollector that also implements this is considered a Mana Spreader, by which can fire mana bursts as a spreader.
  • Method Details

    • setCanShoot

      void setCanShoot(boolean canShoot)
    • getBurstParticleTick

      int getBurstParticleTick()
    • setBurstParticleTick

      void setBurstParticleTick(int i)
    • getLastBurstDeathTick

      int getLastBurstDeathTick()
    • setLastBurstDeathTick

      void setLastBurstDeathTick(int ticksExisted)
    • runBurstSimulation

      ManaBurst runBurstSimulation()
    • getRotationX

      float getRotationX()
      Returns:
      The X rotation, in degrees
    • getRotationY

      float getRotationY()
      Returns:
      The Y rotation, in degrees
    • setRotationX

      void setRotationX(float rot)
      Set the X rotation
      Parameters:
      rot - X rotation, in degrees
    • setRotationY

      void setRotationY(float rot)
      Set the Y rotation
      Parameters:
      rot - Y rotation, in degrees
    • commitRedirection

      void commitRedirection()
      This should be called after rotation setting is done to allow for the block to re-calculate.
    • pingback

      void pingback(ManaBurst burst, UUID expectedIdentity)
      Pings this object back, telling it that the burst passed in is still alive in the world. The UUID parameter should be the UUID with which the burst was created, this is used to let the object handle the check for if it's the correct ID internally. ManaBurst implementations should do this every tick.
    • getIdentifier

      UUID getIdentifier()
      Returns:
      A unique and persistent identifier for this spreader