Package vazkii.botania.api.mana
Interface ManaSpreader
- All Superinterfaces:
ManaCollector,ManaReceiver
- All Known Implementing Classes:
ManaSpreaderBlockEntity
Any
ManaCollector that also implements this is considered a Mana Spreader,
by which can fire mana bursts as a spreader.-
Field Summary
Fields inherited from interface vazkii.botania.api.mana.ManaReceiver
ID -
Method Summary
Modifier and TypeMethodDescriptionvoidThis should be called after rotation setting is done to allow for the block to re-calculate.intintfloatfloatvoidPings this object back, telling it that the burst passed in is still alive in the world.voidsetBurstParticleTick(int i) voidsetCanShoot(boolean canShoot) voidsetLastBurstDeathTick(int ticksExisted) voidsetRotationX(float rot) Set the X rotationvoidsetRotationY(float rot) Set the Y rotationMethods inherited from interface vazkii.botania.api.mana.ManaCollector
getManaYieldMultiplier, getMaxMana, onClientDisplayTickMethods inherited from interface vazkii.botania.api.mana.ManaReceiver
canReceiveManaFromBursts, getCurrentMana, getManaReceiverLevel, getManaReceiverPos, isFull, receiveMana
-
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
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
-