Package net.minecraft.entity.ai.goal
Class OpenDoorGoal
- java.lang.Object
-
- net.minecraft.entity.ai.goal.Goal
-
- net.minecraft.entity.ai.goal.InteractDoorGoal
-
- net.minecraft.entity.ai.goal.OpenDoorGoal
-
- Direct Known Subclasses:
AbstractIllagerEntity.RaidOpenDoorGoal
public class OpenDoorGoal extends InteractDoorGoal
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
closeDoor
private int
forgetTime
-
Fields inherited from class net.minecraft.entity.ai.goal.InteractDoorGoal
doorPos, hasDoor, mob
-
-
Constructor Summary
Constructors Constructor Description OpenDoorGoal(MobEntity p_i1644_1_, boolean p_i1644_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canContinueToUse()
void
start()
void
stop()
void
tick()
-
Methods inherited from class net.minecraft.entity.ai.goal.InteractDoorGoal
canUse, isOpen, setOpen
-
Methods inherited from class net.minecraft.entity.ai.goal.Goal
getFlags, isInterruptable, setFlags, toString
-
-
-
-
Constructor Detail
-
OpenDoorGoal
public OpenDoorGoal(MobEntity p_i1644_1_, boolean p_i1644_2_)
-
-
Method Detail
-
canContinueToUse
public boolean canContinueToUse()
- Overrides:
canContinueToUse
in classInteractDoorGoal
-
start
public void start()
- Overrides:
start
in classInteractDoorGoal
-
tick
public void tick()
- Overrides:
tick
in classInteractDoorGoal
-
-