Package net.minecraft.entity.ai.goal
Class RevengeGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.TrackTargetGoal
net.minecraft.entity.ai.goal.RevengeGoal
- Direct Known Subclasses:
LlamaEntity.class_3141,PolarBearEntity.class_3036,ZombiePigmanEntity.AvoidZombiesGoal
- Mappings:
Namespace Name official vvintermediary net/minecraft/class_926named net/minecraft/entity/ai/goal/RevengeGoal
-
Field Summary
FieldsFields inherited from class net.minecraft.entity.ai.goal.TrackTargetGoal
checkVisibility, field_14597, field_14598, mob -
Constructor Summary
ConstructorsConstructorDescriptionRevengeGoal(PathAwareEntity mob, boolean groupRevenge, Class<?>[] noRevengeTypes) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanStart()protected voidprotected voidsetMobEntityTarget(PathAwareEntity mob, LivingEntity target) voidstart()Methods inherited from class net.minecraft.entity.ai.goal.TrackTargetGoal
canTrack, getFollowRange, method_11025, method_13955, shouldContinue, stopMethods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getCategoryBits, setCategoryBits, tick
-
Field Details
-
groupRevenge
private final boolean groupRevenge- Mappings:
Namespace Name Mixin selector official aLvv;a:Zintermediary field_3624Lnet/minecraft/class_926;field_3624:Znamed groupRevengeLnet/minecraft/entity/ai/goal/RevengeGoal;groupRevenge:Z
-
lastAttackedTime
private int lastAttackedTime- Mappings:
Namespace Name Mixin selector official bLvv;b:Iintermediary field_6867Lnet/minecraft/class_926;field_6867:Inamed lastAttackedTimeLnet/minecraft/entity/ai/goal/RevengeGoal;lastAttackedTime:I
-
noRevengeTypes
- Mappings:
Namespace Name Mixin selector official cLvv;c:[Ljava/lang/Class;intermediary field_11949Lnet/minecraft/class_926;field_11949:[Ljava/lang/Class;named noRevengeTypesLnet/minecraft/entity/ai/goal/RevengeGoal;noRevengeTypes:[Ljava/lang/Class;
-
-
Constructor Details
-
RevengeGoal
- Mappings:
Namespace Name Mixin selector official <init>Lvv;<init>(Lte;Z[Ljava/lang/Class;)Vintermediary <init>Lnet/minecraft/class_926;<init>(Lnet/minecraft/class_877;Z[Ljava/lang/Class;)Vnamed <init>Lnet/minecraft/entity/ai/goal/RevengeGoal;<init>(Lnet/minecraft/entity/PathAwareEntity;Z[Ljava/lang/Class;)V
-
-
Method Details
-
canStart
public boolean canStart() -
start
public void start()- Overrides:
startin classTrackTargetGoal- Mappings:
Namespace Name Mixin selector official cLui;c()Vintermediary method_2747Lnet/minecraft/class_896;method_2747()Vnamed startLnet/minecraft/entity/ai/goal/Goal;start()V
-
method_13498
protected void method_13498()- Mappings:
Namespace Name Mixin selector official fLvv;f()Vintermediary method_13498Lnet/minecraft/class_926;method_13498()Vnamed method_13498Lnet/minecraft/entity/ai/goal/RevengeGoal;method_13498()V
-
setMobEntityTarget
- Mappings:
Namespace Name Mixin selector official aLvv;a(Lte;Lsw;)Vintermediary method_11017Lnet/minecraft/class_926;method_11017(Lnet/minecraft/class_877;Lnet/minecraft/class_1699;)Vnamed setMobEntityTargetLnet/minecraft/entity/ai/goal/RevengeGoal;setMobEntityTarget(Lnet/minecraft/entity/PathAwareEntity;Lnet/minecraft/entity/LivingEntity;)V
-