Package vazkii.botania.api.internal
Interface ManaBurst
- All Known Implementing Classes:
ManaBurstEntity
public interface ManaBurst
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.core.BlockPosUsed a sentinel "no position" position. -
Method Summary
Modifier and TypeMethodDescriptiondefault net.minecraft.world.entity.projectile.ThrowableProjectileentity()float@Nullable net.minecraft.core.BlockPosThe block position of the block entity that spawned this burst.intgetColor()@Nullable net.minecraft.core.BlockPosintgetMana()floatintint@Nullable UUIDnet.minecraft.world.item.ItemStackintintbooleanhasAlreadyCollidedAt(net.minecraft.core.BlockPos pos) booleanbooleanbooleanbooleanisFake()voidping()voidsetBurstSourceCoords(net.minecraft.core.BlockPos pos) voidsetCollidedAt(net.minecraft.core.BlockPos pos) voidsetColor(int color) voidsetFake(boolean fake) voidsetGravity(float gravity) voidsetMagnetizePos(@Nullable net.minecraft.core.BlockPos pos) voidsetMana(int mana) voidsetManaLossPerTick(float mana) voidsetMinManaLoss(int minManaLoss) voidsetOrbitTime(int time) voidsetShooterUUID(UUID uuid) voidsetSourceLens(net.minecraft.world.item.ItemStack lens) voidsetStartingMana(int mana) voidsetTripped(boolean tripped) voidsetWarped(boolean warped)
-
Field Details
-
NO_SOURCE
static final net.minecraft.core.BlockPos NO_SOURCEUsed a sentinel "no position" position. Note that using BlockPos.ZERO is incorrect in most cases, due to the world height limit now going below y=0.
-
-
Method Details
-
isFake
boolean isFake() -
getColor
int getColor() -
setColor
void setColor(int color) -
getMana
int getMana() -
setMana
void setMana(int mana) -
getStartingMana
int getStartingMana() -
setStartingMana
void setStartingMana(int mana) -
getMinManaLoss
int getMinManaLoss() -
setMinManaLoss
void setMinManaLoss(int minManaLoss) -
getManaLossPerTick
float getManaLossPerTick() -
setManaLossPerTick
void setManaLossPerTick(float mana) -
getBurstGravity
float getBurstGravity() -
setGravity
void setGravity(float gravity) -
getBurstSourceBlockPos
@Nullable @Nullable net.minecraft.core.BlockPos getBurstSourceBlockPos()The block position of the block entity that spawned this burst. If the burst wasn't fired from a block entity, returnsNO_SOURCE -
setBurstSourceCoords
void setBurstSourceCoords(net.minecraft.core.BlockPos pos) -
getSourceLens
net.minecraft.world.item.ItemStack getSourceLens() -
setSourceLens
void setSourceLens(net.minecraft.world.item.ItemStack lens) -
hasAlreadyCollidedAt
boolean hasAlreadyCollidedAt(net.minecraft.core.BlockPos pos) -
setCollidedAt
void setCollidedAt(net.minecraft.core.BlockPos pos) -
getTicksExisted
int getTicksExisted() -
setFake
void setFake(boolean fake) -
setShooterUUID
-
getShooterUUID
-
ping
void ping() -
hasWarped
boolean hasWarped()- Returns:
- True if a warp lens has already warped this burst once
-
setWarped
void setWarped(boolean warped) -
getOrbitTime
int getOrbitTime() -
setOrbitTime
void setOrbitTime(int time) -
hasTripped
boolean hasTripped()- Returns:
- Whether an entity has tripped this burst for the tripwire lens
-
setTripped
void setTripped(boolean tripped) -
getMagnetizedPos
@Nullable @Nullable net.minecraft.core.BlockPos getMagnetizedPos()- Returns:
- The position this burst is magnetized towards
-
setMagnetizePos
void setMagnetizePos(@Nullable @Nullable net.minecraft.core.BlockPos pos) -
hasLeftSource
boolean hasLeftSource()- Returns:
- True if the burst has ticked at least once outside of
getBurstSourceBlockPos().
-
entity
default net.minecraft.world.entity.projectile.ThrowableProjectile entity()
-