Class WanderingTrader.WanderToPositionGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.npc.wanderingtrader.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 Goal
adjustedTickDelay, canContinueToUse, getFlags, getServerLevel, getServerLevel, 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
-
stop
-
canUse
-
tick
-
isTooFarAway
-