mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 14:38:51 +00:00
displayName -> nickname; renderName -> displayName
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user