Interface Facet.Position<V,P>
-
- Type Parameters:
V
- a viewer typeP
- a position type
- All Superinterfaces:
Facet<V>
- All Known Subinterfaces:
Facet.BossBarEntity<V,P>
,Facet.FakeEntity<V,P>
,Facet.Sound<V,P>
public static interface Facet.Position<V,P> extends Facet<V>
A facet that requires a 3D vector.- 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description P
createPosition(double x, double y, double z)
Creates a position.P
createPosition(V viewer)
Finds a viewer's position.-
Methods inherited from interface net.kyori.adventure.platform.facet.Facet
isApplicable, isSupported
-
-
-
-
Method Detail
-
createPosition
@Nullable P createPosition(@NotNull V viewer)
Finds a viewer's position.- Parameters:
viewer
- a viewer- Returns:
- a position or
null
if cannot be found - Since:
- 4.0.0
-
createPosition
@NotNull P createPosition(double x, double y, double z)
Creates a position.- Parameters:
x
- a x coordinatey
- a y coordinatez
- a z coordinate- Returns:
- a position
- Since:
- 4.0.0
-
-