public final class NewsItem extends Object
| Modifier and Type | Method and Description |
|---|---|
Set<NewsItemAction> |
getActions() |
ItemData |
getData() |
<T extends ItemData> |
getDataAs(Class<T> type) |
int |
getId() |
String |
getMessage() |
String |
getProject() |
String |
getRawMessage() |
NewsType |
getType() |
String |
getUrl() |
boolean |
isActive() |
boolean |
isGlobal() |
boolean |
isPriority() |
static NewsItem |
readItem(com.google.gson.JsonObject newsItem) |
public static NewsItem readItem(com.google.gson.JsonObject newsItem)
public int getId()
public String getProject()
public boolean isGlobal()
public boolean isActive()
public NewsType getType()
public ItemData getData()
public boolean isPriority()
public String getRawMessage()
public String getMessage()
public Set<NewsItemAction> getActions()
public String getUrl()
Copyright © 2021 GeyserMC. All rights reserved.