Class Goal

java.lang.Object
net.minecraft.entity.ai.goal.Goal
Direct Known Subclasses:
AnimalMateGoal, AttackGoal, AvoidSunlightGoal, BeeEntity.BeeWanderAroundGoal, BeeEntity.NotAngryGoal, BlazeEntity.ShootFireballGoal, BowAttackGoal, BreatheAirGoal, CatEntity.SleepWithOwnerGoal, ChaseBoatGoal, CreeperIgniteGoal, CrossbowAttackGoal, DiveJumpingGoal, DolphinEntity.LeadToNearbyTreasureGoal, DolphinEntity.PlayWithItemsGoal, DolphinEntity.SwimWithPlayerGoal, DoorInteractGoal, DrownedEntity.TargetAboveWaterGoal, DrownedEntity.WanderAroundOnSurfaceGoal, EatGrassGoal, EndermanEntity.ChasePlayerGoal, EndermanEntity.PickUpBlockGoal, EndermanEntity.PlaceBlockGoal, EscapeDangerGoal, EscapeSunlightGoal, FleeEntityGoal, FollowGroupLeaderGoal, FollowMobGoal, FollowOwnerGoal, FollowParentGoal, FormCaravanGoal, FoxEntity.CalmDownGoal, FoxEntity.MoveToHuntGoal, FoxEntity.PickupItemGoal, FoxEntity.StopWanderingGoal, GhastEntity.FlyRandomlyGoal, GhastEntity.LookAtTargetGoal, GhastEntity.ShootFireballGoal, GoToVillageGoal, GoToWalkTargetGoal, GuardianEntity.FireBeamGoal, HoldInHandsGoal, HorseBondWithPlayerGoal, IronGolemLookGoal, LookAroundGoal, LookAtEntityGoal, MeleeAttackGoal, MoveIntoWaterGoal, MoveThroughVillageGoal, MoveToRaidCenterGoal, MoveToTargetPosGoal, PandaEntity.LieOnBackGoal, PandaEntity.PickUpFoodGoal, PandaEntity.PlayGoal, PandaEntity.SneezeGoal, PatrolEntity.PatrolGoal, PhantomEntity.FindTargetGoal, PhantomEntity.MovementGoal, PhantomEntity.StartAttackGoal, PounceAtTargetGoal, PrioritizedGoal, ProjectileAttackGoal, PufferfishEntity.InflateGoal, RaiderEntity.AttackHomeGoal, RaiderEntity.CelebrateGoal, RaiderEntity.PatrolApproachGoal, RaiderEntity.PickupBannerAsLeaderGoal, ShulkerEntity.PeekGoal, ShulkerEntity.ShootBulletGoal, SilverfishEntity.CallForHelpGoal, SitGoal, SitOnOwnerShoulderGoal, SkeletonHorseTrapTriggerGoal, SlimeEntity.FaceTowardTargetGoal, SlimeEntity.MoveGoal, SlimeEntity.RandomLookGoal, SlimeEntity.SwimmingGoal, SpellcastingIllagerEntity.CastSpellGoal, SpellcastingIllagerEntity.LookAtTargetGoal, SquidEntity.EscapeAttackerGoal, SquidEntity.SwimGoal, StopFollowingCustomerGoal, SwimGoal, TemptGoal, TrackTargetGoal, TurtleEntity.ApproachFoodHoldingPlayerGoal, TurtleEntity.GoHomeGoal, TurtleEntity.TravelGoal, UniversalAngerGoal, VexEntity.ChargeTargetGoal, VexEntity.LookAtTargetGoal, WanderAroundGoal, WanderingTraderEntity.WanderToTargetGoal, WanderNearTargetGoal, WitherEntity.DescendAtHalfHealthGoal, WolfBegGoal

public abstract class Goal
extends Object
  • Field Details

  • Constructor Details

    • Goal

      public Goal()
  • Method Details

    • canStart

      public abstract boolean canStart()
    • shouldContinue

      public boolean shouldContinue()
    • canStop

      public boolean canStop()
    • start

      public void start()
    • stop

      public void stop()
    • tick

      public void tick()
    • setControls

      public void setControls​(EnumSet<Goal.Control> controls)
    • toString

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

      public EnumSet<Goal.Control> getControls()