Package net.minecraft.entity.ai.goal
Class FindNearestEntityGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.FindNearestEntityGoal
public class FindNearestEntityGoal extends Goal
- Mappings:
Namespace Name official snintermediary net/minecraft/class_1825named net/minecraft/entity/ai/goal/FindNearestEntityGoal
-
Field Summary
Fields Modifier and Type Field Description private MobEntityentityprivate Class<? extends LivingEntity>entityClassprivate Predicate<LivingEntity>field_7798private AttackEntityGoal.class_1828field_7799private static LoggerLOGGERprivate LivingEntitytarget -
Constructor Summary
Constructors Constructor Description FindNearestEntityGoal(MobEntity entity, Class<? extends LivingEntity> clazz) -
Method Summary
Modifier and Type Method Description booleancanStart()protected doublemethod_7391()booleanshouldContinue()voidstart()voidstop()Methods inherited from class net.minecraft.entity.ai.goal.Goal
method_7363, method_7368, method_7369, tick
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official aLsn;a:Lorg/apache/logging/log4j/Logger;intermediary field_7796Lnet/minecraft/class_1825;field_7796:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/entity/ai/goal/FindNearestEntityGoal;LOGGER:Lorg/apache/logging/log4j/Logger;
-
entity
- Mappings:
Namespace Name Mixin selector official bLsn;b:Lps;intermediary field_7797Lnet/minecraft/class_1825;field_7797:Lnet/minecraft/class_1753;named entityLnet/minecraft/entity/ai/goal/FindNearestEntityGoal;entity:Lnet/minecraft/entity/mob/MobEntity;
-
field_7798
- Mappings:
Namespace Name Mixin selector official cLsn;c:Lcom/google/common/base/Predicate;intermediary field_7798Lnet/minecraft/class_1825;field_7798:Lcom/google/common/base/Predicate;named field_7798Lnet/minecraft/entity/ai/goal/FindNearestEntityGoal;field_7798:Lcom/google/common/base/Predicate;
-
field_7799
- Mappings:
Namespace Name Mixin selector official dLsn;d:Lsp$a;intermediary field_7799Lnet/minecraft/class_1825;field_7799:Lnet/minecraft/class_1827$class_1828;named field_7799Lnet/minecraft/entity/ai/goal/FindNearestEntityGoal;field_7799:Lnet/minecraft/entity/ai/goal/AttackEntityGoal$class_1828;
-
target
- Mappings:
Namespace Name Mixin selector official eLsn;e:Lpr;intermediary field_7800Lnet/minecraft/class_1825;field_7800:Lnet/minecraft/class_1752;named targetLnet/minecraft/entity/ai/goal/FindNearestEntityGoal;target:Lnet/minecraft/entity/LivingEntity;
-
entityClass
- Mappings:
Namespace Name Mixin selector official fLsn;f:Ljava/lang/Class;intermediary field_7801Lnet/minecraft/class_1825;field_7801:Ljava/lang/Class;named entityClassLnet/minecraft/entity/ai/goal/FindNearestEntityGoal;entityClass:Ljava/lang/Class;
-
-
Constructor Details
-
FindNearestEntityGoal
- Mappings:
Namespace Name Mixin selector official <init>Lsn;<init>(Lps;Ljava/lang/Class;)Vintermediary <init>Lnet/minecraft/class_1825;<init>(Lnet/minecraft/class_1753;Ljava/lang/Class;)Vnamed <init>Lnet/minecraft/entity/ai/goal/FindNearestEntityGoal;<init>(Lnet/minecraft/entity/mob/MobEntity;Ljava/lang/Class;)V
-
-
Method Details
-
canStart
public boolean canStart() -
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinuein classGoal- Mappings:
Namespace Name Mixin selector official bLrd;b()Zintermediary method_7364Lnet/minecraft/class_1789;method_7364()Znamed shouldContinueLnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
-
start
public void start() -
stop
public void stop() -
method_7391
protected double method_7391()- Mappings:
Namespace Name Mixin selector official fLsn;f()Dintermediary method_7391Lnet/minecraft/class_1825;method_7391()Dnamed method_7391Lnet/minecraft/entity/ai/goal/FindNearestEntityGoal;method_7391()D
-