Package net.kyori.adventure.identity
Interface Identity
- 
- All Superinterfaces:
 net.kyori.examination.Examinable,Identified
public interface Identity extends net.kyori.examination.Examinable, Identified
An identity used to track the sender of messages for the social interaction features introduced in Minecraft: Java Edition 1.16.4.- Since:
 - 4.0.0
 - Since Minecraft:
 - 1.16
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static Pointer<Component>DISPLAY_NAMEA pointer to a display name.static Pointer<java.util.Locale>LOCALEA pointer to aLocale.static Pointer<java.lang.String>NAMEA pointer to a name.static Pointer<java.util.UUID>UUIDA pointer to aUUID. 
- 
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default @NotNull java.util.stream.Stream<? extends net.kyori.examination.ExaminableProperty>examinableProperties()default @NotNull Identityidentity()Gets the identity.static @NotNull Identityidentity(@NotNull java.util.UUID uuid)Creates an identity.static @NotNull Identitynil()Gets thenullidentity.@NotNull java.util.UUIDuuid()Gets the uuid. 
 - 
 
- 
- 
Method Detail
- 
nil
@NotNull static @NotNull Identity nil()
Gets thenullidentity.This should only be used when no players can be linked to a message.
- Returns:
 - the 
nullidentity - Since:
 - 4.0.0
 
 
- 
identity
@NotNull static @NotNull Identity identity(@NotNull @NotNull java.util.UUID uuid)
Creates an identity.- Parameters:
 uuid- the uuid- Returns:
 - an identity
 - Since:
 - 4.0.0
 
 
- 
uuid
@NotNull @NotNull java.util.UUID uuid()
Gets the uuid.- Returns:
 - the uuid
 - Since:
 - 4.0.0
 
 
- 
identity
@NotNull default @NotNull Identity identity()
Description copied from interface:IdentifiedGets the identity.- Specified by:
 identityin interfaceIdentified- Returns:
 - the identity
 
 
- 
examinableProperties
@NotNull default @NotNull java.util.stream.Stream<? extends net.kyori.examination.ExaminableProperty> examinableProperties()
- Specified by:
 examinablePropertiesin interfacenet.kyori.examination.Examinable
 
 - 
 
 -