Package net.minecraft.entity.ai.goal
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 java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Goal.Flag
-
Constructor Summary
Constructors Constructor Description Goal()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
canContinueToUse()
abstract boolean
canUse()
java.util.EnumSet<Goal.Flag>
getFlags()
boolean
isInterruptable()
void
setFlags(java.util.EnumSet<Goal.Flag> p_220684_1_)
void
start()
void
stop()
void
tick()
java.lang.String
toString()
-
-
-
Field Detail
-
flags
private final java.util.EnumSet<Goal.Flag> flags
-
-
Method Detail
-
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(java.util.EnumSet<Goal.Flag> p_220684_1_)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getFlags
public java.util.EnumSet<Goal.Flag> getFlags()
-
-