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 BlockPosbedPosprivate CatEntitycatprivate PlayerEntityownerprivate intticksOnBed -
Constructor Summary
Constructors Constructor Description SleepWithOwnerGoal(CatEntity cat) -
Method Summary
Modifier and Type Method Description booleancanStart()private voiddropMorningGifts()private booleanmethod_16098()booleanshouldContinue()voidstart()voidstop()voidtick()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:
shouldContinuein classGoal
-
start
public void start() -
stop
public void stop() -
dropMorningGifts
private void dropMorningGifts() -
tick
public void tick()
-