Interface MinecraftAccessor


public interface MinecraftAccessor
Provides the means to access protected members of the Minecraft client.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setPlayerSocialManager(net.minecraft.client.gui.screens.social.PlayerSocialManager playerSocialManager)
    Sets the Minecraft social interactions manager.
    void
    setProfileFuture(CompletableFuture<com.mojang.authlib.yggdrasil.ProfileResult> future)
    Sets the game profile.
    void
    setProfileKeyPairManager(net.minecraft.client.multiplayer.ProfileKeyPairManager profileKeyPairManager)
    Sets the Minecraft profile keys.
    void
    setRealmsDataFetcher(com.mojang.realmsclient.gui.RealmsDataFetcher realmsDataFetcher)
    Sets the Minecraft Realms periodic checkers.
    void
    setReportingContext(net.minecraft.client.multiplayer.chat.report.ReportingContext reportContext)
    Sets the Minecraft abuse report context.
    void
    setUser(net.minecraft.client.User user)
    Sets the Minecraft session.
    void
    setUserApiService(com.mojang.authlib.minecraft.UserApiService userApiService)
    Sets the Minecraft user API service.
  • Method Details

    • setUser

      void setUser(net.minecraft.client.User user)
      Sets the Minecraft session.
      Parameters:
      user - new Minecraft session
    • setProfileFuture

      void setProfileFuture(CompletableFuture<com.mojang.authlib.yggdrasil.ProfileResult> future)
      Sets the game profile.
      Parameters:
      future - the future of the new game profile
    • setUserApiService

      void setUserApiService(com.mojang.authlib.minecraft.UserApiService userApiService)
      Sets the Minecraft user API service.
      Parameters:
      userApiService - new Minecraft user API service
    • setPlayerSocialManager

      void setPlayerSocialManager(net.minecraft.client.gui.screens.social.PlayerSocialManager playerSocialManager)
      Sets the Minecraft social interactions manager.
      Parameters:
      playerSocialManager - new Minecraft social interactions manager
    • setProfileKeyPairManager

      void setProfileKeyPairManager(net.minecraft.client.multiplayer.ProfileKeyPairManager profileKeyPairManager)
      Sets the Minecraft profile keys.
      Parameters:
      profileKeyPairManager - new Minecraft profile keys
    • setReportingContext

      void setReportingContext(net.minecraft.client.multiplayer.chat.report.ReportingContext reportContext)
      Sets the Minecraft abuse report context.
      Parameters:
      reportContext - new Minecraft abuse report context
    • setRealmsDataFetcher

      void setRealmsDataFetcher(com.mojang.realmsclient.gui.RealmsDataFetcher realmsDataFetcher)
      Sets the Minecraft Realms periodic checkers.
      Parameters:
      realmsDataFetcher - new Minecraft Realms periodic checkers