Interface FEntity
- All Known Subinterfaces:
FPlayer
- All Known Implementing Classes:
FEntityImpl, FPlayerImpl
public interface FEntity
Anything that can send a message, such as a player, the console or a command block
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Starts building an entity.default booleanWhether this is the stand-in returned byunknown().name()The display name.@Nullable net.kyori.adventure.text.Componenttype()The entity type.static FEntityunknown()The stand-in used when the real sender cannot be determined.uuid()The entity id.
-
Field Details
-
UNKNOWN_UUID
The id carried by the unknown entity. -
UNKNOWN_NAME
-
UNKNOWN_TYPE
-
-
Method Details
-
builder
-
unknown
The stand-in used when the real sender cannot be determined.- Returns:
- the unknown entity
-
name
-
uuid
-
type
-
showEntityName
@Nullable net.kyori.adventure.text.Component showEntityName() -
isUnknown
default boolean isUnknown()Whether this is the stand-in returned byunknown().- Returns:
- true if the entity is unknown
-