Skip to content

Commit 5b363db

Browse files
authored
Rename Creature to PathfinderAgent (#2541)
1 parent 0450e3a commit 5b363db

File tree

12 files changed

+25
-25
lines changed

12 files changed

+25
-25
lines changed

src/main/java/org/spongepowered/api/entity/ai/goal/GoalTypes.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
import org.spongepowered.api.ResourceKey;
2828
import org.spongepowered.api.Sponge;
2929
import org.spongepowered.api.entity.living.Agent;
30-
import org.spongepowered.api.entity.living.Creature;
3130
import org.spongepowered.api.entity.living.Humanoid;
3231
import org.spongepowered.api.entity.living.Living;
32+
import org.spongepowered.api.entity.living.PathfinderAgent;
3333
import org.spongepowered.api.entity.living.animal.horse.Horse;
3434
import org.spongepowered.api.registry.DefaultedRegistryReference;
3535
import org.spongepowered.api.registry.Registry;
@@ -62,7 +62,7 @@ public final class GoalTypes {
6262
public static final DefaultedRegistryReference<GoalType> LOOK_RANDOMLY = GoalTypes.key(ResourceKey.sponge("look_randomly"));
6363

6464
/**
65-
* {@link Goal} where {@link Creature}s walk around.
65+
* {@link Goal} where {@link PathfinderAgent}s walk around.
6666
*/
6767
public static final DefaultedRegistryReference<GoalType> RANDOM_WALKING = GoalTypes.key(ResourceKey.sponge("random_walking"));
6868

src/main/java/org/spongepowered/api/entity/ai/goal/builtin/creature/AttackLivingGoal.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
import org.spongepowered.api.entity.ai.goal.Goal;
3030
import org.spongepowered.api.entity.ai.goal.GoalBuilder;
3131
import org.spongepowered.api.entity.living.Agent;
32-
import org.spongepowered.api.entity.living.Creature;
32+
import org.spongepowered.api.entity.living.PathfinderAgent;
3333

34-
public interface AttackLivingGoal extends Goal<Creature> {
34+
public interface AttackLivingGoal extends Goal<PathfinderAgent> {
3535

3636
/**
3737
* Creates a new {@link Builder} to build a new
@@ -52,7 +52,7 @@ static Builder builder() {
5252
double speed();
5353

5454
/**
55-
* Sets the movement speed modifier when the parent {@link Creature}
55+
* Sets the movement speed modifier when the parent {@link PathfinderAgent}
5656
* is targeting an {@link Entity}.
5757
*
5858
* @param speed The speed
@@ -84,7 +84,7 @@ static Builder builder() {
8484
*/
8585
AttackLivingGoal setLongMemory(boolean longMemory);
8686

87-
interface Builder extends GoalBuilder<Creature, AttackLivingGoal, Builder> {
87+
interface Builder extends GoalBuilder<PathfinderAgent, AttackLivingGoal, Builder> {
8888

8989
/**
9090
* Sets the speed modifier at which the owning {@link Agent} will be

src/main/java/org/spongepowered/api/entity/ai/goal/builtin/creature/AvoidLivingGoal.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@
2828
import org.spongepowered.api.entity.ai.goal.Goal;
2929
import org.spongepowered.api.entity.ai.goal.GoalBuilder;
3030
import org.spongepowered.api.entity.living.Agent;
31-
import org.spongepowered.api.entity.living.Creature;
3231
import org.spongepowered.api.entity.living.Living;
32+
import org.spongepowered.api.entity.living.PathfinderAgent;
3333

3434
import java.util.function.Predicate;
3535

36-
public interface AvoidLivingGoal extends Goal<Creature> {
36+
public interface AvoidLivingGoal extends Goal<PathfinderAgent> {
3737

3838
/**
3939
* Creates a new {@link Builder} for creating a new {@link AvoidLivingGoal}.
@@ -118,7 +118,7 @@ static Builder builder() {
118118
*/
119119
AvoidLivingGoal setFarRangeSpeed(double speed);
120120

121-
interface Builder extends GoalBuilder<Creature, AvoidLivingGoal, Builder> {
121+
interface Builder extends GoalBuilder<PathfinderAgent, AvoidLivingGoal, Builder> {
122122

123123
/**
124124
* Sets the {@link Predicate} for filtering which {@link Living} instances

src/main/java/org/spongepowered/api/entity/ai/goal/builtin/creature/RandomWalkingGoal.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
import org.spongepowered.api.entity.Entity;
2929
import org.spongepowered.api.entity.ai.goal.Goal;
3030
import org.spongepowered.api.entity.ai.goal.GoalBuilder;
31-
import org.spongepowered.api.entity.living.Creature;
31+
import org.spongepowered.api.entity.living.PathfinderAgent;
3232

33-
public interface RandomWalkingGoal extends Goal<Creature> {
33+
public interface RandomWalkingGoal extends Goal<PathfinderAgent> {
3434

3535
/**
3636
* Creates a new {@link Builder} to build a new
@@ -75,7 +75,7 @@ static Builder builder() {
7575
*/
7676
RandomWalkingGoal setExecutionChance(int executionChance);
7777

78-
interface Builder extends GoalBuilder<Creature, RandomWalkingGoal, Builder> {
78+
interface Builder extends GoalBuilder<PathfinderAgent, RandomWalkingGoal, Builder> {
7979

8080
Builder speed(double speed);
8181

src/main/java/org/spongepowered/api/entity/ai/goal/builtin/creature/target/TargetGoal.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
import org.spongepowered.api.entity.ai.goal.Goal;
3030
import org.spongepowered.api.entity.ai.goal.GoalBuilder;
3131
import org.spongepowered.api.entity.living.Agent;
32-
import org.spongepowered.api.entity.living.Creature;
32+
import org.spongepowered.api.entity.living.PathfinderAgent;
3333

34-
public interface TargetGoal<A extends TargetGoal<A>> extends Goal<Creature> {
34+
public interface TargetGoal<A extends TargetGoal<A>> extends Goal<PathfinderAgent> {
3535

3636
/**
3737
* Gets whether the owning {@link Agent} can visibly "see" the
@@ -71,7 +71,7 @@ public interface TargetGoal<A extends TargetGoal<A>> extends Goal<Creature> {
7171
*/
7272
A setCheckOnlyNearby(boolean nearby);
7373

74-
interface Builder<A extends TargetGoal<A>, B extends Builder<A, B>> extends GoalBuilder<Creature, A, B> {
74+
interface Builder<A extends TargetGoal<A>, B extends Builder<A, B>> extends GoalBuilder<PathfinderAgent, A, B> {
7575

7676
B checkSight(boolean state);
7777

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@
2727
/**
2828
* Represents an Allay.
2929
*/
30-
public interface Allay extends Creature {
30+
public interface Allay extends PathfinderAgent {
3131
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
import java.util.UUID;
2828

29-
public interface Human extends Humanoid, Creature, Ranger {
29+
public interface Human extends Humanoid, PathfinderAgent, Ranger {
3030

3131
/**
3232
* Sets the appearance "skin" of this human to the appearance used by a real

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@
2929
/**
3030
* Represents a hostile Creature, such as a {@link Skeleton}.
3131
*/
32-
public interface Monster extends Hostile, Creature {
32+
public interface Monster extends Hostile, PathfinderAgent {
3333

3434
}

src/main/java/org/spongepowered/api/entity/living/Creature.java renamed to src/main/java/org/spongepowered/api/entity/living/PathfinderAgent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@
2424
*/
2525
package org.spongepowered.api.entity.living;
2626

27-
public interface Creature extends Agent {
27+
public interface PathfinderAgent extends Agent {
2828

2929
}

src/main/java/org/spongepowered/api/entity/living/aquatic/Aquatic.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
package org.spongepowered.api.entity.living.aquatic;
2626

2727
import org.spongepowered.api.block.BlockTypes;
28-
import org.spongepowered.api.entity.living.Creature;
28+
import org.spongepowered.api.entity.living.PathfinderAgent;
2929

3030
/**
3131
* Represents an aquatic creature that may be found in {@link BlockTypes#WATER}
3232
*/
33-
public interface Aquatic extends Creature {
33+
public interface Aquatic extends PathfinderAgent {
3434

3535
}

0 commit comments

Comments
 (0)