Package net.minecraft.world.entity.npc
Class WanderingTrader.WanderToPositionGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.npc.WanderingTrader.WanderToPositionGoal
- Enclosing class:
WanderingTrader
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final double(package private) final double(package private) final WanderingTrader -
Constructor Summary
ConstructorsConstructorDescriptionWanderToPositionGoal(WanderingTrader trader, double stopDistance, double speedModifier) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanUse()private booleanisTooFarAway(BlockPos pos, double distance) voidstop()voidtick()Methods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, canContinueToUse, getFlags, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, start, toString
-
Field Details
-
trader
-
stopDistance
final double stopDistance -
speedModifier
final double speedModifier
-
-
Constructor Details
-
WanderToPositionGoal
WanderToPositionGoal(WanderingTrader trader, double stopDistance, double speedModifier)
-
-
Method Details