Package net.glowstone.entity
Class FishingRewardManager
java.lang.Object
net.glowstone.entity.FishingRewardManager
Generates fishing loot.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Category names must match one-to-one with the subtags of "rewards" in builtin/fishingRewards.yml.static class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns all theFishingRewardManager.RewardItem
instances for the items in the given category.
-
Constructor Details
-
FishingRewardManager
public FishingRewardManager()Creates the instance.
-
-
Method Details
-
getCategoryItems
public Collection<FishingRewardManager.RewardItem> getCategoryItems(FishingRewardManager.RewardCategory category) Returns all theFishingRewardManager.RewardItem
instances for the items in the given category.- Parameters:
category
- the category to look up- Returns:
- a collection of the reward items in that category
-