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 ashow_itemhover event.- Since:
- 4.0.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods 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()
-
-
-
Method Detail
-
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
public @NonNull HoverEvent.ShowItem item(@NonNull net.kyori.adventure.key.Key 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
public @Nullable BinaryTagHolder nbt()
Gets the nbt.- Returns:
- the nbt
- Since:
- 4.0.0
-
nbt
public @NonNull HoverEvent.ShowItem nbt(@Nullable BinaryTagHolder nbt)
Sets the nbt.- Parameters:
nbt- the nbt- Returns:
- a
ShowItem - Since:
- 4.0.0
-
examinableProperties
public @NonNull Stream<? extends net.kyori.examination.ExaminableProperty> examinableProperties()
- Specified by:
examinablePropertiesin interfacenet.kyori.examination.Examinable
-
-