Class AnimatedArchitectureToolUtilSpigot

java.lang.Object
nl.pim16aap2.animatedarchitecture.spigot.core.implementations.AnimatedArchitectureToolUtilSpigot
All Implemented Interfaces:
IAnimatedArchitectureToolUtil

@Singleton public class AnimatedArchitectureToolUtilSpigot extends Object implements IAnimatedArchitectureToolUtil
Implementation of IAnimatedArchitectureToolUtil for Spigot.

This class is responsible for giving the player the Animated Architecture tool and removing it from the player.

  • Constructor Details

    • AnimatedArchitectureToolUtilSpigot

      @Inject public AnimatedArchitectureToolUtilSpigot(org.bukkit.plugin.java.JavaPlugin javaPlugin)
  • Method Details

    • giveToPlayer

      public void giveToPlayer(IPlayer player, String name, String lore)
      Description copied from interface: IAnimatedArchitectureToolUtil
      Gives a player a AnimatedArchitecture.
      Specified by:
      giveToPlayer in interface IAnimatedArchitectureToolUtil
      Parameters:
      player - The player to give the tool to.
      name - The name of the tool.
      lore - The lore of the tool.
    • removeTool

      public void removeTool(IPlayer player)
      Description copied from interface: IAnimatedArchitectureToolUtil
      Removes any AnimatedArchitecture tools from a player's inventory.
      Specified by:
      removeTool in interface IAnimatedArchitectureToolUtil
      Parameters:
      player - The player whose inventory will be checked.
    • isTool

      public boolean isTool(@Nullable @Nullable org.bukkit.inventory.ItemStack item)
    • isPlayerHoldingTool

      public boolean isPlayerHoldingTool(IPlayer player)
      Description copied from interface: IAnimatedArchitectureToolUtil
      Checks if a player is currently holding a AnimatedArchitecture tool in their main hand.
      Specified by:
      isPlayerHoldingTool in interface IAnimatedArchitectureToolUtil
      Parameters:
      player - The player to check.
      Returns:
      True if they are currently holding a AnimatedArchitecture tool in their main hand.
    • isPlayerHoldingTool

      public boolean isPlayerHoldingTool(org.bukkit.entity.Player player)