You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/java/de/ntcomputer/minecraft/controllablemobs/api/ControllableMobAttributes.java
+42Lines changed: 42 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -45,4 +45,46 @@ public interface ControllableMobAttributes {
45
45
*/
46
46
publicdoublegetMaximumNavigationDistance();
47
47
48
+
49
+
/**
50
+
* Determines whether the entity can swim. To change this value, add or remove {@link de.ntcomputer.minecraft.controllablemobs.api.ai.behaviors.AISwim} to {@link ControllableMobAI}
51
+
* @return whether the entity can swim.
52
+
*/
53
+
publicbooleancanSwim();
54
+
55
+
/**
56
+
* @return whether the entity avoids moving through water (regardless of whether it can swim).
57
+
*/
58
+
publicbooleangetAvoidWater();
59
+
60
+
/**
61
+
* Set whether the entity avoids moving through water (regardless of whether it can swim).
62
+
* @param avoid true, if the entity should not move through water
63
+
*/
64
+
publicvoidsetAvoidWater(booleanavoid);
65
+
66
+
67
+
/**
68
+
* Get whether the entity will move through doors to reach its destination.
69
+
* This only shows whether the entity will move through opened doors.
70
+
* It does not show whether the entity will move through closed doors. Use {@link #canMoveThroughClosedDoors()} for this case.
71
+
* @return whether the entity will move through doors to reach its destination.
72
+
*/
73
+
publicbooleangetMoveThroughDoors();
74
+
75
+
/**
76
+
* Set whether the entity will move through doors to reach its destination.
77
+
* If set to true, the entity will move through opened doors. For closed doors, see {@link #canMoveThroughClosedDoors()}
78
+
* If set to false, the entity will not move through any closed or opened door, regardless of AI behaviors.
79
+
* @param moveThroughDoors whether the entity should move through doors to reach its destination.
* Get whether the entity can move through closed doors to reach its destination.
85
+
* To adjust this behavior, add or remove either {@link de.ntcomputer.minecraft.controllablemobs.api.ai.behaviors.AIDoorOpen} or {@link de.ntcomputer.minecraft.controllablemobs.api.ai.behaviors.AIDoorBreak} to {@link ControllableMobAI}.
86
+
* @return whether the entity can somehow move through closed doors to reach its destination.
0 commit comments