Class Goal
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
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected int
adjustedTickDelay
(int p_186072_) boolean
abstract boolean
canUse()
getFlags()
boolean
protected static int
reducedTickDelay
(int p_186074_) boolean
void
void
start()
void
stop()
void
tick()
toString()
-
Field Details
-
flags
-
-
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
-
toString
-
getFlags
-
adjustedTickDelay
protected int adjustedTickDelay(int p_186072_) -
reducedTickDelay
protected static int reducedTickDelay(int p_186074_)
-