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 Summary
Modifier 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 net.kyori.adventure.key.Keyitem()Gets the item.@NonNull HoverEvent.ShowItemitem(@NonNull net.kyori.adventure.key.Key item)Sets the item.@Nullable BinaryTagHoldernbt()Gets the nbt.@NonNull HoverEvent.ShowItemnbt(@Nullable BinaryTagHolder nbt)Sets the nbt.static @NonNull HoverEvent.ShowItemof(@NonNull net.kyori.adventure.key.Key item, @org.checkerframework.checker.index.qual.NonNegative int count)Creates.static @NonNull HoverEvent.ShowItemof(@NonNull net.kyori.adventure.key.Key item, @org.checkerframework.checker.index.qual.NonNegative int count, @Nullable BinaryTagHolder nbt)Creates.StringtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.kyori.examination.Examinable
examinableName, examine 
- 
Method Details
- 
of
public static @NonNull HoverEvent.ShowItem of(@NonNull net.kyori.adventure.key.Key item, @org.checkerframework.checker.index.qual.NonNegative int count)Creates.- Parameters:
 item- the itemcount- the count- Returns:
 - a 
ShowItem - Since:
 - 4.0.0
 
 - 
of
public static @NonNull HoverEvent.ShowItem of(@NonNull net.kyori.adventure.key.Key item, @org.checkerframework.checker.index.qual.NonNegative int count, @Nullable BinaryTagHolder nbt)Creates.- Parameters:
 item- the itemcount- the countnbt- the nbt- Returns:
 - a 
ShowItem - Since:
 - 4.0.0
 
 - 
item
public @NonNull net.kyori.adventure.key.Key item()Gets the item.- Returns:
 - the item
 - Since:
 - 4.0.0
 
 - 
item
Sets the item.- Parameters:
 item- the item- Returns:
 - a 
ShowItem - Since:
 - 4.0.0
 
 - 
count
public @org.checkerframework.checker.index.qual.NonNegative int count()Gets the count.- Returns:
 - the count
 - Since:
 - 4.0.0
 
 - 
count
public @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
 
 - 
nbt
Gets the nbt.- Returns:
 - the nbt
 - Since:
 - 4.0.0
 
 - 
nbt
Sets the nbt.- Parameters:
 nbt- the nbt- Returns:
 - a 
ShowItem - Since:
 - 4.0.0
 
 - 
equals
 - 
hashCode
public int hashCode() - 
examinableProperties
- Specified by:
 examinablePropertiesin interfacenet.kyori.examination.Examinable
 - 
toString
 
 -