Package net.glowstone.entity
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 Summary
ConstructorDescriptionRewardItem
(org.bukkit.inventory.ItemStack item, double chance, int minEnchantmentLevel, int maxEnchantmentLevel) -
Method Summary
-
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 ifitemYaml
is null
-
serialize
- Specified by:
serialize
in interfaceorg.bukkit.configuration.serialization.ConfigurationSerializable
-
getItem
public org.bukkit.inventory.ItemStack getItem() -
getChance
public double getChance() -
getMinEnchantmentLevel
public int getMinEnchantmentLevel() -
getMaxEnchantmentLevel
public int getMaxEnchantmentLevel() -
toString
-