Class CrossbowCreator

java.lang.Object
com.github.pinont.singularitylib.api.items.ItemCreator
com.github.pinont.singularitylib.api.items.CrossbowCreator

public class CrossbowCreator extends ItemCreator
A specialized ItemCreator for creating crossbow items. Extends ItemCreator to provide crossbow-specific functionality like adding charged projectiles.
  • Constructor Details

    • CrossbowCreator

      public CrossbowCreator(org.bukkit.plugin.Plugin plugin)
      Creates a new CrossbowCreator with a crossbow ItemStack.
  • Method Details

    • addChargedProjectile

      public ItemCreator addChargedProjectile(org.bukkit.inventory.ItemStack arrow)
      Adds a charged projectile to the crossbow.
      Parameters:
      arrow - the ItemStack representing the projectile to add
      Returns:
      this CrossbowCreator for method chaining