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.GoHomeGoal, TurtleEntity.TravelGoal, UniversalAngerGoal, VexEntity.ChargeTargetGoal, VexEntity.LookAtTargetGoal, WanderAroundGoal, WanderingTraderEntity.WanderToTargetGoal, WanderNearTargetGoal, WitherEntity.DescendAtHalfHealthGoal, WolfBegGoal

public abstract class Goal
extends Object
Mappings:
Namespace Name
official awx
intermediary net/minecraft/class_1352
named net/minecraft/entity/ai/goal/Goal
  • Field Details

    • controls

      private final EnumSet<Goal.Control> controls
      Mappings:
      Namespace Name Mixin selector
      official a Lawx;a:Ljava/util/EnumSet;
      intermediary field_6451 Lnet/minecraft/class_1352;field_6451:Ljava/util/EnumSet;
      named controls Lnet/minecraft/entity/ai/goal/Goal;controls:Ljava/util/EnumSet;
  • Constructor Details

    • Goal

      public Goal()
  • Method Details

    • canStart

      public abstract boolean canStart()
      Mappings:
      Namespace Name Mixin selector
      official a Lawx;a()Z
      intermediary method_6264 Lnet/minecraft/class_1352;method_6264()Z
      named canStart Lnet/minecraft/entity/ai/goal/Goal;canStart()Z
    • shouldContinue

      public boolean shouldContinue()
      Mappings:
      Namespace Name Mixin selector
      official b Lawx;b()Z
      intermediary method_6266 Lnet/minecraft/class_1352;method_6266()Z
      named shouldContinue Lnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
    • canStop

      public boolean canStop()
      Mappings:
      Namespace Name Mixin selector
      official E_ Lawx;E_()Z
      intermediary method_6267 Lnet/minecraft/class_1352;method_6267()Z
      named canStop Lnet/minecraft/entity/ai/goal/Goal;canStop()Z
    • start

      public void start()
      Mappings:
      Namespace Name Mixin selector
      official c Lawx;c()V
      intermediary method_6269 Lnet/minecraft/class_1352;method_6269()V
      named start Lnet/minecraft/entity/ai/goal/Goal;start()V
    • stop

      public void stop()
      Mappings:
      Namespace Name Mixin selector
      official d Lawx;d()V
      intermediary method_6270 Lnet/minecraft/class_1352;method_6270()V
      named stop Lnet/minecraft/entity/ai/goal/Goal;stop()V
    • tick

      public void tick()
      Mappings:
      Namespace Name Mixin selector
      official e Lawx;e()V
      intermediary method_6268 Lnet/minecraft/class_1352;method_6268()V
      named tick Lnet/minecraft/entity/ai/goal/Goal;tick()V
    • setControls

      public void setControls​(EnumSet<Goal.Control> controls)
      Mappings:
      Namespace Name Mixin selector
      official a Lawx;a(Ljava/util/EnumSet;)V
      intermediary method_6265 Lnet/minecraft/class_1352;method_6265(Ljava/util/EnumSet;)V
      named setControls Lnet/minecraft/entity/ai/goal/Goal;setControls(Ljava/util/EnumSet;)V
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Mappings:
      Namespace Name Mixin selector
      official toString Lawx;toString()Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_1352;toString()Ljava/lang/String;
      named toString Lnet/minecraft/entity/ai/goal/Goal;toString()Ljava/lang/String;
    • getControls

      public EnumSet<Goal.Control> getControls()
      Mappings:
      Namespace Name Mixin selector
      official i Lawx;i()Ljava/util/EnumSet;
      intermediary method_6271 Lnet/minecraft/class_1352;method_6271()Ljava/util/EnumSet;
      named getControls Lnet/minecraft/entity/ai/goal/Goal;getControls()Ljava/util/EnumSet;