Package net.kyori.adventure.identity
Interface Identity
- All Superinterfaces:
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
-
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull Stream<? extends net.kyori.examination.ExaminableProperty>
default @NotNull Identity
identity()
Gets the identity.static @NotNull Identity
Creates an identity.static @NotNull Identity
nil()
Gets thenull
identity.@NotNull UUID
uuid()
Gets the uuid.Methods inherited from interface net.kyori.examination.Examinable
examinableName, examine
-
Field Details
-
Method Details
-
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
Creates an identity.- Parameters:
uuid
- the uuid- Returns:
- an identity
- Since:
- 4.0.0
-
uuid
Gets the uuid.- Returns:
- the uuid
- Since:
- 4.0.0
-
identity
Description copied from interface:Identified
Gets the identity.- Specified by:
identity
in interfaceIdentified
- Returns:
- the identity
-
examinableProperties
@NotNull default @NotNull Stream<? extends net.kyori.examination.ExaminableProperty> examinableProperties()- Specified by:
examinableProperties
in interfacenet.kyori.examination.Examinable
-