There is also an easy fix for the application name (which currently just says "java") (This is working as of Minecraft 1.16 in June of 2020). You will need to use the Terminal application for this.
Open Terminal (which can be found in /Applications/Utilities/Terminal.app, or by searching "Terminal" in the spotlight search).
Enter cd ~/Library/Application\ Support/minecraft/runtime/jre-x64/jre.bundle/Contents/Home/bin/, which will set the current directory of the Terminal, hence cd. (Be sure to press enter/return after inputting each command)
Then enter mv java Minecraft, which will rename the "java" executable to "Minecraft" (or any name that you like, but you must be consistent between this step and the next one).
Finally, enter ln -s Minecraft java, which will create a symbolic link between the old java executable (which has been renamed) and the place where the java executable used to be. Now when the Minecraft Launcher looks for the java executable, it will be redirected to the Minecraft executable, and the name in the dock will be updated.
If you want to run all of the commands, copy and paste the following into Terminal and press enter/return:
cd ~/Library/Application\ Support/minecraft/runtime/jre-x64/jre.bundle/Contents/Home/bin/;mv java Minecraft;ln -s Minecraft java
There is also an easy fix for the application name (which currently just says "java") (This is working as of Minecraft 1.16 in June of 2020). You will need to use the Terminal application for this.
Open Terminal (which can be found in /Applications/Utilities/Terminal.app, or by searching "Terminal" in the spotlight search).
Enter cd ~/Library/Application\ Support/minecraft/runtime/jre-x64/jre.bundle/Contents/Home/bin/, which will set the current directory of the Terminal, hence cd. (Be sure to press enter/return after inputting each command)
Then enter mv java Minecraft, which will rename the "java" executable to "Minecraft" (or any name that you like, but you must be consistent between this step and the next one).
Finally, enter ln -s Minecraft java, which will create a symbolic link between the old java executable (which has been renamed) and the place where the java executable used to be. Now when the Minecraft Launcher looks for the java executable, it will be redirected to the Minecraft executable, and the name in the dock will be updated.
If you want to run all of the commands, copy and paste the following into Terminal and press enter/return:
cd ~/Library/Application\ Support/minecraft/runtime/jre-x64/jre.bundle/Contents/Home/bin/;mv java Minecraft;ln -s Minecraft java