Class CatSitOnBlockGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.MoveToBlockGoal
net.minecraft.world.entity.ai.goal.CatSitOnBlockGoal
-
Nested Class Summary
-
Field Summary
FieldsFields inherited from class MoveToBlockGoal
blockPos, mob, nextStartTick, speedModifier, tryTicks, verticalSearchStart -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanUse()protected booleanisValidTarget(LevelReader level, BlockPos pos) Returntrueto set given position as destinationvoidstart()voidstop()voidtick()Methods inherited from class MoveToBlockGoal
acceptedDistance, canContinueToUse, findNearestBlock, getMoveToTarget, isReachedTarget, moveMobToBlock, nextStartTick, requiresUpdateEveryTick, shouldRecalculatePathMethods inherited from class Goal
adjustedTickDelay, getFlags, getServerLevel, getServerLevel, isInterruptable, reducedTickDelay, setFlags, toString
-
Field Details
-
cat
-
-
Constructor Details
-
CatSitOnBlockGoal
-
-
Method Details
-
canUse
public boolean canUse()- Overrides:
canUsein classMoveToBlockGoal
-
start
public void start()- Overrides:
startin classMoveToBlockGoal
-
stop
-
tick
public void tick()- Overrides:
tickin classMoveToBlockGoal
-
isValidTarget
Returntrueto set given position as destination- Specified by:
isValidTargetin classMoveToBlockGoal
-