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 java.lang.Object implements net.kyori.examination.ExaminableThe value of ashow_itemhover event.- Since:
- 4.0.0
 
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 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 java.lang.Object other)@NotNull java.util.stream.Stream<? extends net.kyori.examination.ExaminableProperty>examinableProperties()inthashCode()@NotNull Keyitem()Gets the item.@NotNull HoverEvent.ShowItemitem(@NotNull Key item)Sets the item.@Nullable BinaryTagHoldernbt()Gets the nbt.@NotNull HoverEvent.ShowItemnbt(@Nullable BinaryTagHolder nbt)Sets the nbt.static @NotNull HoverEvent.ShowItemof(@NotNull Keyed item, @org.jetbrains.annotations.Range(from=0L, to=2147483647L) int count)Deprecated.for removal since 4.14.0, useshowItem(Keyed, int)instead.static @NotNull HoverEvent.ShowItemof(@NotNull Keyed item, @org.jetbrains.annotations.Range(from=0L, to=2147483647L) int count, @Nullable BinaryTagHolder nbt)Deprecated.for removal since 4.14.0, useshowItem(Keyed, int, BinaryTagHolder)instead.static @NotNull HoverEvent.ShowItemof(@NotNull Key item, @org.jetbrains.annotations.Range(from=0L, to=2147483647L) int count)Deprecated.for removal since 4.14.0, useshowItem(Key, int)instead.static @NotNull HoverEvent.ShowItemof(@NotNull Key item, @org.jetbrains.annotations.Range(from=0L, to=2147483647L) int count, @Nullable BinaryTagHolder nbt)Deprecated.for removal since 4.14.0, useshowItem(Key, int, BinaryTagHolder)instead.static @NotNull HoverEvent.ShowItemshowItem(@NotNull Keyed item, @org.jetbrains.annotations.Range(from=0L, to=2147483647L) int count)Creates.static @NotNull HoverEvent.ShowItemshowItem(@NotNull Keyed item, @org.jetbrains.annotations.Range(from=0L, to=2147483647L) int count, @Nullable BinaryTagHolder nbt)Creates.static @NotNull HoverEvent.ShowItemshowItem(@NotNull Key item, @org.jetbrains.annotations.Range(from=0L, to=2147483647L) int count)Creates.static @NotNull HoverEvent.ShowItemshowItem(@NotNull Key item, @org.jetbrains.annotations.Range(from=0L, to=2147483647L) int count, @Nullable BinaryTagHolder nbt)Creates.java.lang.StringtoString()
 
- 
- 
- 
Method Detail- 
showItem@NotNull public static @NotNull HoverEvent.ShowItem showItem(@NotNull @NotNull Key item, @org.jetbrains.annotations.Range(from=0L, to=2147483647L) int count) Creates.- Parameters:
- item- the item
- count- the count
- Returns:
- a ShowItem
- Since:
- 4.14.0
 
 - 
of@Deprecated @ScheduledForRemoval(inVersion="5.0.0") @NotNull public static @NotNull HoverEvent.ShowItem of(@NotNull @NotNull Key item, @org.jetbrains.annotations.Range(from=0L, to=2147483647L) int count) Deprecated.for removal since 4.14.0, useshowItem(Key, int)instead.Creates.- Parameters:
- item- the item
- count- the count
- Returns:
- a ShowItem
- Since:
- 4.0.0
 
 - 
showItem@NotNull public static @NotNull HoverEvent.ShowItem showItem(@NotNull @NotNull Keyed item, @org.jetbrains.annotations.Range(from=0L, to=2147483647L) int count) Creates.- Parameters:
- item- the item
- count- the count
- Returns:
- a ShowItem
- Since:
- 4.14.0
 
 - 
of@Deprecated @ScheduledForRemoval(inVersion="5.0.0") @NotNull public static @NotNull HoverEvent.ShowItem of(@NotNull @NotNull Keyed item, @org.jetbrains.annotations.Range(from=0L, to=2147483647L) int count) Deprecated.for removal since 4.14.0, useshowItem(Keyed, int)instead.Creates.- Parameters:
- item- the item
- count- the count
- Returns:
- a ShowItem
- Since:
- 4.6.0
 
 - 
showItem@NotNull public static @NotNull HoverEvent.ShowItem showItem(@NotNull @NotNull Key item, @org.jetbrains.annotations.Range(from=0L, to=2147483647L) int count, @Nullable @Nullable BinaryTagHolder nbt) Creates.- Parameters:
- item- the item
- count- the count
- nbt- the nbt
- Returns:
- a ShowItem
- Since:
- 4.14.0
 
 - 
of@Deprecated @ScheduledForRemoval(inVersion="5.0.0") @NotNull public static @NotNull HoverEvent.ShowItem of(@NotNull @NotNull Key item, @org.jetbrains.annotations.Range(from=0L, to=2147483647L) int count, @Nullable @Nullable BinaryTagHolder nbt) Deprecated.for removal since 4.14.0, useshowItem(Key, int, BinaryTagHolder)instead.Creates.- Parameters:
- item- the item
- count- the count
- nbt- the nbt
- Returns:
- a ShowItem
- Since:
- 4.0.0
 
 - 
showItem@NotNull public static @NotNull HoverEvent.ShowItem showItem(@NotNull @NotNull Keyed item, @org.jetbrains.annotations.Range(from=0L, to=2147483647L) int count, @Nullable @Nullable BinaryTagHolder nbt) Creates.- Parameters:
- item- the item
- count- the count
- nbt- the nbt
- Returns:
- a ShowItem
- Since:
- 4.14.0
 
 - 
of@Deprecated @ScheduledForRemoval(inVersion="5.0.0") @NotNull public static @NotNull HoverEvent.ShowItem of(@NotNull @NotNull Keyed item, @org.jetbrains.annotations.Range(from=0L, to=2147483647L) int count, @Nullable @Nullable BinaryTagHolder nbt) Deprecated.for removal since 4.14.0, useshowItem(Keyed, int, BinaryTagHolder)instead.Creates.- Parameters:
- item- the item
- count- the count
- nbt- the nbt
- Returns:
- a ShowItem
- Since:
- 4.6.0
 
 - 
item@NotNull public @NotNull Key item() Gets the item.- Returns:
- the item
- Since:
- 4.0.0
 
 - 
item@NotNull public @NotNull HoverEvent.ShowItem item(@NotNull @NotNull Key item) Sets the item.- Parameters:
- item- the item
- Returns:
- a ShowItem
- Since:
- 4.0.0
 
 - 
countpublic @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@Nullable public @Nullable BinaryTagHolder nbt() Gets the nbt.- Returns:
- the nbt
- Since:
- 4.0.0
 
 - 
nbt@NotNull public @NotNull HoverEvent.ShowItem nbt(@Nullable @Nullable BinaryTagHolder nbt) Sets the nbt.- Parameters:
- nbt- the nbt
- Returns:
- a ShowItem
- Since:
- 4.0.0
 
 - 
equalspublic boolean equals(@Nullable @Nullable java.lang.Object other)- Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
examinableProperties@NotNull public @NotNull java.util.stream.Stream<? extends net.kyori.examination.ExaminableProperty> examinableProperties() - Specified by:
- examinablePropertiesin interface- net.kyori.examination.Examinable
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-