Class PathfinderFollowPlayerRiddenEntity

java.lang.Object
me.gamercoder215.mobchip.ai.goal.Pathfinder
me.gamercoder215.mobchip.ai.goal.PathfinderFollowPlayerRiddenEntity
All Implemented Interfaces:
PathfinderInfo
Direct Known Subclasses:
PathfinderFollowBoat

public class PathfinderFollowPlayerRiddenEntity extends Pathfinder
Represents a Pathfinder for a Creature to follow something a player is riding
  • Constructor Details

    • PathfinderFollowPlayerRiddenEntity

      public PathfinderFollowPlayerRiddenEntity(@NotNull @NotNull Creature c, Class<? extends Entity> typeToFollow)
      Constructs a PathfinderFollowBoat.
      Parameters:
      c - Creature to use
      typeToFollow - The type of entity to follow. On 1.21.11 and lower, Boat.class will be used regardless of this setting.
  • Method Details

    • getTypeToFollow

      public Class<? extends Entity> getTypeToFollow()
      Get the type of entity this pathfinder follows.
      Returns:
      The entity type.
    • getFlags

      @NotNull public @NotNull Pathfinder.PathfinderFlag[] getFlags()
      Description copied from class: Pathfinder

      Fetches an Array of Flags that this Pathfinder has.

      Specified by:
      getFlags in class Pathfinder
      Returns:
      Array of Pathfinder Flags
    • getInternalName

      public String getInternalName()
      Description copied from interface: PathfinderInfo
      Returns the pathfinder's internal name. This may match the actual NMS name of the pathfinder, but it may not.
      Returns:
      Internal Name