Skip to content

Commit 4f58aeb

Browse files
committed
Graduate lookAt up to Entity
Signed-off-by: Chris Sanders <[email protected]>
1 parent 151e66c commit 4f58aeb

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

src/main/java/org/spongepowered/api/entity/Entity.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,13 @@ default boolean canSee(final Entity entity) {
328328
return !optional.isPresent() || !optional.get();
329329
}
330330

331+
/**
332+
* Makes the entity look at the specified target position.
333+
*
334+
* @param targetPos Position to target
335+
*/
336+
void lookAt(Vector3d targetPos);
337+
331338
/**
332339
* {@link Keys#DISPLAY_NAME}
333340
*

src/main/java/org/spongepowered/api/entity/living/Living.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
import org.spongepowered.api.entity.attribute.Attribute;
3232
import org.spongepowered.api.entity.attribute.AttributeHolder;
3333
import org.spongepowered.api.item.inventory.ItemStackSnapshot;
34-
import org.spongepowered.api.projectile.source.EntityProjectileSource;
3534
import org.spongepowered.api.scoreboard.TeamMember;
3635
import org.spongepowered.math.imaginary.Quaterniond;
3736
import org.spongepowered.math.vector.Vector3d;
@@ -164,13 +163,6 @@ default Value.Mutable<Double> walkingSpeed() {
164163
return this.requireValue(Keys.WALKING_SPEED).asMutable();
165164
}
166165

167-
/**
168-
* Makes the entity look at the specified target position.
169-
*
170-
* @param targetPos Position to target
171-
*/
172-
void lookAt(Vector3d targetPos);
173-
174166
/**
175167
* Converts the {@link Living}'s head rotation into a quaternion direction unit vector.
176168
*

0 commit comments

Comments
 (0)