Class FaviconAdapter
java.lang.Object
me.remigio07.chatplugin.api.common.util.adapter.motd.FaviconAdapter
Environment indipendent (Bukkit, Sponge, BungeeCord and Velocity) favicon adapter.
-
Constructor Summary
ConstructorDescriptionFaviconAdapter
(Object favicon) Constructs a favicon adapter that accepts one of the following specified as input:Favicon
for Sponge environmentsFavicon
for BungeeCord environmentsFavicon
for Velocity environments -
Method Summary
Modifier and TypeMethodDescriptionnet.md_5.bungee.api.Favicon
Gets the favicon adapted for BungeeCord environments.org.spongepowered.api.network.status.Favicon
Gets the favicon adapted for Sponge environments.com.velocitypowered.api.util.Favicon
Gets the favicon adapted for Velocity environments.
-
Constructor Details
-
FaviconAdapter
Constructs a favicon adapter that accepts one of the following specified as input:Favicon
for Sponge environmentsFavicon
for BungeeCord environmentsFavicon
for Velocity environments
- Parameters:
favicon
- Favicon object
-
-
Method Details
-
spongeValue
public org.spongepowered.api.network.status.Favicon spongeValue()Gets the favicon adapted for Sponge environments.- Returns:
- Sponge-adapted favicon
- Throws:
UnsupportedOperationException
- If !Environment.isSponge()
-
bungeeCordValue
public net.md_5.bungee.api.Favicon bungeeCordValue()Gets the favicon adapted for BungeeCord environments.- Returns:
- BungeeCord-adapted favicon
- Throws:
UnsupportedOperationException
- If !Environment.isBungeeCord()
-
velocityValue
public com.velocitypowered.api.util.Favicon velocityValue()Gets the favicon adapted for Velocity environments.- Returns:
- Velocity-adapted favicon
- Throws:
UnsupportedOperationException
- If !Environment.isVelocity()
-