Interface HologramOwner
- All Superinterfaces:
ItemAttribute
- All Known Implementing Classes:
CargoManager,CargoNet,EnergyNet,EnergyRegulator,GEOMiner,HologramProjector,NetherStarReactor,NuclearReactor,Reactor
This
ItemAttribute manages holograms.- Author:
- TheBusyBiscuit
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault org.bukkit.util.VectorgetHologramOffset(org.bukkit.block.Block block) This returns the offset of the hologram as aVector.default voidremoveHologram(org.bukkit.block.Block b) This will remove the hologram for the givenBlock.default voidupdateHologram(org.bukkit.block.Block b, String text) This will update the hologram text for the givenBlock.default voidupdateHologram(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
This will update the hologram text for the givenBlock.- Parameters:
b- TheBlockto which the hologram belongstext- The nametag for the hologram
-
updateHologram
-
removeHologram
default void removeHologram(@Nonnull org.bukkit.block.Block b) This will remove the hologram for the givenBlock.- Parameters:
b- TheBlockto 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 aVector. This offset is applied toBlock.getLocation()when spawning the hologram.- Parameters:
block- TheBlockwhich serves as the origin point- Returns:
- The hologram offset
-