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

# 类 Item

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

public class Item extends Content

- ## 构造器概要

  构造器
  构造器
  说明
  `Item(String id, int count, ItemTag tag)`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `protected boolean`
  `canEqual(Object other)`
  `boolean`
  `equals(Object o)`
  `int`
  `getCount()`
  Optional.
  `String`
  `getId()`
  Namespaced item ID.
  `ItemTag`
  `getTag()`
  Optional.
  `int`
  `hashCode()`
  `HoverEvent.Action`
  `requiredAction()`
  Required action for this content type.
  `void`
  `setCount(int count)`
  Optional.
  `void`
  `setId(String id)`
  Namespaced item ID.
  `void`
  `setTag(ItemTag tag)`
  Optional.
  `String`
  `toString()`

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

  `assertAction`

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

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

- ## 构造器详细资料

  - ### Item

    public Item(String id, int count, ItemTag tag)

- ## 方法详细资料

  - ### requiredAction

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

  - ### getId

    public String getId()
    Namespaced item ID. Will use 'minecraft:air' if null.

  - ### getCount

    public int getCount()
    Optional. Size of the item stack.

  - ### getTag

    public ItemTag getTag()
    Optional. Item tag.

  - ### setId

    public void setId(String id)
    Namespaced item ID. Will use 'minecraft:air' if null.

  - ### setCount

    public void setCount(int count)
    Optional. Size of the item stack.

  - ### setTag

    public void setTag(ItemTag tag)
    Optional. Item tag.

  - ### 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`