Class EntityAIInteractToggleAble

java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
com.minecolonies.core.entity.ai.minimal.EntityAIInteractToggleAble

public class EntityAIInteractToggleAble extends net.minecraft.world.entity.ai.goal.Goal
AI to close toggleables when collided.
  • Field Details

  • Constructor Details

  • Method Details

    • canUse

      public boolean canUse()
      Checks if the Interaction should be executed.
      Specified by:
      canUse in class net.minecraft.world.entity.ai.goal.Goal
      Returns:
      true or false depending on the conditions.
    • start

      public void start()
      Overrides:
      start in class net.minecraft.world.entity.ai.goal.Goal
    • canContinueToUse

      public boolean canContinueToUse()
      Checks if the execution is still ongoing.
      Overrides:
      canContinueToUse in class net.minecraft.world.entity.ai.goal.Goal
      Returns:
      true or false.
    • tick

      public void tick()
      Updates the task and checks if the citizen passed the gate already.
      Overrides:
      tick in class net.minecraft.world.entity.ai.goal.Goal