Package net.minecraft.entity.passive
Class CatEntity.SleepWithOwnerGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.passive.CatEntity.SleepWithOwnerGoal
- Enclosing class:
- CatEntity
static class CatEntity.SleepWithOwnerGoal extends Goal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control
-
Field Summary
Fields Modifier and Type Field Description private BlockPos
bedPos
private CatEntity
cat
private PlayerEntity
owner
private int
ticksOnBed
-
Constructor Summary
Constructors Constructor Description SleepWithOwnerGoal(CatEntity cat)
-
Method Summary
Modifier and Type Method Description boolean
canStart()
private void
dropMorningGifts()
private boolean
method_16098()
boolean
shouldContinue()
void
start()
void
stop()
void
tick()
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, toString
-
Field Details
-
cat
-
owner
-
bedPos
-
ticksOnBed
private int ticksOnBed
-
-
Constructor Details
-
SleepWithOwnerGoal
-
-
Method Details
-
canStart
public boolean canStart() -
method_16098
private boolean method_16098() -
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinue
in classGoal
-
start
public void start() -
stop
public void stop() -
dropMorningGifts
private void dropMorningGifts() -
tick
public void tick()
-