Class WorkingStepHologram
java.lang.Object
me.fami6xx.rpuniverse.core.holoapi.types.holograms.famiHologram
me.fami6xx.rpuniverse.core.api.holograms.WorkingStepHologram
- All Implemented Interfaces:
org.bukkit.event.Listener
-
Constructor Summary
ConstructorsConstructorDescriptionWorkingStepHologram(WorkingStep step, org.bukkit.Location location, Job job) -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Destroys hologram and hides it from all playersorg.bukkit.LocationThis function is only for Visibility calculations as it needs to get from where to send RayTraceintgetPageToDisplay(org.bukkit.entity.Player player)This method is used to retrieve the page number to display for a given player.voidbooleanremoveItems(org.bukkit.entity.Player player, org.bukkit.inventory.ItemStack itemToRemove, int amountToRemove)Removes the specified number of matching items from the player's inventory.booleanshouldShow(org.bukkit.entity.Player player)Determines whether the hologram should be shown to the given player.voidMethods inherited from class me.fami6xx.rpuniverse.core.holoapi.types.holograms.famiHologram
addLine, canSeeThroughBlocks, getDistance, getHologram, getIntDistance, getShownPage, getUUID, hide, isVisible, show, updatedPlayerMode, updateVisibility
-
Constructor Details
-
WorkingStepHologram
-
-
Method Details
-
destroy
public void destroy()Description copied from class:famiHologramDestroys hologram and hides it from all players- Overrides:
destroyin classfamiHologram
-
WorkingStepLocationRemovedEvent
-
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.
-
recreatePages
public void recreatePages() -
removeItems
public boolean removeItems(org.bukkit.entity.Player player, org.bukkit.inventory.ItemStack itemToRemove, int amountToRemove)Removes the specified number of matching items from the player's inventory. -
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.
-