Package net.minecraft.entity.ai.goal
Class RaidGoal<T extends LivingEntity>
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.TrackTargetGoal
net.minecraft.entity.ai.goal.FollowTargetGoal<T>
net.minecraft.entity.ai.goal.RaidGoal<T>
public class RaidGoal<T extends LivingEntity> extends FollowTargetGoal<T>
- Mappings:
Namespace Name official ayuintermediary net/minecraft/class_3909named net/minecraft/entity/ai/goal/RaidGoal
-
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 intcooldownFields inherited from class net.minecraft.entity.ai.goal.FollowTargetGoal
reciprocalChance, targetClass, targetEntity, targetPredicateFields inherited from class net.minecraft.entity.ai.goal.TrackTargetGoal
checkVisibility, maxTimeWithoutVisibility, mob, target -
Constructor Summary
Constructors Constructor Description RaidGoal(RaiderEntity raider, Class<T> targetEntityClass, boolean checkVisibility, Predicate<LivingEntity> targetPredicate) -
Method Summary
Modifier and Type Method Description booleancanStart()voiddecreaseCooldown()intgetCooldown()voidstart()Methods inherited from class net.minecraft.entity.ai.goal.FollowTargetGoal
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, setControls, tick, toString
-
Field Details
-
cooldown
private int cooldown- Mappings:
Namespace Name Mixin selector official iLayu;i:Iintermediary field_17282Lnet/minecraft/class_3909;field_17282:Inamed cooldownLnet/minecraft/entity/ai/goal/RaidGoal;cooldown:I
-
-
Constructor Details
-
RaidGoal
public RaidGoal(RaiderEntity raider, Class<T> targetEntityClass, boolean checkVisibility, @Nullable Predicate<LivingEntity> targetPredicate)- Mappings:
Namespace Name Mixin selector official <init>Layu;<init>(Lbir;Ljava/lang/Class;ZLjava/util/function/Predicate;)Vintermediary <init>Lnet/minecraft/class_3909;<init>(Lnet/minecraft/class_3763;Ljava/lang/Class;ZLjava/util/function/Predicate;)Vnamed <init>Lnet/minecraft/entity/ai/goal/RaidGoal;<init>(Lnet/minecraft/entity/raid/RaiderEntity;Ljava/lang/Class;ZLjava/util/function/Predicate;)V
-
-
Method Details
-
getCooldown
public int getCooldown()- Mappings:
Namespace Name Mixin selector official hLayu;h()Iintermediary method_17352Lnet/minecraft/class_3909;method_17352()Inamed getCooldownLnet/minecraft/entity/ai/goal/RaidGoal;getCooldown()I
-
decreaseCooldown
public void decreaseCooldown()- Mappings:
Namespace Name Mixin selector official jLayu;j()Vintermediary method_17353Lnet/minecraft/class_3909;method_17353()Vnamed decreaseCooldownLnet/minecraft/entity/ai/goal/RaidGoal;decreaseCooldown()V
-
canStart
public boolean canStart()- Overrides:
canStartin classFollowTargetGoal<T extends LivingEntity>- Mappings:
Namespace Name Mixin selector official aLawx;a()Zintermediary method_6264Lnet/minecraft/class_1352;method_6264()Znamed canStartLnet/minecraft/entity/ai/goal/Goal;canStart()Z
-
start
public void start()- Overrides:
startin classFollowTargetGoal<T extends LivingEntity>- Mappings:
Namespace Name Mixin selector official cLawx;c()Vintermediary method_6269Lnet/minecraft/class_1352;method_6269()Vnamed startLnet/minecraft/entity/ai/goal/Goal;start()V
-