Interface HologramOwner

All Superinterfaces:
ItemAttribute
All Known Implementing Classes:
CargoManager, CargoNet, EnergyNet, EnergyRegulator, GEOMiner, HologramProjector, NetherStarReactor, NuclearReactor, Reactor

public interface HologramOwner extends ItemAttribute
This ItemAttribute manages holograms.
Author:
TheBusyBiscuit
See Also:
  • Method Details

    • updateHologram

      default void updateHologram(@Nonnull Block b, @Nonnull String text)
      This will update the hologram text for the given Block.
      Parameters:
      b - The Block to which the hologram belongs
      text - The nametag for the hologram
    • removeHologram

      default void removeHologram(@Nonnull Block b)
      This will remove the hologram for the given Block.
      Parameters:
      b - The Block to which the hologram blocks
    • getHologramOffset

      @Nonnull default Vector getHologramOffset(@Nonnull Block block)
      This returns the offset of the hologram as a Vector. This offset is applied to Block.getLocation() when spawning the hologram.
      Parameters:
      block - The Block which serves as the origin point
      Returns:
      The hologram offset