Class LabyModUtils
- java.lang.Object
-
- eu.cloudnetservice.cloudnet.ext.labymod.LabyModUtils
-
public class LabyModUtils extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancanSpectate(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)static LabyModConfigurationgetConfiguration()static byte[]getDiscordRPCGameInfoUpdateMessageContents(de.dytanic.cloudnet.ext.bridge.player.ICloudPlayer cloudPlayer, de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)static LabyModPlayerOptionsgetLabyModOptions(de.dytanic.cloudnet.ext.bridge.player.ICloudPlayer cloudPlayer)static @NotNull de.dytanic.cloudnet.common.concurrent.ITask<de.dytanic.cloudnet.ext.bridge.player.ICloudPlayer>getPlayerByJoinSecret(java.util.UUID joinSecret)static @NotNull de.dytanic.cloudnet.common.concurrent.ITask<de.dytanic.cloudnet.ext.bridge.player.ICloudPlayer>getPlayerBySpectateSecret(java.util.UUID spectateSecret)static byte[]getShowGameModeMessageContents(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)static booleanisExcluded(java.util.Collection<java.lang.String> excludedGroups, java.lang.String[] serviceGroups)static voidsetLabyModOptions(de.dytanic.cloudnet.ext.bridge.player.ICloudPlayer cloudPlayer, LabyModPlayerOptions options)
-
-
-
Method Detail
-
getConfiguration
public static LabyModConfiguration getConfiguration()
-
setLabyModOptions
public static void setLabyModOptions(de.dytanic.cloudnet.ext.bridge.player.ICloudPlayer cloudPlayer, LabyModPlayerOptions options)
-
getLabyModOptions
public static LabyModPlayerOptions getLabyModOptions(de.dytanic.cloudnet.ext.bridge.player.ICloudPlayer cloudPlayer)
-
getPlayerByJoinSecret
@NotNull public static @NotNull de.dytanic.cloudnet.common.concurrent.ITask<de.dytanic.cloudnet.ext.bridge.player.ICloudPlayer> getPlayerByJoinSecret(java.util.UUID joinSecret)
-
getPlayerBySpectateSecret
@NotNull public static @NotNull de.dytanic.cloudnet.common.concurrent.ITask<de.dytanic.cloudnet.ext.bridge.player.ICloudPlayer> getPlayerBySpectateSecret(java.util.UUID spectateSecret)
-
getShowGameModeMessageContents
public static byte[] getShowGameModeMessageContents(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
-
canSpectate
public static boolean canSpectate(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
-
getDiscordRPCGameInfoUpdateMessageContents
public static byte[] getDiscordRPCGameInfoUpdateMessageContents(de.dytanic.cloudnet.ext.bridge.player.ICloudPlayer cloudPlayer, de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
-
isExcluded
public static boolean isExcluded(java.util.Collection<java.lang.String> excludedGroups, java.lang.String[] serviceGroups)
-
-