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/DoorInteractGoal
intermediary net/minecraft/class_1343
official cag
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canStart()
protected boolean
protected void
setDoorOpen
(boolean open) boolean
boolean
Returns if the goal should run every tick or not.void
start()
void
tick()
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 named mob
Lnet/minecraft/entity/ai/goal/DoorInteractGoal;mob:Lnet/minecraft/entity/mob/MobEntity;
intermediary field_6413
Lnet/minecraft/class_1343;field_6413:Lnet/minecraft/class_1308;
official d
Lcag;d:Lbtt;
-
doorPos
- Mappings:
Namespace Name Mixin selector named doorPos
Lnet/minecraft/entity/ai/goal/DoorInteractGoal;doorPos:Lnet/minecraft/util/math/BlockPos;
intermediary field_6414
Lnet/minecraft/class_1343;field_6414:Lnet/minecraft/class_2338;
official e
Lcag;e:Liz;
-
doorValid
protected boolean doorValid- Mappings:
Namespace Name Mixin selector named doorValid
Lnet/minecraft/entity/ai/goal/DoorInteractGoal;doorValid:Z
intermediary field_6412
Lnet/minecraft/class_1343;field_6412:Z
official f
Lcag;f:Z
-
shouldStop
private boolean shouldStop- Mappings:
Namespace Name Mixin selector named shouldStop
Lnet/minecraft/entity/ai/goal/DoorInteractGoal;shouldStop:Z
intermediary field_6411
Lnet/minecraft/class_1343;field_6411:Z
official a
Lcag;a:Z
-
offsetX
private float offsetX- Mappings:
Namespace Name Mixin selector named offsetX
Lnet/minecraft/entity/ai/goal/DoorInteractGoal;offsetX:F
intermediary field_6410
Lnet/minecraft/class_1343;field_6410:F
official b
Lcag;b:F
-
offsetZ
private float offsetZ- Mappings:
Namespace Name Mixin selector named offsetZ
Lnet/minecraft/entity/ai/goal/DoorInteractGoal;offsetZ:F
intermediary field_6409
Lnet/minecraft/class_1343;field_6409:F
official c
Lcag;c:F
-
-
Constructor Details
-
DoorInteractGoal
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/ai/goal/DoorInteractGoal;<init>(Lnet/minecraft/entity/mob/MobEntity;)V
intermediary <init>
Lnet/minecraft/class_1343;<init>(Lnet/minecraft/class_1308;)V
official <init>
Lcag;<init>(Lbtt;)V
-
-
Method Details
-
isDoorOpen
protected boolean isDoorOpen()- Mappings:
Namespace Name Mixin selector named isDoorOpen
Lnet/minecraft/entity/ai/goal/DoorInteractGoal;isDoorOpen()Z
intermediary method_6256
Lnet/minecraft/class_1343;method_6256()Z
official h
Lcag;h()Z
-
setDoorOpen
protected void setDoorOpen(boolean open) - Mappings:
Namespace Name Mixin selector named setDoorOpen
Lnet/minecraft/entity/ai/goal/DoorInteractGoal;setDoorOpen(Z)V
intermediary method_19995
Lnet/minecraft/class_1343;method_19995(Z)V
official a
Lcag;a(Z)V
-
canStart
public boolean canStart() -
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinue
in classGoal
- Mappings:
Namespace Name Mixin selector named shouldContinue
Lnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
intermediary method_6266
Lnet/minecraft/class_1352;method_6266()Z
official b
Lcap;b()Z
-
start
public void start() -
shouldRunEveryTick
public boolean shouldRunEveryTick()Returns if the goal should run every tick or not.This returns
false
by default. If this returns false, the goal will tick once after the entity is spawned, and will tick every other tick.- Overrides:
shouldRunEveryTick
in classGoal
- Returns:
- if the goal should run every tick or not
- See Also:
- Mappings:
Namespace Name Mixin selector named shouldRunEveryTick
Lnet/minecraft/entity/ai/goal/Goal;shouldRunEveryTick()Z
intermediary method_38846
Lnet/minecraft/class_1352;method_38846()Z
official R_
Lcap;R_()Z
-
tick
public void tick()
-