Skip to content

Commit 71497cd

Browse files
committed
renamed AIFloat to AISwim
1 parent 0cdc95e commit 71497cd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/java/de/ntcomputer/minecraft/controllablemobs/api/ai/AIType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public enum AIType {
6565
ACTION_DEFENDVILLAGE(PathfinderGoalDefendVillage.class),
6666
ACTION_EATTILE(PathfinderGoalEatTile.class),
6767
MOVE_FLEESUN(PathfinderGoalFleeSun.class),
68-
MOVE_FLOAT(PathfinderGoalFloat.class),
68+
MOVE_SWIM(PathfinderGoalFloat.class),
6969
MOVE_FOLLOWONWNER(PathfinderGoalFollowOwner.class),
7070
MOVE_FOLLOWPARENT(PathfinderGoalFollowParent.class),
7171
TARGET_HURTBY(PathfinderGoalHurtByTarget.class),

src/java/de/ntcomputer/minecraft/controllablemobs/api/ai/behaviors/AIFloat.java renamed to src/java/de/ntcomputer/minecraft/controllablemobs/api/ai/behaviors/AISwim.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
* @version v4
1717
*
1818
*/
19-
public class AIFloat extends AIBehavior<LivingEntity> {
19+
public class AISwim extends AIBehavior<LivingEntity> {
2020

2121
/**
2222
* Create with an automatically given priority.
2323
*/
24-
public AIFloat() {
24+
public AISwim() {
2525
this(0);
2626
}
2727

@@ -30,7 +30,7 @@ public AIFloat() {
3030
*
3131
* @param priority the priority of this behavior. Specify 0 to auto-generate it
3232
*/
33-
public AIFloat(final int priority) {
33+
public AISwim(final int priority) {
3434
super(priority);
3535
}
3636

@@ -41,7 +41,7 @@ public PathfinderGoal createPathfinderGoal(CraftControllableMob<?> mob) {
4141

4242
@Override
4343
public AIType getType() {
44-
return AIType.MOVE_FLOAT;
44+
return AIType.MOVE_SWIM;
4545
}
4646

4747
}

0 commit comments

Comments
 (0)