Class FollowingHologram
java.lang.Object
me.fami6xx.rpuniverse.core.holoapi.types.holograms.famiHologram
me.fami6xx.rpuniverse.core.holoapi.types.holograms.FollowingHologram
-
Constructor Summary
ConstructorsConstructorDescriptionFollowingHologram(org.bukkit.entity.Entity toFollow)Creates a new FollowingHologram that will be visible by default and can be seen through blocks with no max visible distanceFollowingHologram(org.bukkit.entity.Entity toFollow, double visibleDistance, boolean isVisibleByDefault, boolean seeThroughBlocks)Creates a new FollowingHologram that will stay on the entity until it is destroyedFollowingHologram(org.bukkit.entity.Entity toFollow, double visibleDistance, boolean isVisibleByDefault, boolean seeThroughBlocks, int timeAlive)Creates a new FollowingHologram that will stay on the entity for a certain amount of time -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.LocationThis function is only for Visibility calculations as it needs to get from where to send RayTraceorg.bukkit.entity.EntityintgetPageToDisplay(org.bukkit.entity.Player player)This method is used to retrieve the page number to display for a given player.booleanshouldShow(org.bukkit.entity.Player player)Determines whether the hologram should be shown to the given player.toString()Methods inherited from class me.fami6xx.rpuniverse.core.holoapi.types.holograms.famiHologram
addLine, canSeeThroughBlocks, destroy, getDistance, getHologram, getIntDistance, getShownPage, getUUID, hide, isVisible, show, updatedPlayerMode, updateVisibility
-
Constructor Details
-
FollowingHologram
public FollowingHologram(org.bukkit.entity.Entity toFollow)Creates a new FollowingHologram that will be visible by default and can be seen through blocks with no max visible distance- Parameters:
toFollow- Entity to follow
-
FollowingHologram
public FollowingHologram(org.bukkit.entity.Entity toFollow, double visibleDistance, boolean isVisibleByDefault, boolean seeThroughBlocks)Creates a new FollowingHologram that will stay on the entity until it is destroyed- Parameters:
toFollow- Entity to followvisibleDistance- Distance in blocks in which the hologram is visibleisVisibleByDefault- If the hologram is visible by defaultseeThroughBlocks- If the hologram can be seen through blocks
-
FollowingHologram
public FollowingHologram(org.bukkit.entity.Entity toFollow, double visibleDistance, boolean isVisibleByDefault, boolean seeThroughBlocks, int timeAlive)Creates a new FollowingHologram that will stay on the entity for a certain amount of time- Parameters:
toFollow- Entity to followvisibleDistance- Distance in blocks in which the hologram is visibleisVisibleByDefault- If the hologram is visible by defaultseeThroughBlocks- If the hologram can be seen through blockstimeAlive- Time in ticks after which the hologram will be destroyed
-
-
Method Details
-
getFollowing
public org.bukkit.entity.Entity getFollowing() -
shouldShow
public boolean shouldShow(org.bukkit.entity.Player player)Description copied from class:famiHologramDetermines whether the hologram should be shown to the given player.- Specified by:
shouldShowin classfamiHologram- Parameters:
player- The player to check.- Returns:
- true if the hologram should be shown to the player, false otherwise.
-
getBaseLocation
public org.bukkit.Location getBaseLocation()Description copied from class:famiHologramThis function is only for Visibility calculations as it needs to get from where to send RayTrace- Specified by:
getBaseLocationin classfamiHologram- Returns:
- Location of the base of the hologram
-
getPageToDisplay
public int getPageToDisplay(org.bukkit.entity.Player player)Description copied from class:famiHologramThis method is used to retrieve the page number to display for a given player.- Specified by:
getPageToDisplayin classfamiHologram- Parameters:
player- The player for whom to retrieve the page number.- Returns:
- The page number to display for the given player.
-
toString
-