Package net.minecraft.entity.ai.goal
Class InteractDoorGoal
- java.lang.Object
-
- net.minecraft.entity.ai.goal.Goal
-
- net.minecraft.entity.ai.goal.InteractDoorGoal
-
- Direct Known Subclasses:
BreakDoorGoal
,OpenDoorGoal
public abstract class InteractDoorGoal extends Goal
-
-
Field Summary
Fields Modifier and Type Field Description private float
doorOpenDirX
private float
doorOpenDirZ
protected BlockPos
doorPos
protected boolean
hasDoor
protected MobEntity
mob
private boolean
passed
-
Constructor Summary
Constructors Constructor Description InteractDoorGoal(MobEntity p_i1621_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canContinueToUse()
boolean
canUse()
protected boolean
isOpen()
protected void
setOpen(boolean p_195921_1_)
void
start()
void
tick()
-
-
-
Constructor Detail
-
InteractDoorGoal
public InteractDoorGoal(MobEntity p_i1621_1_)
-
-
Method Detail
-
isOpen
protected boolean isOpen()
-
setOpen
protected void setOpen(boolean p_195921_1_)
-
canContinueToUse
public boolean canContinueToUse()
- Overrides:
canContinueToUse
in classGoal
-
-