Class ItemFoodSeeds


public class ItemFoodSeeds extends ItemFood
A type of edible item that can be planted on one specific type of block, such as a carrot or potato.
  • Constructor Details

    • ItemFoodSeeds

      public ItemFoodSeeds(org.bukkit.Material cropsType, org.bukkit.Material soilType, int food, float saturation)
      Creates an instance.
      Parameters:
      cropsType - this item's block form
      soilType - the type of block this can be planted on
      food - the amount of hunger this food fills, in half icons
      saturation - the amount of saturation this food grants, in half icons saved
  • Method Details

    • rightClickBlock

      public void rightClickBlock(GlowPlayer player, GlowBlock target, org.bukkit.block.BlockFace face, org.bukkit.inventory.ItemStack holding, org.bukkit.util.Vector clickedLoc, org.bukkit.inventory.EquipmentSlot hand)
      Description copied from class: ItemType
      Called when a player right-clicks on a block while holding this item.
      Overrides:
      rightClickBlock in class ItemTimedUsage
      Parameters:
      player - The player
      target - The block the player right-clicked
      face - The face on which the click occurred
      holding - The ItemStack the player was holding
      clickedLoc - The coordinates at which the click occurred
      hand - The hand slot of this item