Package net.minecraft.entity.passive
Class WanderingTraderEntity.WanderToTargetGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.passive.WanderingTraderEntity.WanderToTargetGoal
- Enclosing class:
- WanderingTraderEntity
class WanderingTraderEntity.WanderToTargetGoal extends Goal
- Mappings:
Namespace Name official bhe$aintermediary net/minecraft/class_3989$class_3994named net/minecraft/entity/passive/WanderingTraderEntity$WanderToTargetGoal
-
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 (package private) doubleproximityDistance(package private) doublespeed(package private) WanderingTraderEntitytrader -
Constructor Summary
Constructors Constructor Description WanderToTargetGoal(WanderingTraderEntity trader, double proximityDistance, double speed) -
Method Summary
Modifier and Type Method Description booleancanStart()private booleanisTooFarFrom(BlockPos pos, double proximityDistance)voidstop()voidtick()Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, shouldContinue, start, toString
-
Field Details
-
trader
- Mappings:
Namespace Name Mixin selector official aLbhe$a;a:Lbhe;intermediary field_17759Lnet/minecraft/class_3989$class_3994;field_17759:Lnet/minecraft/class_3989;named traderLnet/minecraft/entity/passive/WanderingTraderEntity$WanderToTargetGoal;trader:Lnet/minecraft/entity/passive/WanderingTraderEntity;
-
proximityDistance
final double proximityDistance- Mappings:
Namespace Name Mixin selector official bLbhe$a;b:Dintermediary field_17760Lnet/minecraft/class_3989$class_3994;field_17760:Dnamed proximityDistanceLnet/minecraft/entity/passive/WanderingTraderEntity$WanderToTargetGoal;proximityDistance:D
-
speed
final double speed- Mappings:
Namespace Name Mixin selector official cLbhe$a;c:Dintermediary field_17761Lnet/minecraft/class_3989$class_3994;field_17761:Dnamed speedLnet/minecraft/entity/passive/WanderingTraderEntity$WanderToTargetGoal;speed:D
-
-
Constructor Details
-
WanderToTargetGoal
WanderToTargetGoal(WanderingTraderEntity trader, double proximityDistance, double speed)- Mappings:
Namespace Name Mixin selector official <init>Lbhe$a;<init>(Lbhe;Lbhe;DD)Vintermediary <init>Lnet/minecraft/class_3989$class_3994;<init>(Lnet/minecraft/class_3989;Lnet/minecraft/class_3989;DD)Vnamed <init>Lnet/minecraft/entity/passive/WanderingTraderEntity$WanderToTargetGoal;<init>(Lnet/minecraft/entity/passive/WanderingTraderEntity;Lnet/minecraft/entity/passive/WanderingTraderEntity;DD)V
-
-
Method Details
-
stop
public void stop() -
canStart
public boolean canStart() -
tick
public void tick() -
isTooFarFrom
- Mappings:
Namespace Name Mixin selector official aLbhe$a;a(Lfx;D)Zintermediary method_18070Lnet/minecraft/class_3989$class_3994;method_18070(Lnet/minecraft/class_2338;D)Znamed isTooFarFromLnet/minecraft/entity/passive/WanderingTraderEntity$WanderToTargetGoal;isTooFarFrom(Lnet/minecraft/util/math/BlockPos;D)Z
-