Interface IPlatformHelper
- All Known Implementing Classes:
FabricPlatformHelper
public interface IPlatformHelper
-
Method Summary
Modifier and TypeMethodDescriptionbooleanGet configured value for addWhitelistPlayersGet configured friendsnet.minecraft.network.syncher.EntityDataSerializer<Optional<com.mojang.authlib.GameProfile>>Gets the Game Profile SerializerGet configured playerMobsNameLinksnet.minecraft.server.MinecraftServerGet the server instancebooleanGet configured value for playerMobsCompat
-
Method Details
-
getGameProfileSerializer
net.minecraft.network.syncher.EntityDataSerializer<Optional<com.mojang.authlib.GameProfile>> getGameProfileSerializer()Gets the Game Profile Serializer- Returns:
- The Game Profile Serializer
-
getFriends
Get configured friends- Returns:
- A list of users who can be chosen when it spawns a distant friend
-
addWhitelistPlayers
boolean addWhitelistPlayers()Get configured value for addWhitelistPlayers- Returns:
- Add the players from the whitelist to the Friends list
-
playerMobsCompat
boolean playerMobsCompat()Get configured value for playerMobsCompat- Returns:
- Add players from a Player Mobs whitelist to the Friends list
-
getPlayerMobsNameLinks
Get configured playerMobsNameLinks- Returns:
- The player mobs Name Links
-
getServer
net.minecraft.server.MinecraftServer getServer()Get the server instance- Returns:
- The server instance
-