public class Item extends Content
Constructor and Description |
---|
Item(String id,
int count,
ItemTag tag) |
Modifier and Type | Method and Description |
---|---|
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() |
assertAction
public HoverEvent.Action requiredAction()
Content
requiredAction
in class Content
public String getId()
public int getCount()
public ItemTag getTag()
public void setId(String id)
public void setCount(int count)
public void setTag(ItemTag tag)
Copyright © 2012–2020 SpigotMC. All rights reserved.