Class FishingRewardManager.RewardItem

java.lang.Object
net.glowstone.entity.FishingRewardManager.RewardItem
All Implemented Interfaces:
org.bukkit.configuration.serialization.ConfigurationSerializable
Enclosing class:
FishingRewardManager

public static class FishingRewardManager.RewardItem extends Object implements org.bukkit.configuration.serialization.ConfigurationSerializable
  • Constructor Details

    • RewardItem

      public RewardItem(org.bukkit.inventory.ItemStack item, double chance, int minEnchantmentLevel, int maxEnchantmentLevel)
  • Method Details

    • deserialize

      public static FishingRewardManager.RewardItem deserialize(@NonNls @NonNls Map<String,Object> itemYaml)
      Reads a RewardItem from a YAML tag.
      Parameters:
      itemYaml - a YAML tag deserialized as a map
      Returns:
      itemYaml as a RewardItem, or null if itemYaml is null
    • serialize

      public Map<String,Object> serialize()
      Specified by:
      serialize in interface org.bukkit.configuration.serialization.ConfigurationSerializable
    • getItem

      public org.bukkit.inventory.ItemStack getItem()
    • getChance

      public double getChance()
    • getMinEnchantmentLevel

      public int getMinEnchantmentLevel()
    • getMaxEnchantmentLevel

      public int getMaxEnchantmentLevel()
    • toString

      public String toString()
      Overrides:
      toString in class Object