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 official bkpintermediary net/minecraft/class_1343named net/minecraft/entity/ai/goal/DoorInteractGoal
-
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, getControls, getTickCount, setControls, stop, toGoalTicks, toString
-
Field Details
-
mob
- Mappings:
Namespace Name Mixin selector official dLbkp;d:Lbei;intermediary field_6413Lnet/minecraft/class_1343;field_6413:Lnet/minecraft/class_1308;named mobLnet/minecraft/entity/ai/goal/DoorInteractGoal;mob:Lnet/minecraft/entity/mob/MobEntity;
-
doorPos
- Mappings:
Namespace Name Mixin selector official eLbkp;e:Lgp;intermediary field_6414Lnet/minecraft/class_1343;field_6414:Lnet/minecraft/class_2338;named doorPosLnet/minecraft/entity/ai/goal/DoorInteractGoal;doorPos:Lnet/minecraft/util/math/BlockPos;
-
doorValid
protected boolean doorValid- Mappings:
Namespace Name Mixin selector official fLbkp;f:Zintermediary field_6412Lnet/minecraft/class_1343;field_6412:Znamed doorValidLnet/minecraft/entity/ai/goal/DoorInteractGoal;doorValid:Z
-
shouldStop
private boolean shouldStop- Mappings:
Namespace Name Mixin selector official aLbkp;a:Zintermediary field_6411Lnet/minecraft/class_1343;field_6411:Znamed shouldStopLnet/minecraft/entity/ai/goal/DoorInteractGoal;shouldStop:Z
-
offsetX
private float offsetX- Mappings:
Namespace Name Mixin selector official bLbkp;b:Fintermediary field_6410Lnet/minecraft/class_1343;field_6410:Fnamed offsetXLnet/minecraft/entity/ai/goal/DoorInteractGoal;offsetX:F
-
offsetZ
private float offsetZ- Mappings:
Namespace Name Mixin selector official cLbkp;c:Fintermediary field_6409Lnet/minecraft/class_1343;field_6409:Fnamed offsetZLnet/minecraft/entity/ai/goal/DoorInteractGoal;offsetZ:F
-
-
Constructor Details
-
DoorInteractGoal
- Mappings:
Namespace Name Mixin selector official <init>Lbkp;<init>(Lbei;)Vintermediary <init>Lnet/minecraft/class_1343;<init>(Lnet/minecraft/class_1308;)Vnamed <init>Lnet/minecraft/entity/ai/goal/DoorInteractGoal;<init>(Lnet/minecraft/entity/mob/MobEntity;)V
-
-
Method Details
-
isDoorOpen
protected boolean isDoorOpen()- Mappings:
Namespace Name Mixin selector official hLbkp;h()Zintermediary method_6256Lnet/minecraft/class_1343;method_6256()Znamed isDoorOpenLnet/minecraft/entity/ai/goal/DoorInteractGoal;isDoorOpen()Z
-
setDoorOpen
protected void setDoorOpen(boolean open) - Mappings:
Namespace Name Mixin selector official aLbkp;a(Z)Vintermediary method_19995Lnet/minecraft/class_1343;method_19995(Z)Vnamed setDoorOpenLnet/minecraft/entity/ai/goal/DoorInteractGoal;setDoorOpen(Z)V
-
canStart
public boolean canStart() -
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinuein classGoal- Mappings:
Namespace Name Mixin selector official bLbky;b()Zintermediary method_6266Lnet/minecraft/class_1352;method_6266()Znamed shouldContinueLnet/minecraft/entity/ai/goal/Goal;shouldContinue()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 official E_Lbky;E_()Zintermediary method_38846Lnet/minecraft/class_1352;method_38846()Znamed shouldRunEveryTickLnet/minecraft/entity/ai/goal/Goal;shouldRunEveryTick()Z
-
tick
public void tick()
-