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 Summary

    Modifier and Type
    Method
    Description
    default org.bukkit.util.Vector
    getHologramOffset(org.bukkit.block.Block block)
    This returns the offset of the hologram as a Vector.
    default void
    removeHologram(org.bukkit.block.Block b)
    This will remove the hologram for the given Block.
    default void
    updateHologram(org.bukkit.block.Block b, String text)
    This will update the hologram text for the given Block.
    default void
    updateHologram(org.bukkit.block.Block b, String text, Supplier<Boolean> abort)
     

    Methods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.ItemAttribute

    getId
  • Method Details

    • updateHologram

      default void updateHologram(@Nonnull org.bukkit.block.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
    • updateHologram

      default void updateHologram(@Nonnull org.bukkit.block.Block b, @Nonnull String text, Supplier<Boolean> abort)
    • removeHologram

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

      @Nonnull default org.bukkit.util.Vector getHologramOffset(@Nonnull org.bukkit.block.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