Package net.minecraft.entity.ai.goal
Class UniversalAngerGoal<T extends MobEntity & Angerable>
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.UniversalAngerGoal<T>
public class UniversalAngerGoal<T extends MobEntity & Angerable> extends Goal
- Mappings:
Namespace Name official ayy
intermediary net/minecraft/class_5398
named net/minecraft/entity/ai/goal/UniversalAngerGoal
-
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 private int
lastAttackedTime
private T
mob
private boolean
triggerOthers
-
Constructor Summary
Constructors Constructor Description UniversalAngerGoal(T mob, boolean triggerOthers)
-
Method Summary
Modifier and Type Method Description boolean
canStart()
private boolean
canStartUniversalAnger()
private List<? extends MobEntity>
getOthersInRange()
void
start()
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, shouldContinue, stop, tick, toString
-
Field Details
-
mob
- Mappings:
Namespace Name Mixin selector official a
Layy;a:Larj;
intermediary field_25604
Lnet/minecraft/class_5398;field_25604:Lnet/minecraft/class_1308;
named mob
Lnet/minecraft/entity/ai/goal/UniversalAngerGoal;mob:Lnet/minecraft/entity/mob/MobEntity;
-
triggerOthers
private final boolean triggerOthers- Mappings:
Namespace Name Mixin selector official b
Layy;b:Z
intermediary field_25605
Lnet/minecraft/class_5398;field_25605:Z
named triggerOthers
Lnet/minecraft/entity/ai/goal/UniversalAngerGoal;triggerOthers:Z
-
lastAttackedTime
private int lastAttackedTime- Mappings:
Namespace Name Mixin selector official c
Layy;c:I
intermediary field_25606
Lnet/minecraft/class_5398;field_25606:I
named lastAttackedTime
Lnet/minecraft/entity/ai/goal/UniversalAngerGoal;lastAttackedTime:I
-
-
Constructor Details
-
UniversalAngerGoal
- Mappings:
Namespace Name Mixin selector official <init>
Layy;<init>(Larj;Z)V
intermediary <init>
Lnet/minecraft/class_5398;<init>(Lnet/minecraft/class_1308;Z)V
named <init>
Lnet/minecraft/entity/ai/goal/UniversalAngerGoal;<init>(Lnet/minecraft/entity/mob/MobEntity;Z)V
-
-
Method Details
-
canStart
public boolean canStart() -
canStartUniversalAnger
private boolean canStartUniversalAnger()- Mappings:
Namespace Name Mixin selector official g
Layy;g()Z
intermediary method_29932
Lnet/minecraft/class_5398;method_29932()Z
named canStartUniversalAnger
Lnet/minecraft/entity/ai/goal/UniversalAngerGoal;canStartUniversalAnger()Z
-
start
public void start() -
getOthersInRange
- Mappings:
Namespace Name Mixin selector official h
Layy;h()Ljava/util/List;
intermediary method_29933
Lnet/minecraft/class_5398;method_29933()Ljava/util/List;
named getOthersInRange
Lnet/minecraft/entity/ai/goal/UniversalAngerGoal;getOthersInRange()Ljava/util/List;
-