java.lang.Object
me.deecaad.weaponmechanics.weapon.reload.ammo.ItemAmmo
All Implemented Interfaces:
IAmmoType

public class ItemAmmo extends Object implements IAmmoType
  • Constructor Details

    • ItemAmmo

      public ItemAmmo(String ammoTitle, org.bukkit.inventory.ItemStack bulletItem, org.bukkit.inventory.ItemStack magazineItem, AmmoConverter ammoConverter)
  • Method Details

    • getBulletItem

      public org.bukkit.inventory.ItemStack getBulletItem()
    • getMagazineItem

      public org.bukkit.inventory.ItemStack getMagazineItem()
    • hasAmmo

      public boolean hasAmmo(PlayerWrapper wrapper)
      Specified by:
      hasAmmo in interface IAmmoType
    • removeAmmo

      public int removeAmmo(org.bukkit.inventory.ItemStack weapon, PlayerWrapper wrapper, int amount, int maximumMagSize)
      Specified by:
      removeAmmo in interface IAmmoType
    • giveAmmo

      public void giveAmmo(org.bukkit.inventory.ItemStack weaponStack, PlayerWrapper playerWrapper, int amount, int maximumMagazineSize)
      Specified by:
      giveAmmo in interface IAmmoType
    • getMaximumAmmo

      public int getMaximumAmmo(PlayerWrapper playerWrapper, int maximumMagazineSize)
      Specified by:
      getMaximumAmmo in interface IAmmoType