Skip to content

Commit f4b89eb

Browse files
committed
Address Comments
1 parent 82e6c4d commit f4b89eb

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

docs/paper/dev/api/entity-pathfinder.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ description: A guide to the Entity Pathfinder API.
55

66
# Entity Pathfinder API
77

8-
The Entity Pathfinder API is a way of controlling the movement of entities in Minecraft. It allows you to set a path
9-
for an entity to follow, such as moving to a location, or following a player.
8+
The Entity Pathfinder API is a way of controlling the movement of entities in Minecraft. It allows you to set a path
9+
for an entity to follow, such as moving to a location, or following a player.
1010

1111
## Accessing the Pathfinder
1212

@@ -27,17 +27,17 @@ Player player = ...;
2727

2828
Pathfinder pathfinder = cow.getPathfinder();
2929
// moveTo returns a boolean indicating whether the path was set successfully
30-
boolean success = pathfinder.moveTo(player.getLocation());
30+
boolean success = pathfinder.moveTo(player.getLocation());
3131
```
3232

33-
If we want to access the current Path for the cow, we can call `getCurrentPath()` on the pathfinder:
33+
If we want to access the current path for the cow, we can call `getCurrentPath()` on the pathfinder:
3434

3535
```java
3636
PathResult path = pathfinder.getCurrentPath();
3737

3838
// A PathResult is essentially a wrapper around a List of Locations. These can be accessed with:
3939
List<Location> locations = path.getPoints();
40-
// It is important to note that the list contains points that have already been passed,
40+
// It is important to note that the list contains points that have already been passed,
4141
// as well as future points. If you want to get the next point, you can use:
4242
Location nextPoint = path.getNextPoint(); // Or locations.get(path.getNextPointIndex())
4343
// Finally, you can access the final destination with:
@@ -48,10 +48,10 @@ Location destination = path.getFinalPoint();
4848

4949
Much of the way that the Pathfinder works is dictated by the limitations of the actual entity pathfinding in Minecraft.
5050
For example, a Polar Bear cannot fly. This means that if you set a path for a Polar Bear to a location that is in the air,
51-
it will not be able to reach it.
51+
it will not be able to reach it.
5252

5353
Some attributes can be set on the pathfinder to change the way that the pathfinder works. These are:
54-
- `setCanOpenDoors(boolean)`: Whether the entity can open doors. This is relevant for Zombies breaking down doors, and
54+
- `setCanOpenDoors(boolean)`: Whether the entity can open doors. This is relevant for Zombies breaking down doors, and
5555
Villagers opening doors.
5656
- `setCanPassDoors(boolean)`: Whether the entity can pass through open doors.
5757
- `setCanFloat(boolean)`: Whether the entity can float in water.
@@ -60,4 +60,4 @@ These all have respective getters as well.
6060
## Stopping the Pathfinder
6161

6262
You can call `stopPathfinding()` on the pathfinder to stop the pathfinder. This will stop the pathfinder and clear the
63-
current path. You can use `hasPath()` to check if the pathfinder is running.
63+
current path. You can use `hasPath()` to check if the pathfinder is running.

docs/paper/dev/api/mob-goals.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
slug: /dev/mob-goals
3-
description: A guide to the PDC API for storing data.
3+
description: A guide to the mob goal API.
44
---
55

66
# Mob Goal API
@@ -48,7 +48,7 @@ The `getTypes()` method is used to determine what types of goal this is. The typ
4848

4949
:::
5050

51-
Here is an example of a goal that makes a camel follow a player. This is essentially the same as the `FOLLOW_MOB` in Vanilla,
51+
Here is an example of a goal that makes a camel follow a player. This is essentially the same as the `FOLLOW_MOB` in Vanilla,
5252
but it is a good example of how to create a goal.
5353

5454
```java
@@ -88,11 +88,11 @@ public class CamelFollowPlayerGoal implements Goal<Camel> {
8888
@Override
8989
public void stop() {
9090
// This is called when the goal stops. In this case, we just send a message to the player.
91-
player.sendMessage(text("I Stopped following you!"));
91+
player.sendMessage(text("I stopped following you!"));
9292
}
9393

9494
@Override
95-
public @NotNull GoalKey<Camel> getKey() {
95+
public GoalKey<Camel> getKey() {
9696
// This is the key for the goal. It is used to identify the goal and is used to determine if two goals are the same.
9797
// It requires the class of the entity and a NamespacedKey. The NamespacedKey is used to identify the goal.
9898
// You should use the plugin's namespace for the NamespacedKey, not Minecraft or Bukkit.

0 commit comments

Comments
 (0)