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 Vector
getHologramOffset
(Block block) This returns the offset of the hologram as aVector
.default void
This will remove the hologram for the givenBlock
.default void
updateHologram
(Block b, String text) This will update the hologram text for the givenBlock
.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
- TheBlock
to which the hologram belongstext
- The nametag for the hologram
-
removeHologram
This will remove the hologram for the givenBlock
.- Parameters:
b
- TheBlock
to which the hologram blocks
-
getHologramOffset
This returns the offset of the hologram as aVector
. This offset is applied toBlock.getLocation()
when spawning the hologram.- Parameters:
block
- TheBlock
which serves as the origin point- Returns:
- The hologram offset
-