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 VectorgetHologramOffset(Block block) This returns the offset of the hologram as aVector.default voidThis will remove the hologram for the givenBlock.default voidupdateHologram(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- TheBlockto which the hologram belongstext- The nametag for the hologram
-
removeHologram
This will remove the hologram for the givenBlock.- Parameters:
b- TheBlockto 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- TheBlockwhich serves as the origin point- Returns:
- The hologram offset
-