Package net.minecraft.entity.ai.goal
Class Goal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
- Direct Known Subclasses:
AmbientStandGoal,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,PowderSnowJumpGoal,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
- Mappings:
Namespace Name official bmtintermediary net/minecraft/class_1352named net/minecraft/entity/ai/goal/Goal
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleancanStart()booleancanStop()protected intgetTickCount(int ticks) Returns how many times a goal can tick in the given at most.voidsetControls(EnumSet<Goal.Control> controls) booleanbooleanReturns if the goal should run every tick or not.voidstart()voidstop()voidtick()protected static inttoGoalTicks(int serverTicks) toString()
-
Field Details
-
controls
- Mappings:
Namespace Name Mixin selector official aLbmt;a:Ljava/util/EnumSet;intermediary field_6451Lnet/minecraft/class_1352;field_6451:Ljava/util/EnumSet;named controlsLnet/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 aLbmt;a()Zintermediary method_6264Lnet/minecraft/class_1352;method_6264()Znamed canStartLnet/minecraft/entity/ai/goal/Goal;canStart()Z
-
shouldContinue
public boolean shouldContinue()- Mappings:
Namespace Name Mixin selector official bLbmt;b()Zintermediary method_6266Lnet/minecraft/class_1352;method_6266()Znamed shouldContinueLnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
-
canStop
public boolean canStop()- Mappings:
Namespace Name Mixin selector official I_Lbmt;I_()Zintermediary method_6267Lnet/minecraft/class_1352;method_6267()Znamed canStopLnet/minecraft/entity/ai/goal/Goal;canStop()Z
-
start
public void start()- Mappings:
Namespace Name Mixin selector official cLbmt;c()Vintermediary method_6269Lnet/minecraft/class_1352;method_6269()Vnamed startLnet/minecraft/entity/ai/goal/Goal;start()V
-
stop
public void stop()- Mappings:
Namespace Name Mixin selector official dLbmt;d()Vintermediary method_6270Lnet/minecraft/class_1352;method_6270()Vnamed stopLnet/minecraft/entity/ai/goal/Goal;stop()V
-
shouldRunEveryTick
public boolean shouldRunEveryTick()Returns if the goal should run every tick or not.This returns
falseby default. If this returns false, the goal will tick once after the entity is spawned, and will tick every other tick.- Returns:
- if the goal should run every tick or not
- See Also:
- Mappings:
Namespace Name Mixin selector official J_Lbmt;J_()Zintermediary method_38846Lnet/minecraft/class_1352;method_38846()Znamed shouldRunEveryTickLnet/minecraft/entity/ai/goal/Goal;shouldRunEveryTick()Z
-
tick
public void tick()- Mappings:
Namespace Name Mixin selector official eLbmt;e()Vintermediary method_6268Lnet/minecraft/class_1352;method_6268()Vnamed tickLnet/minecraft/entity/ai/goal/Goal;tick()V
-
setControls
- Mappings:
Namespace Name Mixin selector official aLbmt;a(Ljava/util/EnumSet;)Vintermediary method_6265Lnet/minecraft/class_1352;method_6265(Ljava/util/EnumSet;)Vnamed setControlsLnet/minecraft/entity/ai/goal/Goal;setControls(Ljava/util/EnumSet;)V
-
toString
-
getControls
- Mappings:
Namespace Name Mixin selector official jLbmt;j()Ljava/util/EnumSet;intermediary method_6271Lnet/minecraft/class_1352;method_6271()Ljava/util/EnumSet;named getControlsLnet/minecraft/entity/ai/goal/Goal;getControls()Ljava/util/EnumSet;
-
getTickCount
protected int getTickCount(int ticks) Returns how many times a goal can tick in the given at most.- Returns:
- how many times a goal can tick in the given at most
- Mappings:
Namespace Name Mixin selector official aLbmt;a(I)Iintermediary method_38847Lnet/minecraft/class_1352;method_38847(I)Inamed getTickCountLnet/minecraft/entity/ai/goal/Goal;getTickCount(I)I
-
toGoalTicks
protected static int toGoalTicks(int serverTicks) - Mappings:
Namespace Name Mixin selector official bLbmt;b(I)Iintermediary method_38848Lnet/minecraft/class_1352;method_38848(I)Inamed toGoalTicksLnet/minecraft/entity/ai/goal/Goal;toGoalTicks(I)I
-