Class TabListCache
java.lang.Object
com.zenith.cache.data.tab.TabListCache
- All Implemented Interfaces:
CachedData
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected @NonNull net.kyori.adventure.text.Componentprotected @NonNull net.kyori.adventure.text.Componentprotected longprotected final Map<UUID, PlayerListEntry> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(@NonNull PlayerListEntry entry) getFromName(String username) voidgetPackets(@NonNull Consumer<Packet> consumer, @NonNull TcpSession session) remove(@NonNull PlayerListEntry entry) voidreset(CacheResetType type)
-
Field Details
-
tablist
-
header
protected @NonNull net.kyori.adventure.text.Component header -
lastUpdate
protected long lastUpdate
-
-
Constructor Details
-
TabListCache
public TabListCache()
-
-
Method Details
-
getPackets
- Specified by:
getPacketsin interfaceCachedData
-
reset
- Specified by:
resetin interfaceCachedData
-
getSendingMessage
- Specified by:
getSendingMessagein interfaceCachedData
-
add
-
remove
-
remove
-
get
-
getFromName
-
getEntries
-