public class NewsHandler extends Object
| Constructor and Description |
|---|
NewsHandler(String branch,
int build) |
| Modifier and Type | Method and Description |
|---|---|
void |
addNews(NewsItem item) |
Collection<NewsItem> |
getActiveNews() |
Collection<NewsItem> |
getActiveNews(NewsItemAction action) |
void |
handleNews(GeyserSession session,
NewsItemAction action) |
void |
shutdown() |
public NewsHandler(String branch, int build)
public void handleNews(GeyserSession session, NewsItemAction action)
public Collection<NewsItem> getActiveNews()
public Collection<NewsItem> getActiveNews(NewsItemAction action)
public void addNews(NewsItem item)
public void shutdown()
Copyright © 2021 GeyserMC. All rights reserved.