Class FeedbackResourceManager
java.lang.Object
com.thewinterframework.configurate.feedback.resource.FeedbackResourceManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull FeedbackgetFeedback(String key) Gets the feedback with the specified key.static FeedbackResourceManagerinstance()registerProvider(com.thewinterframework.plugin.WinterPlugin plugin, org.spongepowered.configurate.ConfigurationNode node) unregisterProvider(com.thewinterframework.plugin.WinterPlugin plugin) Registers a feedback provider.
-
Constructor Details
-
FeedbackResourceManager
public FeedbackResourceManager()
-
-
Method Details
-
instance
-
registerProvider
public FeedbackResourceManager registerProvider(com.thewinterframework.plugin.WinterPlugin plugin, org.spongepowered.configurate.ConfigurationNode node) -
unregisterProvider
public FeedbackResourceManager unregisterProvider(com.thewinterframework.plugin.WinterPlugin plugin) Registers a feedback provider.- Parameters:
plugin- the plugin that provides the feedback
-
getFeedback
Gets the feedback with the specified key.- Parameters:
key- the key of the feedback- Returns:
- the feedback with the specified key, or the key as feedback chat message if not found
-