Package net.minecraft.entity.ai.goal
Class HarvestCropsGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.MoveToTargetPosGoal
net.minecraft.entity.ai.goal.HarvestCropsGoal
public class HarvestCropsGoal extends MoveToTargetPosGoal
- Mappings:
Namespace Name official rfintermediary net/minecraft/class_1792named net/minecraft/entity/ai/goal/HarvestCropsGoal
-
Field Summary
Fields Modifier and Type Field Description private VillagerEntityentityprivate booleanfield_7661private intfield_7662private booleanhasSeedFields inherited from class net.minecraft.entity.ai.goal.MoveToTargetPosGoal
cooldown, field_7700 -
Constructor Summary
Constructors Constructor Description HarvestCropsGoal(VillagerEntity entity, double double2) -
Method Summary
Modifier and Type Method Description booleancanStart()protected booleanmethod_7382(World world, BlockPos pos)booleanshouldContinue()voidstart()voidstop()voidtick()Methods inherited from class net.minecraft.entity.ai.goal.MoveToTargetPosGoal
hasReachedMethods inherited from class net.minecraft.entity.ai.goal.Goal
method_7363, method_7368, method_7369
-
Field Details
-
entity
- Mappings:
Namespace Name Mixin selector official cLrf;c:Lwi;intermediary field_7659Lnet/minecraft/class_1792;field_7659:Lnet/minecraft/class_1953;named entityLnet/minecraft/entity/ai/goal/HarvestCropsGoal;entity:Lnet/minecraft/entity/passive/VillagerEntity;
-
hasSeed
private boolean hasSeed- Mappings:
Namespace Name Mixin selector official dLrf;d:Zintermediary field_7660Lnet/minecraft/class_1792;field_7660:Znamed hasSeedLnet/minecraft/entity/ai/goal/HarvestCropsGoal;hasSeed:Z
-
field_7661
private boolean field_7661- Mappings:
Namespace Name Mixin selector official eLrf;e:Zintermediary field_7661Lnet/minecraft/class_1792;field_7661:Znamed field_7661Lnet/minecraft/entity/ai/goal/HarvestCropsGoal;field_7661:Z
-
field_7662
private int field_7662- Mappings:
Namespace Name Mixin selector official fLrf;f:Iintermediary field_7662Lnet/minecraft/class_1792;field_7662:Inamed field_7662Lnet/minecraft/entity/ai/goal/HarvestCropsGoal;field_7662:I
-
-
Constructor Details
-
HarvestCropsGoal
- Mappings:
Namespace Name Mixin selector official <init>Lrf;<init>(Lwi;D)Vintermediary <init>Lnet/minecraft/class_1792;<init>(Lnet/minecraft/class_1953;D)Vnamed <init>Lnet/minecraft/entity/ai/goal/HarvestCropsGoal;<init>(Lnet/minecraft/entity/passive/VillagerEntity;D)V
-
-
Method Details
-
canStart
public boolean canStart()- Overrides:
canStartin classMoveToTargetPosGoal- Mappings:
Namespace Name Mixin selector official aLrd;a()Zintermediary method_7362Lnet/minecraft/class_1789;method_7362()Znamed canStartLnet/minecraft/entity/ai/goal/Goal;canStart()Z
-
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinuein classMoveToTargetPosGoal- Mappings:
Namespace Name Mixin selector official bLrd;b()Zintermediary method_7364Lnet/minecraft/class_1789;method_7364()Znamed shouldContinueLnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
-
start
public void start()- Overrides:
startin classMoveToTargetPosGoal- Mappings:
Namespace Name Mixin selector official cLrd;c()Vintermediary method_7365Lnet/minecraft/class_1789;method_7365()Vnamed startLnet/minecraft/entity/ai/goal/Goal;start()V
-
stop
public void stop()- Overrides:
stopin classMoveToTargetPosGoal- Mappings:
Namespace Name Mixin selector official dLrd;d()Vintermediary method_7366Lnet/minecraft/class_1789;method_7366()Vnamed stopLnet/minecraft/entity/ai/goal/Goal;stop()V
-
tick
public void tick()- Overrides:
tickin classMoveToTargetPosGoal- Mappings:
Namespace Name Mixin selector official eLrd;e()Vintermediary method_7367Lnet/minecraft/class_1789;method_7367()Vnamed tickLnet/minecraft/entity/ai/goal/Goal;tick()V
-
method_7382
- Specified by:
method_7382in classMoveToTargetPosGoal- Mappings:
Namespace Name Mixin selector official aLro;a(Ladm;Lcj;)Zintermediary method_7382Lnet/minecraft/class_1801;method_7382(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;)Znamed method_7382Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;method_7382(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
-