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.
-
-
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.FakeEntity<V,P>, Facet.Message<V,M>, Facet.Position<V,P>, Facet.Sound<V,P>, Facet.Title<V,M,T>, Facet.TitlePacket<V,M,T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NonNull PcreatePosition(double x, double y, double z)Creates a position.@Nullable PcreatePosition(@NonNull 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(@NonNull V viewer)
Finds a viewer's position.- Parameters:
viewer- a viewer- Returns:
- a position or
nullif cannot be found
-
createPosition
@NonNull 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
-
-