Uses of Record Class
net.minecraft.server.players.NameAndId
Packages that use NameAndId
Package
Description
-
Uses of NameAndId in net.minecraft.client.server
Methods in net.minecraft.client.server with parameters of type NameAndIdModifier and TypeMethodDescriptionIntegratedPlayerList.canPlayerLogin(SocketAddress p_120007_, NameAndId p_434311_) booleanIntegratedServer.isSingleplayerOwner(NameAndId p_433537_) -
Uses of NameAndId in net.minecraft.commands.arguments
Methods in net.minecraft.commands.arguments that return types with arguments of type NameAndIdModifier and TypeMethodDescriptionstatic Collection<NameAndId> GameProfileArgument.getGameProfiles(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, String pName) GameProfileArgument.Result.getNames(CommandSourceStack pSource) GameProfileArgument.SelectorResult.getNames(CommandSourceStack p_94607_) -
Uses of NameAndId in net.minecraft.gametest.framework
Fields in net.minecraft.gametest.framework with type parameters of type NameAndIdMethods in net.minecraft.gametest.framework that return types with arguments of type NameAndIdModifier and TypeMethodDescriptionMethods in net.minecraft.gametest.framework with parameters of type NameAndIdModifier and TypeMethodDescriptionvoidbooleanGameTestServer.isSingleplayerOwner(NameAndId p_436045_) -
Uses of NameAndId in net.minecraft.network.protocol.status
Fields in net.minecraft.network.protocol.status with type parameters of type NameAndIdModifier and TypeFieldDescriptionServerStatus.Players.sampleThe field for thesamplerecord component.Methods in net.minecraft.network.protocol.status that return types with arguments of type NameAndIdModifier and TypeMethodDescriptionServerStatus.Players.sample()Returns the value of thesamplerecord component.Constructor parameters in net.minecraft.network.protocol.status with type arguments of type NameAndId -
Uses of NameAndId in net.minecraft.server
Fields in net.minecraft.server declared as NameAndIdMethods in net.minecraft.server with parameters of type NameAndIdModifier and TypeMethodDescriptionintMinecraftServer.getProfilePermissions(NameAndId pUser) abstract booleanMinecraftServer.isSingleplayerOwner(NameAndId pPlayer) -
Uses of NameAndId in net.minecraft.server.commands
Method parameters in net.minecraft.server.commands with type arguments of type NameAndIdModifier and TypeMethodDescriptionprivate static intWhitelistCommand.addPlayers(CommandSourceStack pSource, Collection<NameAndId> pPlayers) private static intBanPlayerCommands.banPlayers(CommandSourceStack pSource, Collection<NameAndId> pGameProfiles, Component pReason) private static intDeOpCommands.deopPlayers(CommandSourceStack pSource, Collection<NameAndId> pPlayers) private static intOpCommand.opPlayers(CommandSourceStack pSource, Collection<NameAndId> pGameProfiles) private static intPardonCommand.pardonPlayers(CommandSourceStack pSource, Collection<NameAndId> pGameProfiles) private static intWhitelistCommand.removePlayers(CommandSourceStack pSource, Collection<NameAndId> pPlayers) -
Uses of NameAndId in net.minecraft.server.dedicated
Methods in net.minecraft.server.dedicated with parameters of type NameAndIdModifier and TypeMethodDescriptionbooleanDedicatedPlayerList.canBypassPlayerLimit(NameAndId p_434249_) booleanDedicatedServer.isSingleplayerOwner(NameAndId p_433969_) booleanDedicatedPlayerList.isWhiteListed(NameAndId p_433903_) -
Uses of NameAndId in net.minecraft.server.jsonrpc
Methods in net.minecraft.server.jsonrpc with parameters of type NameAndIdModifier and TypeMethodDescriptionvoidJsonRpcNotificationService.playerAddedToAllowlist(NameAndId p_443066_) voidJsonRpcNotificationService.playerRemovedFromAllowlist(NameAndId p_443379_) voidJsonRpcNotificationService.playerUnbanned(NameAndId p_443351_) -
Uses of NameAndId in net.minecraft.server.jsonrpc.api
Methods in net.minecraft.server.jsonrpc.api with parameters of type NameAndId -
Uses of NameAndId in net.minecraft.server.jsonrpc.internalapi
Methods in net.minecraft.server.jsonrpc.internalapi that return types with arguments of type NameAndIdModifier and TypeMethodDescriptionMinecraftPlayerListService.fetchUserById(UUID pId) MinecraftPlayerListServiceImpl.fetchUserById(UUID p_449062_) MinecraftPlayerListService.fetchUserByName(String pName) MinecraftPlayerListServiceImpl.fetchUserByName(String p_449968_) MinecraftPlayerListService.getCachedUserById(UUID pId) MinecraftPlayerListServiceImpl.getCachedUserById(UUID p_449602_) default CompletableFuture<Optional<NameAndId>> Methods in net.minecraft.server.jsonrpc.internalapi with parameters of type NameAndIdModifier and TypeMethodDescriptionvoidMinecraftOperatorListService.deop(NameAndId pNameAndId, ClientInfo pClientInfo) voidMinecraftOperatorListServiceImpl.deop(NameAndId p_449033_, ClientInfo p_449483_) voidMinecraftOperatorListService.op(NameAndId pNameAndId, Optional<Integer> pPermissionLevel, Optional<Boolean> pCanBypassPlayerLimit, ClientInfo pClientInfo) voidMinecraftOperatorListService.op(NameAndId pNameAndId, ClientInfo pClientInfo) voidMinecraftOperatorListServiceImpl.op(NameAndId p_449132_, Optional<Integer> p_449016_, Optional<Boolean> p_449888_, ClientInfo p_449789_) voidMinecraftOperatorListServiceImpl.op(NameAndId p_449986_, ClientInfo p_449345_) voidMinecraftAllowListService.remove(NameAndId pNameAndId, ClientInfo pClientInfo) voidMinecraftAllowListServiceImpl.remove(NameAndId p_449664_, ClientInfo p_449053_) voidMinecraftBanListService.removeUserBan(NameAndId pNameAndId, ClientInfo pClientInfo) voidMinecraftBanListServiceImpl.removeUserBan(NameAndId p_449835_, ClientInfo p_449514_) -
Uses of NameAndId in net.minecraft.server.jsonrpc.methods
Fields in net.minecraft.server.jsonrpc.methods declared as NameAndIdModifier and TypeFieldDescriptionprivate final NameAndIdBanlistService.UserBan.playerThe field for theplayerrecord component.private final NameAndIdOperatorService.Op.userThe field for theuserrecord component.Methods in net.minecraft.server.jsonrpc.methods that return NameAndIdModifier and TypeMethodDescriptionBanlistService.UserBan.player()Returns the value of theplayerrecord component.OperatorService.Op.user()Returns the value of theuserrecord component.Methods in net.minecraft.server.jsonrpc.methods with parameters of type NameAndIdConstructors in net.minecraft.server.jsonrpc.methods with parameters of type NameAndIdModifierConstructorDescription(package private)Creates an instance of aOprecord class.(package private)Creates an instance of aUserBanrecord class. -
Uses of NameAndId in net.minecraft.server.network.config
Fields in net.minecraft.server.network.config declared as NameAndIdConstructors in net.minecraft.server.network.config with parameters of type NameAndId -
Uses of NameAndId in net.minecraft.server.notifications
Methods in net.minecraft.server.notifications with parameters of type NameAndIdModifier and TypeMethodDescriptionvoidEmptyNotificationService.playerAddedToAllowlist(NameAndId p_443022_) voidNotificationManager.playerAddedToAllowlist(NameAndId p_442558_) voidNotificationService.playerAddedToAllowlist(NameAndId pPlayer) voidEmptyNotificationService.playerRemovedFromAllowlist(NameAndId p_443591_) voidNotificationManager.playerRemovedFromAllowlist(NameAndId p_443493_) voidNotificationService.playerRemovedFromAllowlist(NameAndId pPlayer) voidEmptyNotificationService.playerUnbanned(NameAndId p_443003_) voidNotificationManager.playerUnbanned(NameAndId p_442721_) voidNotificationService.playerUnbanned(NameAndId pPlayer) -
Uses of NameAndId in net.minecraft.server.players
Fields in net.minecraft.server.players declared as NameAndIdModifier and TypeFieldDescriptionprivate final NameAndIdCachedUserNameToIdResolver.GameProfileInfo.nameAndIdFields in net.minecraft.server.players with type parameters of type NameAndIdModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<NameAndId> NameAndId.CODECMethods in net.minecraft.server.players that return NameAndIdModifier and TypeMethodDescriptionstatic NameAndIdNameAndId.createOffline(String pUsername) static NameAndIdNameAndId.fromJson(JsonObject pJson) CachedUserNameToIdResolver.GameProfileInfo.nameAndId()Methods in net.minecraft.server.players that return types with arguments of type NameAndIdModifier and TypeMethodDescriptionprotected StoredUserEntry<NameAndId> ServerOpList.createEntry(JsonObject pEntryData) protected StoredUserEntry<NameAndId> UserBanList.createEntry(JsonObject pEntryData) protected StoredUserEntry<NameAndId> UserWhiteList.createEntry(JsonObject pEntryData) CachedUserNameToIdResolver.createUnknownProfile(String pUsername) CachedUserNameToIdResolver.lookupGameProfile(com.mojang.authlib.GameProfileRepository pProfileRepository, String pUsername) Methods in net.minecraft.server.players with parameters of type NameAndIdModifier and TypeMethodDescriptionvoidvoidCachedUserNameToIdResolver.addInternal(NameAndId pNameAndId) booleanPlayerList.canBypassPlayerLimit(NameAndId pNameAndId) booleanServerOpList.canBypassPlayerLimit(NameAndId pNameAndId) PlayerList.canPlayerLogin(SocketAddress pAddress, NameAndId pNameAndId) voidprotected StringServerOpList.getKeyForUser(NameAndId p_433823_) protected StringUserBanList.getKeyForUser(NameAndId p_434532_) protected StringUserWhiteList.getKeyForUser(NameAndId p_435738_) booleanbooleanbooleanPlayerList.isWhiteListed(NameAndId pNameAndId) booleanUserWhiteList.isWhiteListed(NameAndId pUser) PlayerList.loadPlayerData(NameAndId pNameAndId) voidvoidPlayerList.op(NameAndId pNameAndId, Optional<Integer> pPermissionLevel, Optional<Boolean> pCanBypassPlayerLimit) booleanbooleanbooleanConstructors in net.minecraft.server.players with parameters of type NameAndIdModifierConstructorDescription(package private)GameProfileInfo(NameAndId pNameAndId, Date pExpirationDate) ServerOpListEntry(NameAndId pUser, int pLevel, boolean pBypassesPlayerLimit) UserBanListEntry(NameAndId pUser) UserWhiteListEntry(NameAndId pUser) -
Uses of NameAndId in net.minecraft.world.entity.player
Methods in net.minecraft.world.entity.player that return NameAndId -
Uses of NameAndId in net.minecraft.world.level.storage
Methods in net.minecraft.world.level.storage with parameters of type NameAndId -
Uses of NameAndId in net.neoforged.neoforge.event
Methods in net.neoforged.neoforge.event with parameters of type NameAndIdModifier and TypeMethodDescriptionstatic booleanEventHooks.onPermissionChanged(NameAndId nameAndId, int newLevel, PlayerList playerList)