Class LabyModUtils


  • public class LabyModUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean canSpectate​(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)  
      static LabyModConfiguration getConfiguration()  
      static byte[] getDiscordRPCGameInfoUpdateMessageContents​(de.dytanic.cloudnet.ext.bridge.player.ICloudPlayer cloudPlayer, de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)  
      static LabyModPlayerOptions getLabyModOptions​(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 boolean isExcluded​(java.util.Collection<java.lang.String> excludedGroups, java.lang.String[] serviceGroups)  
      static void setLabyModOptions​(de.dytanic.cloudnet.ext.bridge.player.ICloudPlayer cloudPlayer, LabyModPlayerOptions options)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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)