Package net.kyori.adventure.text.event
Class HoverEvent.ShowItem
java.lang.Object
net.kyori.adventure.text.event.HoverEvent.ShowItem
- All Implemented Interfaces:
- net.kyori.examination.Examinable
- Enclosing class:
- HoverEvent<V>
public static final class HoverEvent.ShowItem extends Object implements net.kyori.examination.Examinable
The value of a 
show_item hover event.- Since:
- 4.0.0
- 
Method SummaryModifier and Type Method Description @org.checkerframework.checker.index.qual.NonNegative intcount()Gets the count.@NonNull HoverEvent.ShowItemcount(@org.checkerframework.checker.index.qual.NonNegative int count)Sets the count.booleanequals(@Nullable Object other)@NonNull Stream<? extends net.kyori.examination.ExaminableProperty>examinableProperties()inthashCode()@NonNull Keyitem()Gets the item.@NonNull HoverEvent.ShowItemitem(@NonNull Key item)Sets the item.@Nullable BinaryTagHoldernbt()Gets the nbt.@NonNull HoverEvent.ShowItemnbt(@Nullable BinaryTagHolder nbt)Sets the nbt.static @NonNull HoverEvent.ShowItemof(@NonNull Key item, @org.checkerframework.checker.index.qual.NonNegative int count)Creates.static @NonNull HoverEvent.ShowItemof(@NonNull Key item, @org.checkerframework.checker.index.qual.NonNegative int count, @Nullable BinaryTagHolder nbt)Creates.StringtoString()
- 
Method Details- 
ofpublic static @NonNull HoverEvent.ShowItem of(@NonNull Key item, @org.checkerframework.checker.index.qual.NonNegative int count)Creates.- Parameters:
- item- the item
- count- the count
- Returns:
- a ShowItem
- Since:
- 4.0.0
 
- 
ofpublic static @NonNull HoverEvent.ShowItem of(@NonNull Key item, @org.checkerframework.checker.index.qual.NonNegative int count, @Nullable BinaryTagHolder nbt)Creates.- Parameters:
- item- the item
- count- the count
- nbt- the nbt
- Returns:
- a ShowItem
- Since:
- 4.0.0
 
- 
itemGets the item.- Returns:
- the item
- Since:
- 4.0.0
 
- 
itemSets the item.- Parameters:
- item- the item
- Returns:
- a ShowItem
- Since:
- 4.0.0
 
- 
countpublic @org.checkerframework.checker.index.qual.NonNegative int count()Gets the count.- Returns:
- the count
- Since:
- 4.0.0
 
- 
countpublic @NonNull HoverEvent.ShowItem count(@org.checkerframework.checker.index.qual.NonNegative int count)Sets the count.- Parameters:
- count- the count
- Returns:
- a ShowItem
- Since:
- 4.0.0
 
- 
nbtGets the nbt.- Returns:
- the nbt
- Since:
- 4.0.0
 
- 
nbtSets the nbt.- Parameters:
- nbt- the nbt
- Returns:
- a ShowItem
- Since:
- 4.0.0
 
- 
equals
- 
hashCodepublic int hashCode()
- 
examinableProperties- Specified by:
- examinablePropertiesin interface- net.kyori.examination.Examinable
 
- 
toString
 
-