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
Nested Classes -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic PositionSourceof(int x, int y, int z) CreatesPositionSourcefor provided position.static PositionSourceCreatesPositionSourcefor provided entity.static PositionSourceCreatesPositionSourcefor provided entity and vertical offset.static PositionSourceCreatesPositionSourcefor provided position.
-
Method Details
-
of
CreatesPositionSourcefor provided position.- Parameters:
position- The position- Returns:
- The position source
-
of
CreatesPositionSourcefor provided position.- Parameters:
x- The x positiony- The y positionz- The z position- Returns:
- The position source
-
of
CreatesPositionSourcefor provided entity.- Parameters:
entity- The entity- Returns:
- The position source
-
of
CreatesPositionSourcefor provided entity and vertical offset.- Parameters:
entity- The entityyOffset- The vertical offset- Returns:
- The position source
-