Class MinecraftServerMixin
java.lang.Object
net.thomilist.dimensionalinventories.gametest.mixin.MinecraftServerMixin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetUserCache(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.
-
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
TestServerinstances,MinecraftServer.getUserCache()returnsnull. 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 aDummyUserCacheinstance.- Parameters:
cir- The callback info returnable used to override the return value
-