Package net.minecraft.entity.ai.goal
Class DoorInteractGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.DoorInteractGoal
- Direct Known Subclasses:
BreakDoorGoal,LongDoorInteractGoal
- Mappings:
Namespace Name named net/minecraft/entity/ai/goal/DoorInteractGoalintermediary net/minecraft/class_1343official ces
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanStart()protected booleanprotected voidsetDoorOpen(boolean open) booleanbooleanReturns if the goal should run every tick or not.voidstart()voidtick()Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, castToServerWorld, getControls, getServerWorld, getTickCount, setControls, stop, toGoalTicks, toString
-
Field Details
-
mob
- Mappings:
Namespace Name Mixin selector named mobLnet/minecraft/entity/ai/goal/DoorInteractGoal;mob:Lnet/minecraft/entity/mob/MobEntity;intermediary field_6413Lnet/minecraft/class_1343;field_6413:Lnet/minecraft/class_1308;official dLces;d:Lbyh;
-
doorPos
- Mappings:
Namespace Name Mixin selector named doorPosLnet/minecraft/entity/ai/goal/DoorInteractGoal;doorPos:Lnet/minecraft/util/math/BlockPos;intermediary field_6414Lnet/minecraft/class_1343;field_6414:Lnet/minecraft/class_2338;official eLces;e:Liw;
-
doorValid
protected boolean doorValid- Mappings:
Namespace Name Mixin selector named doorValidLnet/minecraft/entity/ai/goal/DoorInteractGoal;doorValid:Zintermediary field_6412Lnet/minecraft/class_1343;field_6412:Zofficial fLces;f:Z
-
shouldStop
private boolean shouldStop- Mappings:
Namespace Name Mixin selector named shouldStopLnet/minecraft/entity/ai/goal/DoorInteractGoal;shouldStop:Zintermediary field_6411Lnet/minecraft/class_1343;field_6411:Zofficial aLces;a:Z
-
offsetX
private float offsetX- Mappings:
Namespace Name Mixin selector named offsetXLnet/minecraft/entity/ai/goal/DoorInteractGoal;offsetX:Fintermediary field_6410Lnet/minecraft/class_1343;field_6410:Fofficial bLces;b:F
-
offsetZ
private float offsetZ- Mappings:
Namespace Name Mixin selector named offsetZLnet/minecraft/entity/ai/goal/DoorInteractGoal;offsetZ:Fintermediary field_6409Lnet/minecraft/class_1343;field_6409:Fofficial cLces;c:F
-
-
Constructor Details
-
DoorInteractGoal
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/ai/goal/DoorInteractGoal;<init>(Lnet/minecraft/entity/mob/MobEntity;)Vintermediary <init>Lnet/minecraft/class_1343;<init>(Lnet/minecraft/class_1308;)Vofficial <init>Lces;<init>(Lbyh;)V
-
-
Method Details
-
isDoorOpen
protected boolean isDoorOpen()- Mappings:
Namespace Name Mixin selector named isDoorOpenLnet/minecraft/entity/ai/goal/DoorInteractGoal;isDoorOpen()Zintermediary method_6256Lnet/minecraft/class_1343;method_6256()Zofficial hLces;h()Z
-
setDoorOpen
protected void setDoorOpen(boolean open) - Mappings:
Namespace Name Mixin selector named setDoorOpenLnet/minecraft/entity/ai/goal/DoorInteractGoal;setDoorOpen(Z)Vintermediary method_19995Lnet/minecraft/class_1343;method_19995(Z)Vofficial aLces;a(Z)V
-
canStart
public boolean canStart() -
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinuein classGoal- Mappings:
Namespace Name Mixin selector named shouldContinueLnet/minecraft/entity/ai/goal/Goal;shouldContinue()Zintermediary method_6266Lnet/minecraft/class_1352;method_6266()Zofficial cLcfb;c()Z
-
start
public void start() -
shouldRunEveryTick
public boolean shouldRunEveryTick()Returns if the goal should run every tick or not.This returns
falseby default. If this returns false, the goal will tick once after the entity is spawned, and will tick every other tick.- Overrides:
shouldRunEveryTickin classGoal- Returns:
- if the goal should run every tick or not
- See Also:
- Mappings:
Namespace Name Mixin selector named shouldRunEveryTickLnet/minecraft/entity/ai/goal/Goal;shouldRunEveryTick()Zintermediary method_38846Lnet/minecraft/class_1352;method_38846()Zofficial W_Lcfb;W_()Z
-
tick
public void tick()
-