Class MinecraftServerMixin

java.lang.Object
net.thomilist.dimensionalinventories.gametest.mixin.MinecraftServerMixin

public class MinecraftServerMixin extends Object
  • Constructor Details

    • MinecraftServerMixin

      public MinecraftServerMixin()
  • Method Details

    • getUserCache

      public void getUserCache(org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<net.minecraft.util.UserCache> cir)
      Gets the user cache of this server, with special cases for certain game tests.

      For TestServer instances, MinecraftServer.getUserCache() returns null. However, for game tests that depend on the user cache being present without caring about the actual cache contents, this replaces the return value with a DummyUserCache instance.

      Parameters:
      cir - The callback info returnable used to override the return value