Package net.minecraft.entity.passive
Class FoxEntity.DefendFriendGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.TrackTargetGoal
net.minecraft.entity.ai.goal.FollowTargetGoal<LivingEntity>
net.minecraft.entity.passive.FoxEntity.DefendFriendGoal
- Enclosing class:
- FoxEntity
class FoxEntity.DefendFriendGoal extends FollowTargetGoal<LivingEntity>
- Mappings:
Namespace Name official bbs$a
intermediary net/minecraft/class_4019$class_4020
named net/minecraft/entity/passive/FoxEntity$DefendFriendGoal
-
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 LivingEntity
friend
private int
lastAttackedTime
private LivingEntity
offender
Fields inherited from class net.minecraft.entity.ai.goal.FollowTargetGoal
reciprocalChance, targetClass, targetEntity, targetPredicate
Fields inherited from class net.minecraft.entity.ai.goal.TrackTargetGoal
checkVisibility, maxTimeWithoutVisibility, mob, target
-
Constructor Summary
Constructors Constructor Description DefendFriendGoal(Class<LivingEntity> targetEntityClass, boolean checkVisibility, boolean checkCanNavigate, Predicate<LivingEntity> targetPredicate)
-
Method Summary
Methods inherited from class net.minecraft.entity.ai.goal.FollowTargetGoal
findClosestTarget, getSearchBox, setTargetEntity
Methods inherited from class net.minecraft.entity.ai.goal.TrackTargetGoal
canTrack, getFollowRange, setMaxTimeWithoutVisibility, shouldContinue, stop
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, tick, toString
-
Field Details
-
offender
- Mappings:
Namespace Name Mixin selector official j
Lbbs$a;j:Lari;
intermediary field_17966
Lnet/minecraft/class_4019$class_4020;field_17966:Lnet/minecraft/class_1309;
named offender
Lnet/minecraft/entity/passive/FoxEntity$DefendFriendGoal;offender:Lnet/minecraft/entity/LivingEntity;
-
friend
- Mappings:
Namespace Name Mixin selector official k
Lbbs$a;k:Lari;
intermediary field_17967
Lnet/minecraft/class_4019$class_4020;field_17967:Lnet/minecraft/class_1309;
named friend
Lnet/minecraft/entity/passive/FoxEntity$DefendFriendGoal;friend:Lnet/minecraft/entity/LivingEntity;
-
lastAttackedTime
private int lastAttackedTime- Mappings:
Namespace Name Mixin selector official l
Lbbs$a;l:I
intermediary field_17968
Lnet/minecraft/class_4019$class_4020;field_17968:I
named lastAttackedTime
Lnet/minecraft/entity/passive/FoxEntity$DefendFriendGoal;lastAttackedTime:I
-
-
Constructor Details
-
DefendFriendGoal
public DefendFriendGoal(Class<LivingEntity> targetEntityClass, boolean checkVisibility, boolean checkCanNavigate, Predicate<LivingEntity> targetPredicate)- Mappings:
Namespace Name Mixin selector official <init>
Lbbs$a;<init>(Lbbs;Ljava/lang/Class;ZZLjava/util/function/Predicate;)V
intermediary <init>
Lnet/minecraft/class_4019$class_4020;<init>(Lnet/minecraft/class_4019;Ljava/lang/Class;ZZLjava/util/function/Predicate;)V
named <init>
Lnet/minecraft/entity/passive/FoxEntity$DefendFriendGoal;<init>(Lnet/minecraft/entity/passive/FoxEntity;Ljava/lang/Class;ZZLjava/util/function/Predicate;)V
-
-
Method Details
-
canStart
public boolean canStart()- Overrides:
canStart
in classFollowTargetGoal<LivingEntity>
- Mappings:
Namespace Name Mixin selector official a
Lawx;a()Z
intermediary method_6264
Lnet/minecraft/class_1352;method_6264()Z
named canStart
Lnet/minecraft/entity/ai/goal/Goal;canStart()Z
-
start
public void start()- Overrides:
start
in classFollowTargetGoal<LivingEntity>
- Mappings:
Namespace Name Mixin selector official c
Lawx;c()V
intermediary method_6269
Lnet/minecraft/class_1352;method_6269()V
named start
Lnet/minecraft/entity/ai/goal/Goal;start()V
-