java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
Direct Known Subclasses:
AvoidEntityGoal, Bee.BaseBeeGoal, Bee.BeeWanderGoal, BegGoal, Blaze.BlazeAttackGoal, BreathAirGoal, BreedGoal, Cat.CatRelaxOnOwnerGoal, ClimbOnTopOfPowderSnowGoal, Dolphin.DolphinSwimToTreasureGoal, Dolphin.DolphinSwimWithPlayerGoal, Dolphin.PlayWithItemsGoal, DoorInteractGoal, Drowned.DrownedGoToWaterGoal, Drowned.DrownedSwimUpGoal, EatBlockGoal, EnderMan.EndermanFreezeWhenLookedAt, EnderMan.EndermanLeaveBlockGoal, EnderMan.EndermanTakeBlockGoal, FleeSunGoal, FloatGoal, FollowBoatGoal, FollowFlockLeaderGoal, FollowMobGoal, FollowOwnerGoal, FollowParentGoal, Fox.FaceplantGoal, Fox.FoxBehaviorGoal, Fox.FoxSearchForItemsGoal, Fox.StalkPreyGoal, Ghast.GhastLookGoal, Ghast.GhastShootFireballGoal, Ghast.RandomFloatAroundGoal, Guardian.GuardianAttackGoal, JumpGoal, LandOnOwnersShoulderGoal, LeapAtTargetGoal, LlamaFollowCaravanGoal, LookAtPlayerGoal, MeleeAttackGoal, MoveThroughVillageGoal, MoveToBlockGoal, MoveTowardsRestrictionGoal, MoveTowardsTargetGoal, OcelotAttackGoal, OfferFlowerGoal, Panda.PandaLieOnBackGoal, Panda.PandaRollGoal, Panda.PandaSitGoal, Panda.PandaSneezeGoal, PanicGoal, PathfindToRaidGoal, PatrollingMonster.LongDistancePatrolGoal, Phantom.PhantomAttackPlayerTargetGoal, Phantom.PhantomAttackStrategyGoal, Phantom.PhantomMoveTargetGoal, Pufferfish.PufferfishPuffGoal, Raider.HoldGroundAttackGoal, Raider.ObtainRaidLeaderBannerGoal, Raider.RaiderCelebration, Raider.RaiderMoveThroughVillageGoal, RandomLookAroundGoal, RandomStandGoal, RandomStrollGoal, RangedAttackGoal, RangedBowAttackGoal, RangedCrossbowAttackGoal, ResetUniversalAngerTargetGoal, RestrictSunGoal, RunAroundLikeCrazyGoal, Shulker.ShulkerAttackGoal, Shulker.ShulkerPeekGoal, Silverfish.SilverfishWakeUpFriendsGoal, SitWhenOrderedToGoal, SkeletonTrapGoal, Slime.SlimeAttackGoal, Slime.SlimeFloatGoal, Slime.SlimeKeepOnJumpingGoal, Slime.SlimeRandomDirectionGoal, SpellcasterIllager.SpellcasterCastingSpellGoal, SpellcasterIllager.SpellcasterUseSpellGoal, Squid.SquidFleeGoal, Squid.SquidRandomMovementGoal, StrollThroughVillageGoal, SwellGoal, TargetGoal, TemptGoal, TradeWithPlayerGoal, TryFindWaterGoal, Turtle.TurtleGoHomeGoal, Turtle.TurtleTravelGoal, UseItemGoal, Vex.VexChargeAttackGoal, Vex.VexRandomMoveGoal, WanderingTrader.WanderToPositionGoal, WitherBoss.WitherDoNothingGoal, WrappedGoal

public abstract class Goal extends Object
  • Field Details

  • Constructor Details

    • Goal

      public Goal()
  • Method Details

    • canUse

      public abstract boolean canUse()
    • canContinueToUse

      public boolean canContinueToUse()
    • isInterruptable

      public boolean isInterruptable()
    • start

      public void start()
    • stop

      public void stop()
    • requiresUpdateEveryTick

      public boolean requiresUpdateEveryTick()
    • tick

      public void tick()
    • setFlags

      public void setFlags(EnumSet<Goal.Flag> p_25328_)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getFlags

      public EnumSet<Goal.Flag> getFlags()
    • adjustedTickDelay

      protected int adjustedTickDelay(int p_186072_)
    • reducedTickDelay

      protected static int reducedTickDelay(int p_186074_)