Package org.spongepowered.api.world
Interface PositionSource
public interface PositionSource
In some particle implementations, they can "follow" a source that moves over
several ticks such that a singular position is not enough information to follow.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PositionSource
of
(int x, int y, int z) CreatesPositionSource
for provided position.static PositionSource
CreatesPositionSource
for provided entity.static PositionSource
CreatesPositionSource
for provided entity and vertical offset.static PositionSource
CreatesPositionSource
for provided position.
-
Method Details
-
of
CreatesPositionSource
for provided position.- Parameters:
position
- The position- Returns:
- The position source
-
of
CreatesPositionSource
for provided position.- Parameters:
x
- The x positiony
- The y positionz
- The z position- Returns:
- The position source
-
of
CreatesPositionSource
for provided entity.- Parameters:
entity
- The entity- Returns:
- The position source
-
of
CreatesPositionSource
for provided entity and vertical offset.- Parameters:
entity
- The entityyOffset
- The vertical offset- Returns:
- The position source
-