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
- Mappings:
Namespace Name official cbn$a
intermediary net/minecraft/class_3989$class_3994
named 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
Modifier and TypeFieldDescription(package private) final double
(package private) final double
(package private) final WanderingTraderEntity
-
Constructor Summary
ConstructorDescriptionWanderToTargetGoal
(WanderingTraderEntity trader, double proximityDistance, double speed) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canStart()
private boolean
isTooFarFrom
(BlockPos pos, double proximityDistance) void
stop()
void
tick()
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, getTickCount, setControls, shouldContinue, shouldRunEveryTick, start, toGoalTicks, toString
-
Field Details
-
trader
- Mappings:
Namespace Name Mixin selector official a
Lcbn$a;a:Lcbn;
intermediary field_17759
Lnet/minecraft/class_3989$class_3994;field_17759:Lnet/minecraft/class_3989;
named trader
Lnet/minecraft/entity/passive/WanderingTraderEntity$WanderToTargetGoal;trader:Lnet/minecraft/entity/passive/WanderingTraderEntity;
-
proximityDistance
final double proximityDistance- Mappings:
Namespace Name Mixin selector official b
Lcbn$a;b:D
intermediary field_17760
Lnet/minecraft/class_3989$class_3994;field_17760:D
named proximityDistance
Lnet/minecraft/entity/passive/WanderingTraderEntity$WanderToTargetGoal;proximityDistance:D
-
speed
final double speed- Mappings:
Namespace Name Mixin selector official c
Lcbn$a;c:D
intermediary field_17761
Lnet/minecraft/class_3989$class_3994;field_17761:D
named speed
Lnet/minecraft/entity/passive/WanderingTraderEntity$WanderToTargetGoal;speed:D
-
-
Constructor Details
-
WanderToTargetGoal
WanderToTargetGoal(WanderingTraderEntity trader, double proximityDistance, double speed) - Mappings:
Namespace Name Mixin selector official <init>
Lcbn$a;<init>(Lcbn;Lcbn;DD)V
intermediary <init>
Lnet/minecraft/class_3989$class_3994;<init>(Lnet/minecraft/class_3989;Lnet/minecraft/class_3989;DD)V
named <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 a
Lcbn$a;a(Lgw;D)Z
intermediary method_18070
Lnet/minecraft/class_3989$class_3994;method_18070(Lnet/minecraft/class_2338;D)Z
named isTooFarFrom
Lnet/minecraft/entity/passive/WanderingTraderEntity$WanderToTargetGoal;isTooFarFrom(Lnet/minecraft/util/math/BlockPos;D)Z
-