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, FollowFlockLeaderGoal, FollowMobGoal, FollowOwnerGoal, FollowParentGoal, FollowPlayerRiddenEntityGoal, 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, SpearUseGoal, 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
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intadjustedTickDelay(int ticks) booleanabstract booleancanUse()getFlags()protected static ServerLevelgetServerLevel(Entity entity) protected static ServerLevelgetServerLevel(Level level) booleanprotected static intreducedTickDelay(int ticks) booleanvoidvoidstart()voidstop()voidtick()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 ticks) -
reducedTickDelay
protected static int reducedTickDelay(int ticks) -
getServerLevel
-
getServerLevel
-