Package net.minecraft.entity.ai.goal
Class CatLieOnBedGoal
- java.lang.Object
-
- net.minecraft.entity.ai.goal.Goal
-
- net.minecraft.entity.ai.goal.MoveToBlockGoal
-
- net.minecraft.entity.ai.goal.CatLieOnBedGoal
-
public class CatLieOnBedGoal extends MoveToBlockGoal
-
-
Field Summary
Fields Modifier and Type Field Description private CatEntity
cat
-
Fields inherited from class net.minecraft.entity.ai.goal.MoveToBlockGoal
blockPos, mob, nextStartTick, speedModifier, tryTicks, verticalSearchStart
-
-
Constructor Summary
Constructors Constructor Description CatLieOnBedGoal(CatEntity p_i50331_1_, double p_i50331_2_, int p_i50331_4_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canUse()
protected boolean
isValidTarget(IWorldReader p_179488_1_, BlockPos p_179488_2_)
protected int
nextStartTick(CreatureEntity p_203109_1_)
void
start()
void
stop()
void
tick()
-
Methods inherited from class net.minecraft.entity.ai.goal.MoveToBlockGoal
acceptedDistance, canContinueToUse, findNearestBlock, getMoveToTarget, isReachedTarget, moveMobToBlock, shouldRecalculatePath
-
Methods inherited from class net.minecraft.entity.ai.goal.Goal
getFlags, isInterruptable, setFlags, toString
-
-
-
-
Field Detail
-
cat
private final CatEntity cat
-
-
Constructor Detail
-
CatLieOnBedGoal
public CatLieOnBedGoal(CatEntity p_i50331_1_, double p_i50331_2_, int p_i50331_4_)
-
-
Method Detail
-
canUse
public boolean canUse()
- Overrides:
canUse
in classMoveToBlockGoal
-
start
public void start()
- Overrides:
start
in classMoveToBlockGoal
-
nextStartTick
protected int nextStartTick(CreatureEntity p_203109_1_)
- Overrides:
nextStartTick
in classMoveToBlockGoal
-
tick
public void tick()
- Overrides:
tick
in classMoveToBlockGoal
-
isValidTarget
protected boolean isValidTarget(IWorldReader p_179488_1_, BlockPos p_179488_2_)
- Specified by:
isValidTarget
in classMoveToBlockGoal
-
-