Package net.minecraft.entity.ai.goal
Class BreakDoorGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.DoorInteractGoal
net.minecraft.entity.ai.goal.BreakDoorGoal
- Direct Known Subclasses:
VindicatorEntity.BreakDoorGoal
public class BreakDoorGoal extends DoorInteractGoal
- Mappings:
Namespace Name official awi
intermediary net/minecraft/class_1339
named net/minecraft/entity/ai/goal/BreakDoorGoal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control
-
Field Summary
Fields Modifier and Type Field Description protected int
breakProgress
private Predicate<Difficulty>
difficultySufficientPredicate
protected int
maxProgress
protected int
prevBreakProgress
Fields inherited from class net.minecraft.entity.ai.goal.DoorInteractGoal
doorPos, doorValid, mob
-
Constructor Summary
Constructors Constructor Description BreakDoorGoal(MobEntity mob, int maxProgress, Predicate<Difficulty> difficultySufficientPredicate)
BreakDoorGoal(MobEntity mob, Predicate<Difficulty> difficultySufficientPredicate)
-
Method Summary
Modifier and Type Method Description boolean
canStart()
protected int
getMaxProgress()
private boolean
isDifficultySufficient(Difficulty difficulty)
boolean
shouldContinue()
void
start()
void
stop()
void
tick()
Methods inherited from class net.minecraft.entity.ai.goal.DoorInteractGoal
isDoorOpen, setDoorOpen
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, toString
-
Field Details
-
difficultySufficientPredicate
- Mappings:
Namespace Name Mixin selector official g
Lawi;g:Ljava/util/function/Predicate;
intermediary field_19003
Lnet/minecraft/class_1339;field_19003:Ljava/util/function/Predicate;
named difficultySufficientPredicate
Lnet/minecraft/entity/ai/goal/BreakDoorGoal;difficultySufficientPredicate:Ljava/util/function/Predicate;
-
breakProgress
protected int breakProgress- Mappings:
Namespace Name Mixin selector official a
Lawi;a:I
intermediary field_6398
Lnet/minecraft/class_1339;field_6398:I
named breakProgress
Lnet/minecraft/entity/ai/goal/BreakDoorGoal;breakProgress:I
-
prevBreakProgress
protected int prevBreakProgress- Mappings:
Namespace Name Mixin selector official b
Lawi;b:I
intermediary field_6397
Lnet/minecraft/class_1339;field_6397:I
named prevBreakProgress
Lnet/minecraft/entity/ai/goal/BreakDoorGoal;prevBreakProgress:I
-
maxProgress
protected int maxProgress- Mappings:
Namespace Name Mixin selector official c
Lawi;c:I
intermediary field_16596
Lnet/minecraft/class_1339;field_16596:I
named maxProgress
Lnet/minecraft/entity/ai/goal/BreakDoorGoal;maxProgress:I
-
-
Constructor Details
-
BreakDoorGoal
- Mappings:
Namespace Name Mixin selector official <init>
Lawi;<init>(Larj;Ljava/util/function/Predicate;)V
intermediary <init>
Lnet/minecraft/class_1339;<init>(Lnet/minecraft/class_1308;Ljava/util/function/Predicate;)V
named <init>
Lnet/minecraft/entity/ai/goal/BreakDoorGoal;<init>(Lnet/minecraft/entity/mob/MobEntity;Ljava/util/function/Predicate;)V
-
BreakDoorGoal
public BreakDoorGoal(MobEntity mob, int maxProgress, Predicate<Difficulty> difficultySufficientPredicate)- Mappings:
Namespace Name Mixin selector official <init>
Lawi;<init>(Larj;ILjava/util/function/Predicate;)V
intermediary <init>
Lnet/minecraft/class_1339;<init>(Lnet/minecraft/class_1308;ILjava/util/function/Predicate;)V
named <init>
Lnet/minecraft/entity/ai/goal/BreakDoorGoal;<init>(Lnet/minecraft/entity/mob/MobEntity;ILjava/util/function/Predicate;)V
-
-
Method Details
-
getMaxProgress
protected int getMaxProgress()- Mappings:
Namespace Name Mixin selector official f
Lawi;f()I
intermediary method_16462
Lnet/minecraft/class_1339;method_16462()I
named getMaxProgress
Lnet/minecraft/entity/ai/goal/BreakDoorGoal;getMaxProgress()I
-
canStart
public boolean canStart()- Overrides:
canStart
in classDoorInteractGoal
- Mappings:
Namespace Name Mixin selector official a
Lawx;a()Z
intermediary method_6264
Lnet/minecraft/class_1352;method_6264()Z
named canStart
Lnet/minecraft/entity/ai/goal/Goal;canStart()Z
-
start
public void start()- Overrides:
start
in classDoorInteractGoal
- Mappings:
Namespace Name Mixin selector official c
Lawx;c()V
intermediary method_6269
Lnet/minecraft/class_1352;method_6269()V
named start
Lnet/minecraft/entity/ai/goal/Goal;start()V
-
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinue
in classDoorInteractGoal
- Mappings:
Namespace Name Mixin selector official b
Lawx;b()Z
intermediary method_6266
Lnet/minecraft/class_1352;method_6266()Z
named shouldContinue
Lnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
-
stop
public void stop() -
tick
public void tick()- Overrides:
tick
in classDoorInteractGoal
- Mappings:
Namespace Name Mixin selector official e
Lawx;e()V
intermediary method_6268
Lnet/minecraft/class_1352;method_6268()V
named tick
Lnet/minecraft/entity/ai/goal/Goal;tick()V
-
isDifficultySufficient
- Mappings:
Namespace Name Mixin selector official a
Lawi;a(Lapn;)Z
intermediary method_19994
Lnet/minecraft/class_1339;method_19994(Lnet/minecraft/class_1267;)Z
named isDifficultySufficient
Lnet/minecraft/entity/ai/goal/BreakDoorGoal;isDifficultySufficient(Lnet/minecraft/world/Difficulty;)Z
-