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
FieldsModifier and TypeFieldDescriptionprivate static final List<com.mojang.datafixers.util.Pair<Predicate<BlockState>, org.apache.commons.lang3.function.TriFunction<BlockState, LevelReader, BlockPos, Boolean>>> private final CatFields inherited from class MoveToBlockGoal
blockPos, mob, nextStartTick, speedModifier, tryTicks, verticalSearchStart -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanUse()protected booleanisValidTarget(LevelReader level, BlockPos pos) voidstart()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
-
BLOCK_TYPE_VALIDATION
private static final List<com.mojang.datafixers.util.Pair<Predicate<BlockState>, org.apache.commons.lang3.function.TriFunction<BlockState, LevelReader, BlockPos, Boolean>>> BLOCK_TYPE_VALIDATION
-
-
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
- Specified by:
isValidTargetin classMoveToBlockGoal
-