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.jetbrains.annotations.Range(from=0L, to=2147483647L) intcount()Gets the count.@NotNull HoverEvent.ShowItemcount(@org.jetbrains.annotations.Range(from=0L, to=2147483647L) int count)Sets the count.booleanequals(@Nullable Object other)@NotNull Stream<? extends net.kyori.examination.ExaminableProperty>examinableProperties()inthashCode()@NotNull net.kyori.adventure.key.Keyitem()Gets the item.@NotNull HoverEvent.ShowItemitem(@NotNull net.kyori.adventure.key.Key item)Sets the item.@Nullable BinaryTagHoldernbt()Gets the nbt.@NotNull HoverEvent.ShowItemnbt(@Nullable BinaryTagHolder nbt)Sets the nbt.static @NotNull HoverEvent.ShowItemof(@NotNull net.kyori.adventure.key.Keyed item, @org.jetbrains.annotations.Range(from=0L, to=2147483647L) int count)Creates.static @NotNull HoverEvent.ShowItemof(@NotNull net.kyori.adventure.key.Keyed item, @org.jetbrains.annotations.Range(from=0L, to=2147483647L) int count, @Nullable BinaryTagHolder nbt)Creates.static @NotNull HoverEvent.ShowItemof(@NotNull net.kyori.adventure.key.Key item, @org.jetbrains.annotations.Range(from=0L, to=2147483647L) int count)Creates.static @NotNull HoverEvent.ShowItemof(@NotNull net.kyori.adventure.key.Key item, @org.jetbrains.annotations.Range(from=0L, to=2147483647L) 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
@NotNull public static @NotNull HoverEvent.ShowItem of(@NotNull @NotNull net.kyori.adventure.key.Key item, @org.jetbrains.annotations.Range(from=0L, to=2147483647L) int count)Creates.- Parameters:
item- the itemcount- the count- Returns:
- a
ShowItem - Since:
- 4.0.0
-
of
@NotNull public static @NotNull HoverEvent.ShowItem of(@NotNull @NotNull net.kyori.adventure.key.Keyed item, @org.jetbrains.annotations.Range(from=0L, to=2147483647L) int count)Creates.- Parameters:
item- the itemcount- the count- Returns:
- a
ShowItem - Since:
- 4.6.0
-
of
@NotNull public static @NotNull HoverEvent.ShowItem of(@NotNull @NotNull net.kyori.adventure.key.Key item, @org.jetbrains.annotations.Range(from=0L, to=2147483647L) int count, @Nullable @Nullable BinaryTagHolder nbt)Creates.- Parameters:
item- the itemcount- the countnbt- the nbt- Returns:
- a
ShowItem - Since:
- 4.0.0
-
of
@NotNull public static @NotNull HoverEvent.ShowItem of(@NotNull @NotNull net.kyori.adventure.key.Keyed item, @org.jetbrains.annotations.Range(from=0L, to=2147483647L) int count, @Nullable @Nullable BinaryTagHolder nbt)Creates.- Parameters:
item- the itemcount- the countnbt- the nbt- Returns:
- a
ShowItem - Since:
- 4.6.0
-
item
@NotNull public @NotNull net.kyori.adventure.key.Key item()Gets the item.- Returns:
- the item
- Since:
- 4.0.0
-
item
@NotNull public @NotNull HoverEvent.ShowItem item(@NotNull @NotNull net.kyori.adventure.key.Key item)Sets the item.- Parameters:
item- the item- Returns:
- a
ShowItem - Since:
- 4.0.0
-
count
public @org.jetbrains.annotations.Range(from=0L, to=2147483647L) int count()Gets the count.- Returns:
- the count
- Since:
- 4.0.0
-
count
@NotNull public @NotNull HoverEvent.ShowItem count(@org.jetbrains.annotations.Range(from=0L, to=2147483647L) 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
@NotNull public @NotNull Stream<? extends net.kyori.examination.ExaminableProperty> examinableProperties()- Specified by:
examinablePropertiesin interfacenet.kyori.examination.Examinable
-
toString
-