Class Goal

java.lang.Object
net.minecraft.entity.ai.goal.Goal
Direct Known Subclasses:
AbstractRaiderEntity.CelebrateRaidLossGoal, AbstractRaiderEntity.FindTargetGoal, AbstractRaiderEntity.InvadeHomeGoal, AbstractRaiderEntity.PromoteLeaderGoal, AvoidEntityGoal, BeeEntity.PassiveGoal, BeeEntity.WanderGoal, BegGoal, BlazeEntity.FireballAttackGoal, BreatheAirGoal, BreedGoal, CatEntity.MorningGiftGoal, CreeperSwellGoal, DolphinEntity.PlayWithItemsGoal, DolphinEntity.SwimToTreasureGoal, DolphinEntity.SwimWithPlayerGoal, DrownedEntity.GoToWaterGoal, DrownedEntity.SwimUpGoal, EatGrassGoal, EndermanEntity.PlaceBlockGoal, EndermanEntity.StareGoal, EndermanEntity.TakeBlockGoal, FindWaterGoal, FleeSunGoal, FollowBoatGoal, FollowMobGoal, FollowOwnerGoal, FollowParentGoal, FollowSchoolLeaderGoal, FoxEntity.BaseGoal, FoxEntity.FindItemsGoal, FoxEntity.FollowTargetGoal, FoxEntity.JumpGoal, GhastEntity.FireballAttackGoal, GhastEntity.LookAroundGoal, GhastEntity.RandomFlyGoal, GuardianEntity.AttackGoal, InteractDoorGoal, JumpGoal, LandOnOwnersShoulderGoal, LeapAtTargetGoal, LlamaFollowCaravanGoal, LookAtGoal, LookRandomlyGoal, MeleeAttackGoal, MoveThroughVillageAtNightGoal, MoveThroughVillageGoal, MoveToBlockGoal, MoveTowardsRaidGoal, MoveTowardsRestrictionGoal, MoveTowardsTargetGoal, OcelotAttackGoal, PandaEntity.ChildPlayGoal, PandaEntity.LieBackGoal, PandaEntity.RollGoal, PandaEntity.SitGoal, PanicGoal, PatrollerEntity.PatrolGoal, PhantomEntity.AttackPlayerGoal, PhantomEntity.MoveGoal, PhantomEntity.PickAttackGoal, PrioritizedGoal, PufferfishEntity.PuffGoal, RandomWalkingGoal, RangedAttackGoal, RangedBowAttackGoal, RangedCrossbowAttackGoal, ResetAngerGoal, RestrictSunGoal, RunAroundLikeCrazyGoal, ShowVillagerFlowerGoal, ShulkerEntity.AttackGoal, ShulkerEntity.PeekGoal, SilverfishEntity.SummonSilverfishGoal, SitGoal, SlimeEntity.AttackGoal, SlimeEntity.FaceRandomGoal, SlimeEntity.FloatGoal, SlimeEntity.HopGoal, SpellcastingIllagerEntity.CastingASpellGoal, SpellcastingIllagerEntity.UseSpellGoal, SquidEntity.FleeGoal, SquidEntity.MoveRandomGoal, SwimGoal, TargetGoal, TemptGoal, TradeWithPlayerGoal, TriggerSkeletonTrapGoal, TurtleEntity.GoHomeGoal, TurtleEntity.PlayerTemptGoal, TurtleEntity.TravelGoal, UseItemGoal, VexEntity.ChargeAttackGoal, VexEntity.MoveRandomGoal, WanderingTraderEntity.MoveToGoal, WitherEntity.DoNothingGoal

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()
    • tick

      public void tick()
    • setFlags

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

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

      public EnumSet<Goal.Flag> getFlags()