Package net.minecraft.entity.ai.goal
Class AttackEntityGoal<T extends LivingEntity>
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.TrackTargetGoal
net.minecraft.entity.ai.goal.AttackEntityGoal<T>
- Direct Known Subclasses:
EndermanEntity.class_1912,IronGolemEntity.class_1870,NonTamedEntityHurtGoal,SpiderEntity.FollowTargetGoal,ZombiePigmanEntity.FollowPlayerIfAngryGoal
public class AttackEntityGoal<T extends LivingEntity> extends TrackTargetGoal
- Mappings:
Namespace Name official spintermediary net/minecraft/class_1827named net/minecraft/entity/ai/goal/AttackEntityGoal
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAttackEntityGoal.class_1828 -
Field Summary
Fields Modifier and Type Field Description protected Class<T>field_7809protected AttackEntityGoal.class_1828field_7810protected Predicate<? super T>field_7811protected LivingEntityfield_7812private intfield_7813Fields inherited from class net.minecraft.entity.ai.goal.TrackTargetGoal
checkVisibility, field_7828 -
Constructor Summary
Constructors Constructor Description AttackEntityGoal(PassivePathFindingEntity passivePathFindingEntity, Class<T> class2, boolean bool)AttackEntityGoal(PassivePathFindingEntity passivePathFindingEntity, Class<T> class2, boolean bool, boolean bool2)AttackEntityGoal(PassivePathFindingEntity passivePathFindingEntity, Class<T> class2, int int2, boolean bool, boolean bool2, Predicate<? super T> predicate) -
Method Summary
Methods inherited from class net.minecraft.entity.ai.goal.TrackTargetGoal
getFollowRange, method_7399, method_7400, shouldContinue, stopMethods inherited from class net.minecraft.entity.ai.goal.Goal
method_7363, method_7368, method_7369, tick
-
Field Details
-
field_7809
- Mappings:
Namespace Name Mixin selector official aLsp;a:Ljava/lang/Class;intermediary field_7809Lnet/minecraft/class_1827;field_7809:Ljava/lang/Class;named field_7809Lnet/minecraft/entity/ai/goal/AttackEntityGoal;field_7809:Ljava/lang/Class;
-
field_7813
private final int field_7813- Mappings:
Namespace Name Mixin selector official gLsp;g:Iintermediary field_7813Lnet/minecraft/class_1827;field_7813:Inamed field_7813Lnet/minecraft/entity/ai/goal/AttackEntityGoal;field_7813:I
-
field_7810
- Mappings:
Namespace Name Mixin selector official bLsp;b:Lsp$a;intermediary field_7810Lnet/minecraft/class_1827;field_7810:Lnet/minecraft/class_1827$class_1828;named field_7810Lnet/minecraft/entity/ai/goal/AttackEntityGoal;field_7810:Lnet/minecraft/entity/ai/goal/AttackEntityGoal$class_1828;
-
field_7811
- Mappings:
Namespace Name Mixin selector official cLsp;c:Lcom/google/common/base/Predicate;intermediary field_7811Lnet/minecraft/class_1827;field_7811:Lcom/google/common/base/Predicate;named field_7811Lnet/minecraft/entity/ai/goal/AttackEntityGoal;field_7811:Lcom/google/common/base/Predicate;
-
field_7812
- Mappings:
Namespace Name Mixin selector official dLsp;d:Lpr;intermediary field_7812Lnet/minecraft/class_1827;field_7812:Lnet/minecraft/class_1752;named field_7812Lnet/minecraft/entity/ai/goal/AttackEntityGoal;field_7812:Lnet/minecraft/entity/LivingEntity;
-
-
Constructor Details
-
AttackEntityGoal
public AttackEntityGoal(PassivePathFindingEntity passivePathFindingEntity, Class<T> class2, boolean bool) -
AttackEntityGoal
public AttackEntityGoal(PassivePathFindingEntity passivePathFindingEntity, Class<T> class2, boolean bool, boolean bool2) -
AttackEntityGoal
public AttackEntityGoal(PassivePathFindingEntity passivePathFindingEntity, Class<T> class2, int int2, boolean bool, boolean bool2, Predicate<? super T> predicate)
-
-
Method Details
-
canStart
public boolean canStart() -
start
public void start()- Overrides:
startin classTrackTargetGoal- Mappings:
Namespace Name Mixin selector official cLrd;c()Vintermediary method_7365Lnet/minecraft/class_1789;method_7365()Vnamed startLnet/minecraft/entity/ai/goal/Goal;start()V
-