mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 22:15:45 +00:00
Add the actual hover event in sponge...
This commit is contained in:
1 parent
6308669c1e
commit
d9b24569a3
1 file changed
+2
@@ -81,6 +81,8 @@ public class CarbonChatSponge implements CarbonChat {
|
|||||||
|
|
||||||
final TextComponent.Builder builder = text();
|
final TextComponent.Builder builder = text();
|
||||||
|
|
||||||
|
builder.hoverEvent(itemStack.createSnapshot());
|
||||||
|
|
||||||
builder.append(text('[', WHITE));
|
builder.append(text('[', WHITE));
|
||||||
builder.append(itemStack.get(Keys.DISPLAY_NAME).orElse(itemStack.type().asComponent()));
|
builder.append(itemStack.get(Keys.DISPLAY_NAME).orElse(itemStack.type().asComponent()));
|
||||||
builder.append(text(']', WHITE));
|
builder.append(text(']', WHITE));
|
||||||
|
|||||||
Reference in new issue
Block a user