Class NeoForgePlatformHelper
java.lang.Object
com.mrbysco.distantfriends.platform.NeoForgePlatformHelper
- All Implemented Interfaces:
IPlatformHelper
-
Constructor Summary
Constructors -
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
-
Constructor Details
-
NeoForgePlatformHelper
public NeoForgePlatformHelper()
-
-
Method Details
-
getGameProfileSerializer
public net.minecraft.network.syncher.EntityDataSerializer<Optional<com.mojang.authlib.GameProfile>> getGameProfileSerializer()Description copied from interface:IPlatformHelperGets the Game Profile Serializer- Specified by:
getGameProfileSerializerin interfaceIPlatformHelper- Returns:
- The Game Profile Serializer
-
getFriends
Description copied from interface:IPlatformHelperGet configured friends- Specified by:
getFriendsin interfaceIPlatformHelper- Returns:
- A list of users who can be chosen when it spawns a distant friend
-
addWhitelistPlayers
public boolean addWhitelistPlayers()Description copied from interface:IPlatformHelperGet configured value for addWhitelistPlayers- Specified by:
addWhitelistPlayersin interfaceIPlatformHelper- Returns:
- Add the players from the whitelist to the Friends list
-
playerMobsCompat
public boolean playerMobsCompat()Description copied from interface:IPlatformHelperGet configured value for playerMobsCompat- Specified by:
playerMobsCompatin interfaceIPlatformHelper- Returns:
- Add players from a Player Mobs whitelist to the Friends list
-
getPlayerMobsNameLinks
Description copied from interface:IPlatformHelperGet configured playerMobsNameLinks- Specified by:
getPlayerMobsNameLinksin interfaceIPlatformHelper- Returns:
- The player mobs Name Links
-
getServer
public net.minecraft.server.MinecraftServer getServer()Description copied from interface:IPlatformHelperGet the server instance- Specified by:
getServerin interfaceIPlatformHelper- Returns:
- The server instance
-