Class famiHologram
java.lang.Object
me.fami6xx.rpuniverse.core.holoapi.types.holograms.famiHologram
- Direct Known Subclasses:
FollowingHologram,SellStepHologram,StaticHologram,WorkingStepHologram
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioneu.decentsoftware.holograms.api.holograms.HologramLinebooleanvoiddestroy()Destroys hologram and hides it from all playersabstract org.bukkit.LocationThis function is only for Visibility calculations as it needs to get from where to send RayTracedoubleeu.decentsoftware.holograms.api.holograms.Hologramintabstract intgetPageToDisplay(org.bukkit.entity.Player player)This method is used to retrieve the page number to display for a given player.intgetShownPage(org.bukkit.entity.Player player)Get shown page for playergetUUID()voidhide(org.bukkit.entity.Player player)Hides hologram from playerbooleanisVisible(org.bukkit.entity.Player player)Checks if hologram is visible to playerabstract booleanshouldShow(org.bukkit.entity.Player player)Determines whether the hologram should be shown to the given player.voidshow(org.bukkit.entity.Player player)Shows hologram to playervoidupdatedPlayerMode(PlayerData data)voidupdateVisibility(double distance, boolean seeThroughBlocks)
-
Constructor Details
-
famiHologram
public famiHologram(eu.decentsoftware.holograms.api.holograms.Hologram holo)
-
-
Method Details
-
addLine
-
updateVisibility
public void updateVisibility(double distance, boolean seeThroughBlocks) -
getDistance
public double getDistance() -
getIntDistance
public int getIntDistance() -
canSeeThroughBlocks
public boolean canSeeThroughBlocks() -
getHologram
public eu.decentsoftware.holograms.api.holograms.Hologram getHologram() -
getUUID
-
updatedPlayerMode
-
getBaseLocation
public abstract org.bukkit.Location getBaseLocation()This function is only for Visibility calculations as it needs to get from where to send RayTrace- Returns:
- Location of the base of the hologram
-
destroy
public void destroy()Destroys hologram and hides it from all players -
show
public void show(org.bukkit.entity.Player player)Shows hologram to player- Parameters:
player- Player to show hologram to
-
getPageToDisplay
public abstract int getPageToDisplay(org.bukkit.entity.Player player)This method is used to retrieve the page number to display for a given player.- Parameters:
player- The player for whom to retrieve the page number.- Returns:
- The page number to display for the given player.
-
shouldShow
public abstract boolean shouldShow(org.bukkit.entity.Player player)Determines whether the hologram should be shown to the given player.- Parameters:
player- The player to check.- Returns:
- true if the hologram should be shown to the player, false otherwise.
-
hide
public void hide(org.bukkit.entity.Player player)Hides hologram from player- Parameters:
player- Player to hide hologram from
-
getShownPage
public int getShownPage(org.bukkit.entity.Player player)Get shown page for player- Parameters:
player- Player to get shown page for- Returns:
- Shown page for player
-
isVisible
public boolean isVisible(org.bukkit.entity.Player player)Checks if hologram is visible to player- Parameters:
player- Player to check visibility for- Returns:
- true if hologram is visible to player, false otherwise
-