Package net.kyori.adventure.identity
Interface Identity
-
- All Superinterfaces:
net.kyori.examination.Examinable
public interface Identity extends net.kyori.examination.Examinable
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
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default @NotNull Stream<? extends net.kyori.examination.ExaminableProperty>
examinableProperties()
static @NotNull Identity
identity(@NotNull UUID uuid)
Creates an identity.static @NotNull Identity
nil()
Gets thenull
identity.@NotNull UUID
uuid()
Gets the uuid.
-
-
-
Method Detail
-
nil
@NotNull static @NotNull Identity nil()
Gets thenull
identity.This should only be used when no players can be linked to a message.
- Returns:
- the
null
identity - Since:
- 4.0.0
-
identity
@NotNull static @NotNull Identity identity(@NotNull @NotNull UUID uuid)
Creates an identity.- Parameters:
uuid
- the uuid- Returns:
- an identity
- Since:
- 4.0.0
-
uuid
@NotNull @NotNull UUID uuid()
Gets the uuid.- Returns:
- the uuid
- Since:
- 4.0.0
-
examinableProperties
@NotNull default @NotNull Stream<? extends net.kyori.examination.ExaminableProperty> examinableProperties()
- Specified by:
examinableProperties
in interfacenet.kyori.examination.Examinable
-
-