Class FabricPlatformHelper

java.lang.Object
com.mrbysco.distantfriends.platform.FabricPlatformHelper
All Implemented Interfaces:
IPlatformHelper

public class FabricPlatformHelper extends Object implements IPlatformHelper
  • Constructor Details

    • FabricPlatformHelper

      public FabricPlatformHelper()
  • Method Details

    • getGameProfileSerializer

      public net.minecraft.network.syncher.EntityDataSerializer<Optional<com.mojang.authlib.GameProfile>> getGameProfileSerializer()
      Description copied from interface: IPlatformHelper
      Gets the Game Profile Serializer
      Specified by:
      getGameProfileSerializer in interface IPlatformHelper
      Returns:
      The Game Profile Serializer
    • getFriends

      public List<? extends String> getFriends()
      Description copied from interface: IPlatformHelper
      Get configured friends
      Specified by:
      getFriends in interface IPlatformHelper
      Returns:
      A list of users who can be chosen when it spawns a distant friend
    • addWhitelistPlayers

      public boolean addWhitelistPlayers()
      Description copied from interface: IPlatformHelper
      Get configured value for addWhitelistPlayers
      Specified by:
      addWhitelistPlayers in interface IPlatformHelper
      Returns:
      Add the players from the whitelist to the Friends list
    • playerMobsCompat

      public boolean playerMobsCompat()
      Description copied from interface: IPlatformHelper
      Get configured value for playerMobsCompat
      Specified by:
      playerMobsCompat in interface IPlatformHelper
      Returns:
      Add players from a Player Mobs whitelist to the Friends list
    • getPlayerMobsNameLinks

      public List<? extends String> getPlayerMobsNameLinks()
      Description copied from interface: IPlatformHelper
      Get configured playerMobsNameLinks
      Specified by:
      getPlayerMobsNameLinks in interface IPlatformHelper
      Returns:
      The player mobs Name Links
    • getServer

      public net.minecraft.server.MinecraftServer getServer()
      Description copied from interface: IPlatformHelper
      Get the server instance
      Specified by:
      getServer in interface IPlatformHelper
      Returns:
      The server instance