Package net.minecraft.entity.raid
Class RaiderEntity.PatrolApproachGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.raid.RaiderEntity.PatrolApproachGoal
- Enclosing class:
RaiderEntity
- Mappings:
Namespace Name named net/minecraft/entity/raid/RaiderEntity$PatrolApproachGoalintermediary net/minecraft/class_3763$class_4223official coj$a
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal TargetPredicateprivate final RaiderEntityprivate final float -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, getTickCount, setControls, shouldContinue, toGoalTicks, toString
-
Field Details
-
raider
- Mappings:
Namespace Name Mixin selector named raiderLnet/minecraft/entity/raid/RaiderEntity$PatrolApproachGoal;raider:Lnet/minecraft/entity/raid/RaiderEntity;intermediary field_18883Lnet/minecraft/class_3763$class_4223;field_18883:Lnet/minecraft/class_3763;official bLcoj$a;b:Lcoj;
-
squaredDistance
private final float squaredDistance- Mappings:
Namespace Name Mixin selector named squaredDistanceLnet/minecraft/entity/raid/RaiderEntity$PatrolApproachGoal;squaredDistance:Fintermediary field_18884Lnet/minecraft/class_3763$class_4223;field_18884:Fofficial cLcoj$a;c:F
-
closeRaiderPredicate
- Mappings:
Namespace Name Mixin selector named closeRaiderPredicateLnet/minecraft/entity/raid/RaiderEntity$PatrolApproachGoal;closeRaiderPredicate:Lnet/minecraft/entity/ai/TargetPredicate;intermediary field_18881Lnet/minecraft/class_3763$class_4223;field_18881:Lnet/minecraft/class_4051;official aLcoj$a;a:Lcef;
-
-
Constructor Details
-
PatrolApproachGoal
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/raid/RaiderEntity$PatrolApproachGoal;<init>(Lnet/minecraft/entity/raid/RaiderEntity;Lnet/minecraft/entity/mob/IllagerEntity;F)Vintermediary <init>Lnet/minecraft/class_3763$class_4223;<init>(Lnet/minecraft/class_3763;Lnet/minecraft/class_1543;F)Vofficial <init>Lcoj$a;<init>(Lcoj;Lcjk;F)V
-
-
Method Details
-
canStart
public boolean canStart() -
start
public void start() -
stop
public void stop() -
shouldRunEveryTick
public boolean shouldRunEveryTick()Returns if the goal should run every tick or not.This returns
falseby default. If this returns false, the goal will tick once after the entity is spawned, and will tick every other tick.- Overrides:
shouldRunEveryTickin classGoal- Returns:
- if the goal should run every tick or not
- See Also:
- Mappings:
Namespace Name Mixin selector named shouldRunEveryTickLnet/minecraft/entity/ai/goal/Goal;shouldRunEveryTick()Zintermediary method_38846Lnet/minecraft/class_1352;method_38846()Zofficial V_Lcam;V_()Z
-
tick
public void tick()
-