Class DisplayOverride

java.lang.Object
com.craftmend.openaudiomc.api.voice.DisplayOverride

public class DisplayOverride extends Object
This class is used to override the display name of a player in the voice chat system. This is useful for when you want to display a different name than the player's actual name, to add compatibility for bedrock players or display game ranks.
Since:
6.10.2
  • Constructor Details

    • DisplayOverride

      public DisplayOverride()
  • Method Details

    • getName

      @Nullable public @Nullable String getName()
      The name that should be displayed in the voice chat system. MUST be 32 characters or less.
    • getDisplayUuid

      @Nullable public @Nullable UUID getDisplayUuid()
      The new UUID that should be used to obtain skin data.
    • setName

      public void setName(@Nullable @Nullable String name)
      The name that should be displayed in the voice chat system. MUST be 32 characters or less.
    • setDisplayUuid

      public void setDisplayUuid(@Nullable @Nullable UUID displayUuid)
      The new UUID that should be used to obtain skin data.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object