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
- Mappings:
Namespace Name named net/minecraft/entity/ai/goal/BreakDoorGoal
intermediary net/minecraft/class_1339
official bzu
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
private final Predicate
<Difficulty> protected int
private static final int
protected int
Fields inherited from class net.minecraft.entity.ai.goal.DoorInteractGoal
doorPos, doorValid, mob
-
Constructor Summary
ConstructorDescriptionBreakDoorGoal
(MobEntity mob, int maxProgress, Predicate<Difficulty> difficultySufficientPredicate) BreakDoorGoal
(MobEntity mob, Predicate<Difficulty> difficultySufficientPredicate) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canStart()
protected int
private boolean
isDifficultySufficient
(Difficulty difficulty) boolean
void
start()
void
stop()
void
tick()
Methods inherited from class net.minecraft.entity.ai.goal.DoorInteractGoal
isDoorOpen, setDoorOpen, shouldRunEveryTick
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, getTickCount, setControls, toGoalTicks, toString
-
Field Details
-
MIN_MAX_PROGRESS
private static final int MIN_MAX_PROGRESS- See Also:
- Mappings:
Namespace Name Mixin selector named MIN_MAX_PROGRESS
Lnet/minecraft/entity/ai/goal/BreakDoorGoal;MIN_MAX_PROGRESS:I
intermediary field_30202
Lnet/minecraft/class_1339;field_30202:I
official g
Lbzu;g:I
-
difficultySufficientPredicate
- Mappings:
Namespace Name Mixin selector named difficultySufficientPredicate
Lnet/minecraft/entity/ai/goal/BreakDoorGoal;difficultySufficientPredicate:Ljava/util/function/Predicate;
intermediary field_19003
Lnet/minecraft/class_1339;field_19003:Ljava/util/function/Predicate;
official h
Lbzu;h:Ljava/util/function/Predicate;
-
breakProgress
protected int breakProgress- Mappings:
Namespace Name Mixin selector named breakProgress
Lnet/minecraft/entity/ai/goal/BreakDoorGoal;breakProgress:I
intermediary field_6398
Lnet/minecraft/class_1339;field_6398:I
official a
Lbzu;a:I
-
prevBreakProgress
protected int prevBreakProgress- Mappings:
Namespace Name Mixin selector named prevBreakProgress
Lnet/minecraft/entity/ai/goal/BreakDoorGoal;prevBreakProgress:I
intermediary field_6397
Lnet/minecraft/class_1339;field_6397:I
official b
Lbzu;b:I
-
maxProgress
protected int maxProgress- Mappings:
Namespace Name Mixin selector named maxProgress
Lnet/minecraft/entity/ai/goal/BreakDoorGoal;maxProgress:I
intermediary field_16596
Lnet/minecraft/class_1339;field_16596:I
official c
Lbzu;c:I
-
-
Constructor Details
-
BreakDoorGoal
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/ai/goal/BreakDoorGoal;<init>(Lnet/minecraft/entity/mob/MobEntity;Ljava/util/function/Predicate;)V
intermediary <init>
Lnet/minecraft/class_1339;<init>(Lnet/minecraft/class_1308;Ljava/util/function/Predicate;)V
official <init>
Lbzu;<init>(Lbtn;Ljava/util/function/Predicate;)V
-
BreakDoorGoal
public BreakDoorGoal(MobEntity mob, int maxProgress, Predicate<Difficulty> difficultySufficientPredicate) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/ai/goal/BreakDoorGoal;<init>(Lnet/minecraft/entity/mob/MobEntity;ILjava/util/function/Predicate;)V
intermediary <init>
Lnet/minecraft/class_1339;<init>(Lnet/minecraft/class_1308;ILjava/util/function/Predicate;)V
official <init>
Lbzu;<init>(Lbtn;ILjava/util/function/Predicate;)V
-
-
Method Details
-
getMaxProgress
protected int getMaxProgress()- Mappings:
Namespace Name Mixin selector named getMaxProgress
Lnet/minecraft/entity/ai/goal/BreakDoorGoal;getMaxProgress()I
intermediary method_16462
Lnet/minecraft/class_1339;method_16462()I
official f
Lbzu;f()I
-
canStart
public boolean canStart()- Overrides:
canStart
in classDoorInteractGoal
- Mappings:
Namespace Name Mixin selector named canStart
Lnet/minecraft/entity/ai/goal/Goal;canStart()Z
intermediary method_6264
Lnet/minecraft/class_1352;method_6264()Z
official b
Lcak;b()Z
-
start
public void start()- Overrides:
start
in classDoorInteractGoal
- Mappings:
Namespace Name Mixin selector named start
Lnet/minecraft/entity/ai/goal/Goal;start()V
intermediary method_6269
Lnet/minecraft/class_1352;method_6269()V
official d
Lcak;d()V
-
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinue
in classDoorInteractGoal
- 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 c
Lcak;c()Z
-
stop
public void stop() -
tick
public void tick()- Overrides:
tick
in classDoorInteractGoal
- Mappings:
Namespace Name Mixin selector named tick
Lnet/minecraft/entity/ai/goal/Goal;tick()V
intermediary method_6268
Lnet/minecraft/class_1352;method_6268()V
official a
Lcak;a()V
-
isDifficultySufficient
- Mappings:
Namespace Name Mixin selector named isDifficultySufficient
Lnet/minecraft/entity/ai/goal/BreakDoorGoal;isDifficultySufficient(Lnet/minecraft/world/Difficulty;)Z
intermediary method_19994
Lnet/minecraft/class_1339;method_19994(Lnet/minecraft/class_1267;)Z
official a
Lbzu;a(Lbqn;)Z
-