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.
  • Method Details

    • of

      static PositionSource of(Vector3i position)
      Creates PositionSource for provided position.
      Parameters:
      position - The position
      Returns:
      The position source
    • of

      static PositionSource of(int x, int y, int z)
      Creates PositionSource for provided position.
      Parameters:
      x - The x position
      y - The y position
      z - The z position
      Returns:
      The position source
    • of

      static PositionSource of(Entity entity)
      Creates PositionSource for provided entity.
      Parameters:
      entity - The entity
      Returns:
      The position source
    • of

      static PositionSource of(Entity entity, double yOffset)
      Creates PositionSource for provided entity and vertical offset.
      Parameters:
      entity - The entity
      yOffset - The vertical offset
      Returns:
      The position source