程序包 net.md_5.bungee.api.chat.hover.content

# 类 Entity

java.lang.Object
net.md_5.bungee.api.chat.hover.content.Content
net.md_5.bungee.api.chat.hover.content.Entity

public class Entity extends Content

- ## 构造器概要

  构造器
  构造器
  说明
  `Entity(String type, @NonNull String id, BaseComponent name)`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `protected boolean`
  `canEqual(Object other)`
  `boolean`
  `equals(Object o)`
  `@NonNull String`
  `getId()`
  Entity UUID in hyphenated hexadecimal format.
  `BaseComponent`
  `getName()`
  Name to display as the entity.
  `String`
  `getType()`
  Namespaced entity ID.
  `int`
  `hashCode()`
  `HoverEvent.Action`
  `requiredAction()`
  Required action for this content type.
  `void`
  `setId(@NonNull String id)`
  Entity UUID in hyphenated hexadecimal format.
  `void`
  `setName(BaseComponent name)`
  Name to display as the entity.
  `void`
  `setType(String type)`
  Namespaced entity ID.
  `String`
  `toString()`

  ### 从类继承的方法 net.md_5.bungee.api.chat.hover.content.Content

  `assertAction`

  ### 从类继承的方法 java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## 构造器详细资料

  - ### Entity

    public Entity(String type, @NonNull @NonNull String id, BaseComponent name)

- ## 方法详细资料

  - ### requiredAction

    public HoverEvent.Action requiredAction()
    从类复制的说明: `Content`
    Required action for this content type.
    指定者:
      `requiredAction` 在类中 `Content`
    返回:
      action

  - ### getType

    public String getType()
    Namespaced entity ID. Will use 'minecraft:pig' if null.

  - ### getId

    @NonNull public @NonNull String getId()
    Entity UUID in hyphenated hexadecimal format. Should be valid UUID. TODO : validate?

  - ### getName

    public BaseComponent getName()
    Name to display as the entity. This is optional and will be hidden if null.

  - ### setType

    public void setType(String type)
    Namespaced entity ID. Will use 'minecraft:pig' if null.

  - ### setId

    public void setId(@NonNull @NonNull String id)
    Entity UUID in hyphenated hexadecimal format. Should be valid UUID. TODO : validate?

  - ### setName

    public void setName(BaseComponent name)
    Name to display as the entity. This is optional and will be hidden if null.

  - ### toString

    public String toString()
    覆盖:
      `toString` 在类中 `Content`

  - ### equals

    public boolean equals(Object o)
    覆盖:
      `equals` 在类中 `Content`

  - ### canEqual

    protected boolean canEqual(Object other)
    覆盖:
      `canEqual` 在类中 `Content`

  - ### hashCode

    public int hashCode()
    覆盖:
      `hashCode` 在类中 `Content`