Package net.minecraft.entity.ai.goal
Class WolfBegGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.WolfBegGoal
- Mappings:
Namespace Name official bbbintermediary net/minecraft/class_1337named net/minecraft/entity/ai/goal/WolfBegGoal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatprivate @Nullable PlayerEntityprivate intprivate final TargetPredicateprivate final WolfEntityprivate final World -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanStart()private booleanisAttractive(PlayerEntity player) booleanbooleanReturns if the goal should run every tick or not.voidstart()voidstop()voidtick()Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, getTickCount, setControls, toGoalTicks, toString
-
Field Details
-
wolf
- Mappings:
Namespace Name Mixin selector official aLbbb;a:Lbhc;intermediary field_6384Lnet/minecraft/class_1337;field_6384:Lnet/minecraft/class_1493;named wolfLnet/minecraft/entity/ai/goal/WolfBegGoal;wolf:Lnet/minecraft/entity/passive/WolfEntity;
-
begFrom
- Mappings:
Namespace Name Mixin selector official bLbbb;b:Lbmh;intermediary field_6383Lnet/minecraft/class_1337;field_6383:Lnet/minecraft/class_1657;named begFromLnet/minecraft/entity/ai/goal/WolfBegGoal;begFrom:Lnet/minecraft/entity/player/PlayerEntity;
-
world
- Mappings:
Namespace Name Mixin selector official cLbbb;c:Lbyv;intermediary field_6381Lnet/minecraft/class_1337;field_6381:Lnet/minecraft/class_1937;named worldLnet/minecraft/entity/ai/goal/WolfBegGoal;world:Lnet/minecraft/world/World;
-
begDistance
private final float begDistance- Mappings:
Namespace Name Mixin selector official dLbbb;d:Fintermediary field_6380Lnet/minecraft/class_1337;field_6380:Fnamed begDistanceLnet/minecraft/entity/ai/goal/WolfBegGoal;begDistance:F
-
timer
private int timer- Mappings:
Namespace Name Mixin selector official eLbbb;e:Iintermediary field_6382Lnet/minecraft/class_1337;field_6382:Inamed timerLnet/minecraft/entity/ai/goal/WolfBegGoal;timer:I
-
validPlayerPredicate
- Mappings:
Namespace Name Mixin selector official fLbbb;f:Lbfd;intermediary field_18085Lnet/minecraft/class_1337;field_18085:Lnet/minecraft/class_4051;named validPlayerPredicateLnet/minecraft/entity/ai/goal/WolfBegGoal;validPlayerPredicate:Lnet/minecraft/entity/ai/TargetPredicate;
-
-
Constructor Details
-
WolfBegGoal
- Mappings:
Namespace Name Mixin selector official <init>Lbbb;<init>(Lbhc;F)Vintermediary <init>Lnet/minecraft/class_1337;<init>(Lnet/minecraft/class_1493;F)Vnamed <init>Lnet/minecraft/entity/ai/goal/WolfBegGoal;<init>(Lnet/minecraft/entity/passive/WolfEntity;F)V
-
-
Method Details
-
canStart
public boolean canStart() -
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinuein classGoal- Mappings:
Namespace Name Mixin selector official bLbbs;b()Zintermediary method_6266Lnet/minecraft/class_1352;method_6266()Znamed shouldContinueLnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
-
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 official fLbbs;f()Zintermediary method_38846Lnet/minecraft/class_1352;method_38846()Znamed shouldRunEveryTickLnet/minecraft/entity/ai/goal/Goal;shouldRunEveryTick()Z
-
tick
public void tick() -
isAttractive
- Mappings:
Namespace Name Mixin selector official aLbbb;a(Lbmh;)Zintermediary method_6244Lnet/minecraft/class_1337;method_6244(Lnet/minecraft/class_1657;)Znamed isAttractiveLnet/minecraft/entity/ai/goal/WolfBegGoal;isAttractive(Lnet/minecraft/entity/player/PlayerEntity;)Z
-