setCustomNameVisible

public abstract void setCustomNameVisible(boolean flag)

Sets whether or not to display the mob's custom name client side. The name will be displayed above the mob similarly to getClassById player.

This value has no effect on players, they will always display their name.

Parameters

flag

custom name or not