How can I get the player that opens a crafting table in a Fabric mod?
My current code to get inventory title/type
@Mixin(HandledScreens.class)
public class FastCraftMixin {
@Inject(at = @At("HEAD"), method = "open")
private static <T extends ScreenHandler> void open(ScreenHandlerType<T> type, MinecraftClient client, int id, Text title, CallbackInfo ci) {
System.out.println(title.toString());
}
}