Interface Facet.FakeEntity<V,P>
- Type Parameters:
V- a viewer typeP- a position type
- All Superinterfaces:
AutoCloseable,Closeable,Facet<V>,Facet.Position<V,P>
- All Known Subinterfaces:
Facet.BossBarEntity<V,P>
A facet for spawning client-side entities.
- Since:
- 4.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.kyori.adventure.platform.facet.Facet
Facet.ActionBar<V,M>, Facet.Book<V, M, B>, Facet.BossBar<V>, Facet.BossBarEntity<V, P>, Facet.BossBarPacket<V>, Facet.Chat<V, M>, Facet.ChatPacket<V, M>, Facet.EntitySound<V, M>, Facet.FakeEntity<V, P>, Facet.Message<V, M>, Facet.Pointers<V>, Facet.Position<V, P>, Facet.Sound<V, P>, Facet.TabList<V, M>, Facet.Title<V, M, C, T>, Facet.TitlePacket<V, M, C, T> -
Method Summary
Methods inherited from interface net.kyori.adventure.platform.facet.Facet
isApplicable, isSupportedMethods inherited from interface net.kyori.adventure.platform.facet.Facet.Position
createPosition, createPosition
-
Method Details
-
teleport
Teleports the entity for a viewer.- Parameters:
viewer- a viewerposition- an entity position ornullto remove- Since:
- 4.0.0
-
metadata
Sets the entity metadata.- Parameters:
position- a metadata positiondata- a value- Since:
- 4.0.0
-
invisible
void invisible(boolean invisible) Sets the entity visibility.- Parameters:
invisible- if invisible- Since:
- 4.0.0
-
health
void health(float health) Sets the entity health.- Parameters:
health- health level, between 0 and 1- Since:
- 4.0.0
-
name
Sets the entity name.- Parameters:
name- a name- Since:
- 4.0.0
-
close
void close()Remove the entity for all viewers.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Since:
- 4.0.0
-