Interface IWalkToProxy

All Known Implementing Classes:
AbstractWalkToProxy, EntityCitizenWalkToProxy, GeneralEntityWalkToProxy

public interface IWalkToProxy
Interface which defines the walkToProxy.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addToProxyList(net.minecraft.core.BlockPos pos)
    Add an entry to the proxy list.
    boolean
    Check if for distance calculation the y level should be taken into account.
    net.minecraft.core.BlockPos
    Getter for the current proxy.
    net.minecraft.world.entity.Mob
    Getter for the entity accociated with the proxy.
    List<net.minecraft.core.BlockPos>
    Getter for the proxyList.
    @Nullable net.minecraft.core.BlockPos
    getSpecializedProxy(net.minecraft.core.BlockPos target, double distanceToPath)
    Try to get a specialized proxy to a certain target.
    Set<net.minecraft.core.BlockPos>
    Get a list of waypoints depending on the entity.
    boolean
    isLivingAtSiteWithMove(net.minecraft.world.entity.Mob entity, int x, int y, int z, int range)
    Method to call to detect if an entity living is at site with move.
    void
    Reset the target of the proxy.
    boolean
    walkToBlock(@NotNull net.minecraft.core.BlockPos target, int range)
    Leads the entity to a certain position due to proxies.
    boolean
    walkToBlock(@NotNull net.minecraft.core.BlockPos target, int range, boolean onMove)
    Leads the entity to a certain position due to proxies.
  • Method Details

    • walkToBlock

      boolean walkToBlock(@NotNull @NotNull net.minecraft.core.BlockPos target, int range)
      Leads the entity to a certain position due to proxies.
      Parameters:
      target - the position.
      range - the range.
      Returns:
      true if arrived.
    • walkToBlock

      boolean walkToBlock(@NotNull @NotNull net.minecraft.core.BlockPos target, int range, boolean onMove)
      Leads the entity to a certain position due to proxies.
      Parameters:
      target - the target position.
      range - the range.
      onMove - entity on move or not?
      Returns:
      true if arrived.
    • getWayPoints

      Set<net.minecraft.core.BlockPos> getWayPoints()
      Get a list of waypoints depending on the entity.
      Returns:
      the set of waypoints.
    • careAboutY

      boolean careAboutY()
      Check if for distance calculation the y level should be taken into account.
      Returns:
      true if so.
    • getSpecializedProxy

      @Nullable @Nullable net.minecraft.core.BlockPos getSpecializedProxy(net.minecraft.core.BlockPos target, double distanceToPath)
      Try to get a specialized proxy to a certain target.
      Parameters:
      target - the target.
      distanceToPath - the distance to it.
      Returns:
      a special proxy point of existent, else null.
    • getProxyList

      List<net.minecraft.core.BlockPos> getProxyList()
      Getter for the proxyList.
      Returns:
      a copy of the list
    • addToProxyList

      void addToProxyList(net.minecraft.core.BlockPos pos)
      Add an entry to the proxy list.
      Parameters:
      pos - the position to add.
    • isLivingAtSiteWithMove

      boolean isLivingAtSiteWithMove(net.minecraft.world.entity.Mob entity, int x, int y, int z, int range)
      Method to call to detect if an entity living is at site with move.
      Parameters:
      entity - the entity to check.
      x - the x value.
      y - the y value.
      z - the z value.
      range - the range.
      Returns:
      true if so.
    • getEntity

      net.minecraft.world.entity.Mob getEntity()
      Getter for the entity accociated with the proxy.
      Returns:
      the entity.
    • getCurrentProxy

      net.minecraft.core.BlockPos getCurrentProxy()
      Getter for the current proxy.
      Returns:
      the current proxy.
    • reset

      void reset()
      Reset the target of the proxy.