Interface IAnimatedArchitectureToolUtil
- All Known Implementing Classes:
AnimatedArchitectureToolUtilSpigot
public interface IAnimatedArchitectureToolUtil
Represents a set of utility functions around the tool used by
ToolUsers.-
Method Summary
Modifier and TypeMethodDescriptionvoidgiveToPlayer(IPlayer player, String name, String lore) Gives a player a AnimatedArchitecture.booleanisPlayerHoldingTool(IPlayer player) Checks if a player is currently holding a AnimatedArchitecture tool in their main hand.voidremoveTool(IPlayer player) Removes any AnimatedArchitecture tools from a player's inventory.
-
Method Details
-
giveToPlayer
Gives a player a AnimatedArchitecture.- Parameters:
player- The player to give the tool to.name- The name of the tool.lore- The lore of the tool.
-
removeTool
Removes any AnimatedArchitecture tools from a player's inventory.- Parameters:
player- The player whose inventory will be checked.
-
isPlayerHoldingTool
Checks if a player is currently holding a AnimatedArchitecture tool in their main hand.- Parameters:
player- The player to check.- Returns:
- True if they are currently holding a AnimatedArchitecture tool in their main hand.
-