Interface ManaBurst

All Known Implementing Classes:
ManaBurstEntity

public interface ManaBurst
  • Field Details

    • NO_SOURCE

      static final net.minecraft.core.BlockPos NO_SOURCE
      Used 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, returns NO_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

      void setShooterUUID(UUID uuid)
    • getShooterUUID

      @Nullable @Nullable UUID 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()