displayName -> nickname; renderName -> displayName

This commit is contained in:
Jason Penilla committed 2023-08-10 00:27:43 -07:00
1 parent 1267b3bd4b
commit 10b9862c18
21 files changed
+123 -100

No files matched your search

@@ -30,6 +30,7 @@ import net.draycia.carbon.common.users.WrappedCarbonPlayer;
import net.draycia.carbon.common.util.EmptyAudienceWithPointers;
import net.kyori.adventure.audience.Audience;
import net.kyori.adventure.audience.ForwardingAudience;
import net.kyori.adventure.identity.Identity;
import net.kyori.adventure.text.Component;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
@@ -84,6 +85,11 @@ public final class CarbonPlayerVelocity extends WrappedCarbonPlayer implements F
return playerServer.isPresent() && playerServer.equals(otherPlayer.get().getCurrentServer());
}
@Override
protected Optional<Component> platformDisplayName() {
return this.player().flatMap(p -> p.get(Identity.DISPLAY_NAME));
}
@Override
public @Nullable Component createItemHoverComponent(final InventorySlot slot) {
return null;