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.ActiveTargetGoal<LivingEntity>
net.minecraft.entity.passive.FoxEntity.DefendFriendGoal
- Enclosing class:
FoxEntity
- Mappings:
Namespace Name named net/minecraft/entity/passive/FoxEntity$DefendFriendGoalintermediary net/minecraft/class_4019$class_4020official cfo$a
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate @Nullable LivingEntityprivate intprivate @Nullable LivingEntityFields inherited from class net.minecraft.entity.ai.goal.ActiveTargetGoal
reciprocalChance, targetClass, targetEntity, targetPredicateFields inherited from class net.minecraft.entity.ai.goal.TrackTargetGoal
checkVisibility, maxTimeWithoutVisibility, mob, target -
Constructor Summary
ConstructorsConstructorDescriptionDefendFriendGoal(Class<LivingEntity> targetEntityClass, boolean checkVisibility, boolean checkCanNavigate, @Nullable Predicate<LivingEntity> targetPredicate) -
Method Summary
Methods inherited from class net.minecraft.entity.ai.goal.ActiveTargetGoal
findClosestTarget, getSearchBox, setTargetEntityMethods inherited from class net.minecraft.entity.ai.goal.TrackTargetGoal
canTrack, getFollowRange, setMaxTimeWithoutVisibility, shouldContinue, stopMethods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, getTickCount, setControls, shouldRunEveryTick, tick, toGoalTicks, toString
-
Field Details
-
offender
- Mappings:
Namespace Name Mixin selector named offenderLnet/minecraft/entity/passive/FoxEntity$DefendFriendGoal;offender:Lnet/minecraft/entity/LivingEntity;intermediary field_17966Lnet/minecraft/class_4019$class_4020;field_17966:Lnet/minecraft/class_1309;official jLcfo$a;j:Lbtn;
-
friend
- Mappings:
Namespace Name Mixin selector named friendLnet/minecraft/entity/passive/FoxEntity$DefendFriendGoal;friend:Lnet/minecraft/entity/LivingEntity;intermediary field_17967Lnet/minecraft/class_4019$class_4020;field_17967:Lnet/minecraft/class_1309;official kLcfo$a;k:Lbtn;
-
lastAttackedTime
private int lastAttackedTime- Mappings:
Namespace Name Mixin selector named lastAttackedTimeLnet/minecraft/entity/passive/FoxEntity$DefendFriendGoal;lastAttackedTime:Iintermediary field_17968Lnet/minecraft/class_4019$class_4020;field_17968:Iofficial lLcfo$a;l:I
-
-
Constructor Details
-
DefendFriendGoal
public DefendFriendGoal(Class<LivingEntity> targetEntityClass, boolean checkVisibility, boolean checkCanNavigate, @Nullable @Nullable Predicate<LivingEntity> targetPredicate) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/passive/FoxEntity$DefendFriendGoal;<init>(Lnet/minecraft/entity/passive/FoxEntity;Ljava/lang/Class;ZZLjava/util/function/Predicate;)Vintermediary <init>Lnet/minecraft/class_4019$class_4020;<init>(Lnet/minecraft/class_4019;Ljava/lang/Class;ZZLjava/util/function/Predicate;)Vofficial <init>Lcfo$a;<init>(Lcfo;Ljava/lang/Class;ZZLjava/util/function/Predicate;)V
-
-
Method Details
-
canStart
public boolean canStart()- Overrides:
canStartin classActiveTargetGoal<LivingEntity>- Mappings:
Namespace Name Mixin selector named canStartLnet/minecraft/entity/ai/goal/Goal;canStart()Zintermediary method_6264Lnet/minecraft/class_1352;method_6264()Zofficial bLcam;b()Z
-
start
public void start()- Overrides:
startin classActiveTargetGoal<LivingEntity>- Mappings:
Namespace Name Mixin selector named startLnet/minecraft/entity/ai/goal/Goal;start()Vintermediary method_6269Lnet/minecraft/class_1352;method_6269()Vofficial dLcam;d()V
-