Class PlayerObject

java.lang.Object
net.md_5.bungee.api.chat.objects.PlayerObject
All Implemented Interfaces:
ChatObject

public final class PlayerObject extends Object implements ChatObject
  • Constructor Details

    • PlayerObject

      public PlayerObject(@NonNull @NonNull String name)
    • PlayerObject

      public PlayerObject(@NonNull @NonNull UUID uuid)
    • PlayerObject

      public PlayerObject(@NonNull @NonNull Property[] properties)
    • PlayerObject

      public PlayerObject(@NonNull @NonNull Profile profile, Boolean hat)
      Creates a new PlayerObject instance.
      Parameters:
      profile - The profile of the player.
      hat - If true, a hat layer will be rendered on the head. (default: true)
  • Method Details

    • getProfile

      @NonNull public @NonNull Profile getProfile()
      The profile of the player.
    • getHat

      public Boolean getHat()
      If true, a hat layer will be rendered on the head. (default: true)
    • setProfile

      public void setProfile(@NonNull @NonNull Profile profile)
      The profile of the player.
    • setHat

      public void setHat(Boolean hat)
      If true, a hat layer will be rendered on the head. (default: true)
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object